Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.9 breaks pydent #100

Open
dvnstrcklnd opened this issue May 12, 2021 · 3 comments
Open

Python 3.9 breaks pydent #100

dvnstrcklnd opened this issue May 12, 2021 · 3 comments
Labels

Comments

@dvnstrcklnd
Copy link
Contributor

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-33a3011c0eca> in <module>
----> 1 from util.pydent_helper import *
      2 import pandas as pd
      3 
      4 pd.options.display.max_rows = 999

~/work/util/pydent_helper.py in <module>
      1 import os
      2 import json
----> 3 import pydent
      4 from pydent import AqSession, __version__
      5 

/opt/conda/lib/python3.9/site-packages/pydent/__init__.py in <module>
     10 from .__version__ import __title__
     11 from .__version__ import __version__
---> 12 from .aqsession import AqSession
     13 from .base import ModelBase
     14 from .base import ModelRegistry

/opt/conda/lib/python3.9/site-packages/pydent/aqsession.py in <module>
    102 from pydent.base import ModelBase
    103 from pydent.base import ModelRegistry
--> 104 from pydent.browser import Browser
    105 from pydent.interfaces import BrowserInterface
    106 from pydent.interfaces import QueryInterface

/opt/conda/lib/python3.9/site-packages/pydent/browser.py in <module>
     19 from typing import Union
     20 
---> 21 import networkx as nx
     22 
     23 from pydent import models as pydent_models

/opt/conda/lib/python3.9/site-packages/networkx/__init__.py in <module>
    112 from networkx.relabel import *
    113 
--> 114 import networkx.generators
    115 from networkx.generators import *
    116 

/opt/conda/lib/python3.9/site-packages/networkx/generators/__init__.py in <module>
     12 from networkx.generators.expanders import *
     13 from networkx.generators.geometric import *
---> 14 from networkx.generators.intersection import *
     15 from networkx.generators.joint_degree_seq import *
     16 from networkx.generators.lattice import *

/opt/conda/lib/python3.9/site-packages/networkx/generators/intersection.py in <module>
     11 import random
     12 import networkx as nx
---> 13 from networkx.algorithms import bipartite
     14 from networkx.utils import py_random_state
     15 

/opt/conda/lib/python3.9/site-packages/networkx/algorithms/__init__.py in <module>
     14 from networkx.algorithms.cycles import *
     15 from networkx.algorithms.cuts import *
---> 16 from networkx.algorithms.dag import *
     17 from networkx.algorithms.distance_measures import *
     18 from networkx.algorithms.distance_regular import *

/opt/conda/lib/python3.9/site-packages/networkx/algorithms/dag.py in <module>
     21 
     22 from collections import defaultdict, deque
---> 23 from fractions import gcd
     24 from functools import partial
     25 from itertools import chain

ImportError: cannot import name 'gcd' from 'fractions' (/opt/conda/lib/python3.9/fractions.py)
@bjkeller
Copy link
Member

@jvrana pointed out that this is a known issue with networkx and forcing a reinstall of networkx in your environment should take care of it.

@dvnstrcklnd
Copy link
Contributor Author

dvnstrcklnd commented May 12, 2021 via email

@bjkeller
Copy link
Member

OK, may require a rebuild on our side or an update to the dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants