the command: python3 cgenff_charmm2gmx_py3_nx2.py UNL1 UNL_fix.mol2 UNL_fix.str charmm36-jul2022.ff

error message:

Traceback (most recent call last):

File "cgenff_charmm2gmx_py3_nx2.py", line 54, in

import networkx as nx

File "/home/citraha/.local/lib/python3.8/site-packages/networkx/__init__.py", line 117, in

import networkx.readwrite

File "/home/citraha/.local/lib/python3.8/site-packages/networkx/readwrite/__init__.py", line 15, in

from networkx.readwrite.graphml import *

File "/home/citraha/.local/lib/python3.8/site-packages/networkx/readwrite/graphml.py", line 314, in

class GraphML(object):

File "/home/citraha/.local/lib/python3.8/site-packages/networkx/readwrite/graphml.py", line 346, in GraphML

(np.int, "int"), (np.int8, "int"),

File "/home/citraha/.local/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__

raise AttributeError(__former_attrs__[attr])

AttributeError: module 'numpy' has no attribute 'int'.

`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.

The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:

https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Similar questions and discussions