question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Travis FSLeyes installs failing

See original GitHub issue

For the last 2 days, all Travis builds with FSLeyes install are failing on test_train_network.py.

The error comes from Keras and happened in train_network.py where loading the trained model.

Error ADS train_network.py
test/test_train_network.py:135: 
AxonDeepSeg/train_network.py:289: in train_model
    str(path_model) + "/model.hdf5", custom_objects=custom_objects
../../../miniconda/envs/ads_venv/lib/python3.7/site-packages/keras/engine/saving.py:419: in load_model
    model = _deserialize_model(f, custom_objects, compile)
Error Keras
        model_config = f['model_config']
        if model_config is None:
            raise ValueError('No model found in config.')
>       model_config = json.loads(model_config.decode('utf-8'))
E       AttributeError: 'str' object has no attribute 'decode'
../../../miniconda/envs/ads_venv/lib/python3.7/site-packages/keras/engine/saving.py:224: AttributeError

The same test with Basic Install is passing.

This may be linked with the issue we had with h5py version in PR #382.

The “basic install” installs h5py=2.10.0. The “FSLeyes install” with conda-forge seems to install h5py=3.1.0.

The last build with FSLeyes that passed was 5 days ago, and FSLeyes was installing h5py=2.10.0.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
mathieuboudreaucommented, Nov 11, 2020

Fair point re: h5py!

The problem with doing pip install -e . after installing FSLeyes is that we might downgrade other packages are needed for FSLeyes too, breaking that tool now. Maybe just redownloading the proper version h5py would be more prudent.

1reaction
mathieuboudreaucommented, Nov 11, 2020

Hmmm. I know that installing FSLeyes using conda overrides some of the requirement versions of our original ADS install sometimes. Could you try pip installing ADS, installing FSLeyes, then pip installing ADS again to see if that it resolves? If so, we could do a comparison of the pip freeze output before and after FSLeyes being installed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — FSLeyes 1.5.0 documentation
This means that FSLeyes has been unable to locate the directory in which FSL is installed, and may mean that your FSL environment...
Read more >
travis/macos builds not uploading · Issue #7 - GitHub
The travis-ci OSX builds are not uploading to anaconda.org, and I am getting this message at the end: Distribution /Users/...
Read more >
Travis builds fail with "apt-get install failed" - Stack Overflow
I was getting the following error on Debian 9.4 stretch when I tried to install the older installer , mysql-apt-config_0.8.6-1_all.deb.
Read more >
Python packages no longer installing on jammy with python 3.10
The issue installing psycopg2 is failing when importing a module from setuptools. A detailed attempt showcasing the above can be found below. $ ......
Read more >
EasyBuild v4.6.2 documentation (release 20221021.0)
... alt_location tests to fix failing EasyBuild installation on BeeGFS (#4083) ... to install h5py 2.10.0 (#11044); stop testing easyconfig PRs with Travis, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found