bartdegoede / python-searchengine

MIT License
352 stars 96 forks source link

Help #10

Open NayminNana opened 2 years ago

NayminNana commented 2 years ago

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?

NayminNana commented 2 years ago

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 loaddocuments for , element in etree.iterparse(f, events=('end',), tag='doc'):

dannypage commented 2 years ago

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.