networkx-2.3 pin breaking macOS builds on python3.9
See original GitHub issue@conda-forge/staged-recipes, I’m sure someone else has already reported this, but it looks like the osx miniforge installation has just jumped to python3.9, which breaks networkx
so even skip: true # [osx]
builds are breaking [ref]:
+ python .ci_support/build_all.py
Traceback (most recent call last):
File "/Users/runner/work/1/s/.ci_support/build_all.py", line 2, in <module>
import networkx as nx
File "/Users/runner/miniforge3/lib/python3.9/site-packages/networkx/__init__.py", line 114, in <module>
import networkx.generators
File "/Users/runner/miniforge3/lib/python3.9/site-packages/networkx/generators/__init__.py", line 14, in <module>
from networkx.generators.intersection import *
File "/Users/runner/miniforge3/lib/python3.9/site-packages/networkx/generators/intersection.py", line 13, in <module>
from networkx.algorithms import bipartite
File "/Users/runner/miniforge3/lib/python3.9/site-packages/networkx/algorithms/__init__.py", line 16, in <module>
from networkx.algorithms.dag import *
File "/Users/runner/miniforge3/lib/python3.9/site-packages/networkx/algorithms/dag.py", line 23, in <module>
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/Users/runner/miniforge3/lib/python3.9/fractions.py)
This was corrected in https://github.com/networkx/networkx/pull/3639 and released with networkx-2.4
.
_Originally posted by @duncanmmacleod in https://github.com/conda-forge/staged-recipes/issues/14227#issuecomment-826674984_
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Mac OS Monterey Python Version?
For anyone who has Mac OS Monterey installed, it's just a case of opening up Terminal and running 'python --version'. There is a...
Read more >Installation of Python 3.8 and Python 3.9 side by side ...
Bug report What you were trying to do (and why) We are generating MacOS VMs for CI. We install python@3.8 formula. Then we...
Read more >Why new Macs break your Docker build, and how to fix it
New Macs can break your Docker image build in unexpected ways; learn why, and how to fix it.
Read more >The right and wrong way to set Python 3 as default on a Mac
Here's the full story of how to set up your environment without breaking anything built into the macOS operating system. 1. Install pyenv....
Read more >Problems installing python 3.6 with pyenv on Mac OS Big Sur
13 on my MacBook Air, OS Big Sur, using the command pyenv install 3.6.13 I get this error: Installing Python-3.6.13... python-build: use ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works, thanks again!
this should be closed by https://github.com/conda-forge/staged-recipes/pull/14736