-
Notifications
You must be signed in to change notification settings - Fork 19
Description
I'm trying to use python to convert a file for use in gromacs and this error is shown. How do I fix it?
python3 cgenff_charmm2gmx_py3_nx1.py ligand ligand_fix.mol2 ligand.str charmm36-jul2022.ff
Traceback (most recent call last):
File "/mnt/c/Users/conta/Desktop/MD/Test/cgenff_charmm2gmx_py3_nx1.py", line 51, in
import networkx as nx
File "/home/lourenco/.local/lib/python3.10/site-packages/networkx/init.py", line 114, in
import networkx.generators
File "/home/lourenco/.local/lib/python3.10/site-packages/networkx/generators/init.py", line 14, in
from networkx.generators.intersection import *
File "/home/lourenco/.local/lib/python3.10/site-packages/networkx/generators/intersection.py", line 13, in
from networkx.algorithms import bipartite
File "/home/lourenco/.local/lib/python3.10/site-packages/networkx/algorithms/init.py", line 16, in
from networkx.algorithms.dag import *
File "/home/lourenco/.local/lib/python3.10/site-packages/networkx/algorithms/dag.py", line 23, in
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.10/fractions.py)