HobnobMancer / cazy_webscraper

Web scraper to retrieve protein data catalogued by the CAZy, UniProt, NCBI, GTDB and PDB websites/databases.
https://hobnobmancer.github.io/cazy_webscraper/
MIT License
12 stars 3 forks source link

ModuleNotFoundError: No module named 'cazy_webscraper.cazy_webscraper‘ #69

Closed NaiveLittleTiger closed 2 years ago

NaiveLittleTiger commented 2 years ago

Describe the bug

I finished installing cazy-webscraper package using 'pip install cazy-webscraper', when I try to use it then get the following error,"ModuleNotFoundError: No module named 'cazy_webscraper.cazy_webscraper‘ ", Then I try to install from source code, I also get same error. I don't know the reason. Can anyone assist me? thanks! image

HobnobMancer commented 2 years ago

Thanks for the bug report, they are extremely useful (especially while cazy_webscraper is still in beta).

The issues was the result of line 77 in the setup.py not having been updated to match the new program architecture.
The line has been updated to point to the correct file name for the main entry point (it now points to cazy_scraper instead of cazy_webscraper).

This should now be fixed in the new pypi release (v2.0.2).

In future, it is good practice to fill out the bug report form in full. This facilitates the reproducibility of what caused the issue to be raised, which in turn makes finding the possible cause of the issue far easier and significantly faster. Luckily, in this case I was able to reproduce the issue; however, with the information provided arguably your work is not reproducible. The screen capture of your terminal isn't displaying the standard output for a Linux system. If you were not using a POSIX os then that could have been a cause of the problem. Additionally, with no information provided about the virtual environment you are using, the issue could have been caused by import and/or version conflicts. Without that information up front we can't rule out or rule in a lot of possibilities without a lot of backwards and forwards via comments and often a lot of extra work and playing around our end, especially if we aren't able to reproduce the issue. Long story short, provide all the info necessary for reproducing your work, which makes likes life easier for everyone.