Giter Club home page Giter Club logo

Comments (5)

HobnobMancer avatar HobnobMancer commented on September 24, 2024

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.

LFLWilson avatar LFLWilson commented on September 24, 2024

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.

LFLWilson avatar LFLWilson commented on September 24, 2024

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.

HobnobMancer avatar HobnobMancer commented on September 24, 2024

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.

HobnobMancer avatar HobnobMancer commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.