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.

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisburrcommented, Apr 26, 2021

It works, thanks again!

0reactions
runettecommented, Apr 26, 2021
Read more comments on GitHub >

github_iconTop 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 >

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