Error in networkx

File “/Users/samarthsatalingakittad/Desktop/ff/cgenff_charmm2gmx_py3_nx2.py”, line 54, in
import networkx as nx
File “/opt/anaconda3/lib/python3.12/site-packages/networkx/init.py”, line 114, in
import networkx.generators
File “/opt/anaconda3/lib/python3.12/site-packages/networkx/generators/init.py”, line 14, in
from networkx.generators.intersection import *
File “/opt/anaconda3/lib/python3.12/site-packages/networkx/generators/intersection.py”, line 13, in
from networkx.algorithms import bipartite
File “/opt/anaconda3/lib/python3.12/site-packages/networkx/algorithms/init.py”, line 16, in
from networkx.algorithms.dag import *
File “/opt/anaconda3/lib/python3.12/site-packages/networkx/algorithms/dag.py”, line 23, in
from fractions import gcd
ImportError: cannot import name ‘gcd’ from ‘fractions’ (/opt/anaconda3/lib/python3.12/fractions.py)

can u help me deal with this error

Hi!

This is not a problem in GROMACS, but in an 3rd party script. Moreover, the same question has been asked multiple times on this forum, please see, e.g., Hello all please help me for gromacs installation with cuda. I m getting following error - #10 by al42and.