ViennaRNA / forna

Create force-directed graphs of RNA secondary structures.
Apache License 2.0
100 stars 31 forks source link

make install error: cannot import name '_RNA' from partially initialized module 'RNA' #51

Closed gprezza closed 1 year ago

gprezza commented 1 year ago

I am trying to install locally from source. I run:

tar -zxvf ViennaRNA-2.5.1.tar.gz
cd ViennaRNA-2.5.1
./configure --prefix=/home/gprezza/bin/ViennaRNA
make install

The last command fails after a while with the following message (last few lines in the terminal):

  GEN      RNA/__init__.py
  GEN      RNA/_RNANone
  GEN      RNA/__pycache__/__init__.cpython-311.pyc
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named '_RNA'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/gprezza/bin/ViennaRNA-2.5.1/interfaces/Python/RNA/__init__.py", line 11, in <module>
    from . import _RNA
ImportError: cannot import name '_RNA' from partially initialized module 'RNA' (most likely due to a circular import) (/home/gprezza/bin/ViennaRNA-2.5.1/interfaces/Python/RNA/__init__.py)
make[2]: *** [Makefile:1042: RNA/__pycache__/__init__.cpython-311.pyc] Error 1
make[2]: Leaving directory '/home/gprezza/bin/ViennaRNA-2.5.1/interfaces/Python'
make[1]: *** [Makefile:642: install-recursive] Error 1
make[1]: Leaving directory '/home/gprezza/bin/ViennaRNA-2.5.1/interfaces'
make: *** [Makefile:692: install-recursive] Error 1

Couldn't find anything around that solves this, would appreciate any help.

gprezza commented 1 year ago

Sorry, this was meant to be in the ViennaRNA repo.