GithubHelp home page GithubHelp logo

Comments (4)

fluhus avatar fluhus commented on July 19, 2024 2

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.

dnolin13 avatar dnolin13 commented on July 19, 2024 1

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'

  1. 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.

TomasaSbaffi avatar TomasaSbaffi commented on July 19, 2024 1

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.

TomasaSbaffi avatar TomasaSbaffi commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.