Comments (4)
Thanks @TomasaSbaffi, your response helped me solve the issue. Reinstalling h5py with the version you mentioned was enough in my case.
@jessieren perhaps the instructions for creating the conda env should be updated with h5py=2.10.0
?
Edit: I can confirm that when I create the environment with conda create --name dvf numpy theano=1.0.3 keras=2.2.4 scikit-learn Biopython h5py=2.10.0
it works out of the box.
from deepvirfinder.
I am having the same issue!
(dvf) delaney@ada:~/software/DeepVirFinder$ ls dvf.py encode.py licence.md models README.md supplementary_tables test train_example training.py (dvf) delaney@ada:~/software/DeepVirFinder$ python dvf.py -i ./test/crAssphage.fa -o ./test/ -l 300 Using Theano backend. WARNING (theano.configdefaults): install mkl with
conda install mkl-service`: No module named 'mkl'
- Loading Models.
model directory /home/delaney/software/DeepVirFinder/models
Traceback (most recent call last):
File "dvf.py", line 131, in
modDict[contigLengthk] = load_model(os.path.join(modDir, modName))
File "/home/delaney/miniconda3/envs/dvf/lib/python3.6/site-packages/keras/engine/saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "/home/delaney/miniconda3/envs/dvf/lib/python3.6/site-packages/keras/engine/saving.py", line 224, in _deserialize_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'
(dvf) delaney@ada:~/software/DeepVirFinder$
`
from deepvirfinder.
I solved it with the following:
conda activate dvf
pip3 uninstall keras
pip3 uninstall tensorflow
pip3 uninstall h5py
pip3 install 'h5py==2.10.0' --force-reinstall
pip3 install 'tensorflow==2.4.1'
pip3 install 'keras==2.2.4'
I do believe the real problem for me was the version of TF, the older version installed with the instructions given was not working nor the new versions, but a middle ground version did work.
h5py and keras are reinstalled as per instructions so I am not sure if uninstalling them and re installing them actually helped.
I still do not know why but this worked fine for me. I hope it helps.
from deepvirfinder.
I also have the same issue, I am trying to install the packages in different orders but with no actual rationale behind.
It should be due to issues with dependencies:
https://stackoverflow.com/questions/53740577/does-any-one-got-attributeerror-str-object-has-no-attribute-decode-whi
from deepvirfinder.
Related Issues (20)
- filelog not imported HOT 3
- ValueError: not enough values to unpack HOT 3
- Server's running time
- DeepVirFinder gets stuck on some sequences HOT 2
- Runtime Error during test-run HOT 2
- Stuck on loading models? HOT 2
- AttributeError: ('The following error happened while compiling the node', DotModulo(A, s, m, A2, s2, m2), '\n', "module 'numpy.core.multiarray' has no attribute '_get_ndarray_c_version'") HOT 3
- DeepVirFinder isn't work post conda install HOT 1
- Results processing and extraction of region?
- issue installing using conda, python=2.7 required HOT 1
- Make a versioned release HOT 2
- File "/data1/qinjunjun/zhu_bingduzu/DeepVirFinder/dvf.py", line 212, in <module>
- Suggestion: Add mkl-service to conda install command HOT 1
- IndexError: list index out of range (by using trained model for viral sequence scanning)
- training.py :: keras - tensorflow version requirements
- hello,I want to know how to set the -l parameter
- problem when running dvf on HPC HOT 2
- [QUESTION] Support Python 3.7 or later HOT 1
- DVF goes into sleep state 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 deepvirfinder.