Comments (2)
Localizing this a bit:
- Python 3.8
$ python -c 'from yadage.steering_api import run_workflow' # no output as import works
- Python 3.9
$ python -c 'from yadage.steering_api import run_workflow'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/yadage/steering_api.py", line 8, in <module>
from .steering_object import YadageSteering
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/yadage/steering_object.py", line 5, in <module>
import adage
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/adage/__init__.py", line 6, in <module>
from adage.adageobject import adageobject
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/adage/adageobject.py", line 1, in <module>
import adage.graph
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/adage/graph.py", line 1, in <module>
import networkx as nx
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/networkx/__init__.py", line 84, in <module>
import networkx.generators
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/networkx/generators/__init__.py", line 5, in <module>
from networkx.generators.classic import *
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/networkx/generators/classic.py", line 21, in <module>
from networkx.algorithms.bipartite.generators import complete_bipartite_graph
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/networkx/algorithms/__init__.py", line 12, in <module>
from networkx.algorithms.dag import *
File "/home/feickert/.pyenv/versions/recast-atlas-39/lib/python3.9/site-packages/networkx/algorithms/dag.py", line 2, in <module>
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/home/feickert/.pyenv/versions/3.9.6/lib/python3.9/fractions.py)
where
$ pip show networkx
Name: networkx
Version: 1.11
Summary: Python package for creating and manipulating graphs and networks
Home-page: http://networkx.github.io/
Author: NetworkX Developers
Author-email: [email protected]
License: BSD
Location: /home/feickert/.pyenv/versions/3.9.6/envs/recast-atlas-39/lib/python3.9/site-packages
Requires: decorator
Required-by: adage
As described in smicallef/spiderfoot#1124, this is due to networkx<2.5
using a deprecated function. So as adage
is apparently pinning this with
install_requires = [
'networkx==1.11'
],
Luckily, yadage
requires adage
$ pip show adage
Name: adage
Version: 0.10.1
Summary: running dynamic DAG workflows
Home-page: UNKNOWN
Author: Lukas Heinrich
Author-email: [email protected]
License: UNKNOWN
Location: /home/feickert/.pyenv/versions/3.9.6/envs/recast-atlas-39/lib/python3.9/site-packages
Requires: networkx
Required-by: yadage
So the minimum fix for this should be:
- Upgrade
networkx
dependency inadage
to benetworkx>=2.5
- Fix anything that breaks with that
- Make new release of
adage
from recast-atlas.
Resolved with release of recast-atlas
v0.1.9
given the release of adage
v0.10.2
.
from recast-atlas.
Related Issues (20)
- require 'jsonschema<4.0' HOT 3
- `recast backends ls --check` should check only the installed backends
- `yadageschemas` fails to specify `six` dependency HOT 2
- Add ability to list out environmental variables used for configuration
- LXPLUS example in docs not working HOT 3
- Remove deprecated distutils functionality
- ATLAS-CONF-2018-041 example fails HOT 1
- Ability to avoid pull step to use local image HOT 1
- Add a HEAD of dependencies CI workflow
- how to assign cpu cores and memory limits to a job when running via docker as backend HOT 2
- `local` and `reana` extras running into PyYAML 5.4.x Cython issues HOT 3
- Recast on ARM Architectures HOT 4
- Examples not working with local backend HOT 4
- Unify UX for 'local' backend
- lxplus apptainer can't switch between registries HOT 2
- Add ability to set platform from packtivity environmental variable
- Add support for Python 3.12 HOT 4
- Only generate GitHub attestations on PyPI deployment
- Backend loading is dependent on setuptools HOT 4
- Don't continue to execute after an `ImportError`
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 recast-atlas.