-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when installing from conda #106
Comments
Hi Alex, |
Greetings Alex, Correct file (note the environment name change): name: snorkeling
channels:
- conda-forge
- pytorch
dependencies:
- beautifulsoup4=4.6.0
- ipykernel=5.1.2
- ipywidgets=7.5.1
- jupyter=1.0.0
- jupyter_client=5.3.4
- jupyter_console=6.0.0
- jupyter_core=4.6.0
- llvmlite=0.21.0
- lxml==4.1.1
- matplotlib=3.1.1
- neo4j-python-driver==1.3.1
- networkx=2.1
- nltk=3.2.4
- numpy=1.17.2
- pandas=0.24.0
- pip=19.2.3
- plotnine=0.5.1
- psycopg2=2.7.3.2
- python=3.6.7
- pytorch=1.1.0
- py4j=0.10.6
- requests=2.18.4
- seaborn=0.9.0
- scikit-image=0.13.1
- scikit-learn=0.21.3
- scipy=1.3.1
- six=1.12.0
- sqlite=3.30.0
- tensorflow==2.0.0
- tensorboard==2.0.0
- tqdm=4.28.1
- tika=1.15
- xlrd=1.1.0
- xlsxwriter=1.0.4
- pip:
- gensim==3.8.1
- hetio==0.2.6
- matplotlib-venn==0.11.5
- snorkel==0.9.1
- spacy==1.10.0
- sqlalchemy==1.1.13
~danich1 |
Thank you, Alexandra and David. I appreciate the prompt reply. A follow up question... the snorkel 0.9.1 does not contain a snorkel module. I am trying to run some notesbooks, like compound_disease/compound_treats_disease/dataset_statistics/dataset_statistics.ipynb, but it will not run. ModuleNotFoundError Traceback (most recent call last) ModuleNotFoundError: No module named 'snorkel.model' |
Right. I figured that would happen. Reason for the error is that some of my notebooks was using snorkel's old version, before the authors upgraded their code. The old code was using a database to access sentences and other information and now the authors adapted their code to move away from using a database. If you want to run the notebooks that use snorkel's old code, you will have to install this library as a separate conda environment. |
Hi, I am having an issue while running the pubtator-to-postgres.ipynb file from the create_database folder. PicklingError Traceback (most recent call last) ~\Desktop\snorkeling\create_database\database_insertion.py in insert_cand_to_db(extractor, sentences) ~\Anaconda3\envs\snorkel-extraction\lib\site-packages\snorkel\candidates.py in apply(self, xs, split, **kwargs) ~\Anaconda3\envs\snorkel-extraction\lib\site-packages\snorkel\udf.py in apply(self, xs, clear, parallelism, progress_bar, count, **kwargs) ~\Anaconda3\envs\snorkel-extraction\lib\site-packages\snorkel\udf.py in apply_mt(self, xs, parallelism, **kwargs) ~\Anaconda3\envs\snorkel-extraction\lib\multiprocessing\process.py in start(self) ~\Anaconda3\envs\snorkel-extraction\lib\multiprocessing\context.py in _Popen(process_obj) ~\Anaconda3\envs\snorkel-extraction\lib\multiprocessing\context.py in _Popen(process_obj) ~\Anaconda3\envs\snorkel-extraction\lib\multiprocessing\popen_spawn_win32.py in init(self, process_obj) ~\Anaconda3\envs\snorkel-extraction\lib\multiprocessing\reduction.py in dump(obj, file, protocol) PicklingError: Can't pickle <class 'snorkel.models.candidate.DiseaseGene'>: attribute lookup DiseaseGene on snorkel.models.candidate failed |
This error arises because the pickle library cannot pickle sqlalchemy's candidate_subclass class. This is actually not an easy problem to fix. (see this post) If you want to get functionality working here you might have to edit snorkel's code directly. Turns out their old version is depreciated, so it adds to the complexity. |
Thanks a lot David that would be really helpful. |
Hello!
I am having the following issue with installing the condo environment from YML file.
The text was updated successfully, but these errors were encountered: