Comments (7)
Thanks @matcyr, and congrats on filing your first issue - welcome!
Can you paste your error message after running conda env create --force --file environment.yml
?
from tybalt.
Thanks @matcyr, and congrats on filing your first issue - welcome!
Can you paste your error message after running
conda env create --force --file environment.yml
?
The error code is here:
(base) :~/tybalt$ conda env create --force --file environment.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
Collecting package metadata (repodata.json): done
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining conflict for nb_conda_kernels widgetsnbextension ipywidgets ipykernel jupyter: : 28it [01:3Examining conflict for ipywidgets widgetsnbextension ipykernel: : 29it [01:31, 2.03s/it] Examining conflict for widgetsnbextension tensorflow ipywidgets ipykernel keras: : 33it [01:33, 1.19Examining conflict for widgetsnbextension tensorflow ipywidgets ipykernel keras: : 34it [01:33, 1.12Examining conflict for jupyter ipywidgets widgetsnbextension nb_conda_kernels: : 34it [01:34, 1.12itExamining conflict for jupyter ipywidgets widgetsnbextension nb_conda_kernels: : 35it [01:34, 1.06itExamining conflict for jupyter ipywidgets widgetsnbextension: : 35it [01:35, 1.06it/s] Examining conflict for jupyter ipykernel widgetsnbextension nb_conda_kernels: : 44it [01:39, 1.39it/Examining conflict for jupyter widgetsnbextension nb_conda_kernels: : 45it [01:40, 1.39it/s] failed
For instance, I change conda-forge::keras=2.1.3 to defaults::keras=2.1.3 since keras 2.1.3 is not in channel conda forge right now.
I think the conflit happens when installing matplotlib and keras-tqdm .
Then, I tried to install line by line. I tried to use: 'conda install conda-forge::tensorflow=1.4.0' then import tensorflow and get
Traceback (most recent call last):
File "", line 1, in
File "/home/guoyue/anaconda3/envs/tmp/lib/python3.5/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import *
File "/home/guoyue/anaconda3/envs/tmp/lib/python3.5/site-packages/tensorflow/python/init.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/guoyue/anaconda3/envs/tmp/lib/python3.5/site-packages/tensorflow/core/framework/graph_pb2.py", line 6, in
from google.protobuf import descriptor as _descriptor
File "/home/guoyue/anaconda3/envs/tmp/lib/python3.5/site-packages/google/protobuf/descriptor.py", line 47, in
from google.protobuf.pyext import _message
ImportError: /home/guoyue/anaconda3/envs/tmp/lib/python3.5/site-packages/google/protobuf/pyext/_message.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZNK6google8protobuf10TextFormat17FieldValuePrinter9PrintBoolEb
I could not figure out why it happens. It never happened to me when I used tensoflow 2.0 and above.
Thanks,
yurui
from tybalt.
Thanks @matcyr - keras and tensorflow have been notoriously difficult to support using conda, although it is surprising that conda-forge no longer supports that keras version. But since you found it in defaults, maybe it isn't a big deal?
I think the conflit happens when installing matplotlib and keras-tqdm .
Try removing keras-tqdm and then recreating the environment. I am ok with removing this package in favor of more stable maintenance.
from tybalt.
Thanks @matcyr - keras and tensorflow have been notoriously difficult to support using conda, although it is surprising that conda-forge no longer supports that keras version. But since you found it in defaults, maybe it isn't a big deal?
I think the conflit happens when installing matplotlib and keras-tqdm .
Try removing keras-tqdm and then recreating the environment. I am ok with removing this package in favor of more stable maintenance.
I removed keras-tqdm and successfuly create the environment. However I still get trouble when importing packages. I got the error report when import tensorflow:
ImportError Traceback (most recent call last)
in
----> 1 import tensorflow
~/anaconda3/envs/tybalt/lib/python3.5/site-packages/tensorflow/init.py in
22
23 # pylint: disable=wildcard-import
---> 24 from tensorflow.python import *
25 # pylint: enable=wildcard-import
26
~/anaconda3/envs/tybalt/lib/python3.5/site-packages/tensorflow/python/init.py in
50
51 # Protocol buffers
---> 52 from tensorflow.core.framework.graph_pb2 import *
53 from tensorflow.core.framework.node_def_pb2 import *
54 from tensorflow.core.framework.summary_pb2 import *
~/anaconda3/envs/tybalt/lib/python3.5/site-packages/tensorflow/core/framework/graph_pb2.py in
4 import sys
5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
----> 6 from google.protobuf import descriptor as _descriptor
7 from google.protobuf import message as _message
8 from google.protobuf import reflection as _reflection
~/anaconda3/envs/tybalt/lib/python3.5/site-packages/google/protobuf/descriptor.py in
45 import binascii
46 import os
---> 47 from google.protobuf.pyext import _message
48 _USE_C_DESCRIPTORS = getattr(_message, '_USE_C_DESCRIPTORS', False)
49
ImportError: /home/guoyue/anaconda3/envs/tybalt/lib/python3.5/site-packages/google/protobuf/pyext/_message.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZNK6google8protobuf10TextFormat17FieldValuePrinter9PrintBoolEb
May I know which OS you are using? I am working on ubuntu 18.04 and conda version 4.9.2. Will you find this error if you recreating the environment right now?
Thanks for the time.
from tybalt.
I am able to set up the environment by changing pip install to python -m pip install.
I will close the issue. Thank you.
from tybalt.
Hi @matcyr,
I have the same problem. I set up the environment step by step however I get the import error below. Could you provide me the exact steps and environment file that worked for you? Thank you in advance.
import tensorflow as tf
File "/mnt/lsf-nas-1/os-shared/anaconda3/envs/tybalt/lib/python3.5/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/mnt/lsf-nas-1/os-shared/anaconda3/envs/tybalt/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 54, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "/mnt/lsf-nas-1/os-shared/anaconda3/envs/tybalt/lib/python3.5/site-packages/tensorflow/core/framework/graph_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
File "/mnt/lsf-nas-1/os-shared/anaconda3/envs/tybalt/lib/python3.5/site-packages/google/protobuf/descriptor.py", line 47, in <module>
from google.protobuf.pyext import _message
ImportError: /mnt/lsf-nas-1/os-shared/anaconda3/envs/tybalt/lib/python3.5/site-packages/google/protobuf/pyext/_message.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZNK6google8protobuf10TextFormat17FieldValuePrinter9PrintBoolEb
from tybalt.
pip install --upgrade --force-reinstall protobuf
solved it for me.
from tybalt.
Related Issues (20)
- Simulation Experiments HOT 2
- Keras versioning error HOT 3
- Add R packages to environment.yml HOT 2
- Reproducing separation HOT 3
- Reorganize repository
- ADAGE Implementation Issues HOT 2
- Replace data in encoded_adage_features.tsv HOT 1
- Something wrong in extracting weights? HOT 3
- Sampling space for specific genes HOT 4
- Zero'd out training HOT 3
- Sampling distriubtions HOT 7
- Features that represent biological signals HOT 3
- t-SNT visualization HOT 2
- Matching pancancer expression to metadata HOT 4
- ERROR: VAE Model reconstruct the gene expression data HOT 4
- Passing list-likes to .loc or [] with any missing label will raise KeyError in the future, you can use .reindex() as an alternative. HOT 2
- Modify Tybalt to handle missing values for incomplete data HOT 4
- Top n - High Weight Selection Method HOT 1
- MAD: mean or median? HOT 2
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 tybalt.