Comments (5)
Hi! Thanks for using cazy_webscraper and glad you’re finding it useful!
That seems like a weird behaviour, thanks for flagging it.
How did you install cazy_webscraper?
Also, what error message and traceback specifically were you getting when trying to run cazy_webscraper, before you moved the script cazy_webscraper.py?
from cazy_webscraper.
Perhaps I haven't installed it correctly, I just downloaded everything, extracted, and moved into the cazy-webscraper-master folder. I couldn't see cazy_webscraper.py there, but I found it in scraper, so I ran from the terminal:
python3 scraper/cazy_webscraper.py --families GT1
That gave me the following error:
Traceback (most recent call last):
File "scraper/cazy_webscraper.py", line 76, in <module>
from scraper import crawler
ModuleNotFoundError: No module named 'scraper'
from cazy_webscraper.
Ah, so sorry, I returned to original state and ran:
pip3 install -e .
and it works now! Oops. Sorry to bother. Thanks anyway!
from cazy_webscraper.
Annoyingly downloading the files doesn't install the package. There's a couple of extra steps to install cazy_webscraper I'm afraid
The README contains a breif summary of each of the methods of installation (of which there are 3).
For a step-by-step walk through that provides more explanation there is an installation tutorial in the documentation, which explains in depth how to get set up on MacOS, Windows and Linux systems.
For the quickest and easiest install then I would recommend using conda
(if you have conda installed), then you need only run the command: conda install -c bioconda cazy_webscraper
and it handles everything. After that, to use cazy_webscraper from any directory you need only call it using cazy_webscraper
followed by any optional flags.
Alternatively, you can use pip (which you'll very likely have installed if you have Python installed), and then you can use the command pip3 install cazy_webscraper
. Again, to use cazy_webscraper from any directory you need only call it using cazy_webscraper
followed by any optional flags.
The advantage of using pip
and conda
is that they will install cazy_webscraper
and all the packages it requires to operate, and build the necessary paths between its modules and submodules.
If you want to continue on from where you have gotten to, you need to move the script cazy_webscraper.py
back into the scraper
directory. Then with the terminal pointed out the main (root) directory using setuptools
to install cazy_webscraper. This can be done using the following command: pip3 install -e .
-- don't forget the -e
flag otherwise the tool won't be installed as an executable and you'll run into no ends of problems! Once that is done, to then use cazy_webscraper
, you can call it by using Python3 <path to cazy_webscraper.py> <optional flags>
from cazy_webscraper.
Oh no worries that was bad timing on my part! Glad its all working now :) -- it was also no both at all!
If you have any other issues, be it bugs or unsure which command flags/options to use please raise an issue again
from cazy_webscraper.
Related Issues (20)
- Fix logger inheritance
- Use NCBI Tax IDs
- Bio.Entrez NotXMLError HOT 1
- Fails to retrieve data from UniProt
- Crashes when retrieving NCBI seqs: http.client.IncompleteRead
- Failing to retrieve UniProt data HOT 4
- API missing opt to include 'kingdoms' in output
- Update to `sqlalchemy` 2.x HOT 1
- Crashes when retrieving seqs from NCBI
- No PDB acessions matched and Retrieving no protein structure files HOT 3
- Unexpected error message when retrieving AA UniProt sequences HOT 2
- Add subcommands HOT 1
- Increase unit test coverage
- Crashing when retrieving taxs from NCBI HOT 6
- Incomplete read error HOT 3
- Reduced memory demand HOT 1
- Crashing when retrieving taxs from NCBI - perhaps related to #120 HOT 1
- cazy_webscraper - error downloading database HOT 1
- Error during retrieving taxa info from NCBI HOT 1
- Incorrect parsing of NCBI protein version accession HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cazy_webscraper.