bartdegoede / python-searchengine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help

NayminNana opened this issue · comments

PLease after importing the requirements, I run the run.py but I get downloaded megabytes then indexes documents but the parsing XML and other results doesn't not exists. Should I add some codes or do something else?

File "C:\User\nin\desktop\python-searchengine-master\run.py", line 25, in
index = index_documents(load_documents(), Index())

File "C:\User\nin\desktop\python-searchengine-master\search\timing.py", line 21, in timed
result = method(*args, **kwargs)

File "C:\User\nin\desktop\python-searchengine-master\run.py", line 12, in index_documents
for i, document in enumerate(documents):

File "C:\User\nin\desktop\python-searchengine-master\load.py", line 11, in load_documents
for _, element in etree.iterparse(f, events=('end',), tag='doc'):

I ran into a similar issue with etree with Python 3.10. Installing Python 3.8.13, creating the virtual environment, and running through the installation resolved it for me.