Skip to content
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

Running error with "__init__.py" #27

Open
Handymanalan opened this issue Jul 9, 2019 · 2 comments
Open

Running error with "__init__.py" #27

Handymanalan opened this issue Jul 9, 2019 · 2 comments

Comments

@Handymanalan
Copy link

Handymanalan commented Jul 9, 2019

Hi,

I installed PlasFlow through anaconda with the command line:
conda create -n plasflow python=3.5 plasflow

Then I ran plasflow.py but then I got the following errors:

Calculating kmer frequencies using kmer 5
Transforming kmer frequencies
Traceback (most recent call last):
File "/srv/scratch/z3336178/anaconda/envs/plasflow/bin/PlasFlow.py", line 261, in
vote_proba = vote_class.predict_proba(input_data)
File "/srv/scratch/z3336178/anaconda/envs/plasflow/bin/PlasFlow.py", line 215, in predict_proba
self.probas_ = [clf.predict_proba_tf(X) for clf in self.clfs]
File "/srv/scratch/z3336178/anaconda/envs/plasflow/bin/PlasFlow.py", line 215, in
self.probas_ = [clf.predict_proba_tf(X) for clf in self.clfs]
File "/srv/scratch/z3336178/anaconda/envs/plasflow/bin/PlasFlow.py", line 171, in predict_proba_tf
import tensorflow as tf
File "/srv/scratch/z3336178/anaconda/envs/plasflow/lib/python3.5/site-packages/tensorflow/init.py", line 23, in
from tensorflow.python import *
File "/srv/scratch/z3336178/anaconda/envs/plasflow/lib/python3.5/site-packages/tensorflow/python/init.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "/srv/scratch/z3336178/anaconda/envs/plasflow/lib/python3.5/site-packages/tensorflow/core/framework/graph_pb2.py", line 6, in
from google.protobuf import descriptor as _descriptor
File "/srv/scratch/z3336178/anaconda/envs/plasflow/lib/python3.5/site-packages/google/protobuf/descriptor.py", line 47, in
from google.protobuf.pyext import _message
ImportError: /srv/scratch/z3336178/anaconda/envs/plasflow/lib/python3.5/site-packages/google/protobuf/pyext/_message.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZNK6google8protobuf10TextFormat17FieldValuePrinter9PrintBoolEb

Is it a compatibility problem?

Cheers

Alan

@liangjinsong
Copy link

I also encountered the same problem, can anyone figure out the reason?

@VadimDu
Copy link

VadimDu commented Sep 2, 2019

I also encountered the same error. I have installed PlasFlow as instructed using Conda (Python 3.5 etc') but missed one step (Mac users should install Tensorflow at this step... - it's a bit confusing).

You need specifically tenserflow v0.10 to run PlosFlow. So after you activate PlasFlow environment (conda activate plasflow) type "conda install -c jjhelmus tensorflow=0.10.0rc0" as written in the instructions. This should solve the issue.

Regards
Vadim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants