smaegol/PlasFlow

Running error with "__init__.py"

Handymanalan opened this issue · 2 comments

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

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

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