Comments (15)
Thanks! The error's been resolved.
from forna.
Hello!
You need to install the ViennaRNA
package from here: https://github.com/ViennaRNA/ViennaRNA
Hope this helps! If not, feel free to reopen this issue.
from forna.
Thank you for the reply,
I have installed the package and I followed the instructions from here
https://www.tbi.univie.ac.at/RNA/documentation.html#install
specifically the instructions:
tar -zxvf ViennaRNA-2.4.3.tar.gz
cd ViennaRNA-2.4.3
./configure --with-python
make
sudo make install
But it still gives me the same error. Am I installing the files in the wrong directory? Thanks again for the help
from forna.
Usually, when you install ViennaRNA, the libs go to /usr/local/{bin,lib}
Did you see if, after installation, they are there?
from forna.
I've looked but its the list of programs on the documentation here
https://www.tbi.univie.ac.at/RNA/documentation.html
So a lot of RNA* like RNAcofold and RNApaln but not RNA specifically
from forna.
https://www.tbi.univie.ac.at/RNA/ViennaRNA/doc/html/scripting.html
This is the documentation to look at. You need the Python SWIG Wrapper of the ViennaRNA
package and not a specific binary.
To see if the installation of the python interface worked you can try this command:
python -c 'import RNA'
If it returns nothing, everything is installed and ready. Otherwise you have to check the system variables of your system. Additionally, make sure you are using the right python version. If you use python 3, you need to run ./configure --with-python3
Good luck!
from forna.
Thank you for all the help. The interfaces were not being installed so I guess I'll have to check the system variables.
Thank you!
from forna.
Hi again,
So I had thought I resolved this isssue as ./configure --with-python
returned the following
##############################################
# Files will be installed in the following ##
# directories: ##
##############################################
Executables: /usr/local/bin
Libraries: /usr/local/lib
Header files: /usr/local/include
Extra Data: /usr/local/share
Man pages: /usr/local/share/man
Documentation: /usr/local/share/doc/ViennaRNA
(HTML): /usr/local/share/doc/ViennaRNA/html
(PDF): /usr/local/share/doc/ViennaRNA
Perl5 Interface: Not to be installed
(binaries):
(scripts):
Python2 Interface:
(binaries): /usr/local/lib/python2.7/site-packages
(scripts): /usr/local/lib/python2.7/site-packages
Python3 Interface: Not to be installed
(binaries):
(scripts):
but the RNA module is still missing. Is there anything in the installation that I should check again for errors? Thank you for the help
from forna.
Hello,
Can you please post the output of the following commands:
python --version
python -c 'import sys; print(sys.path)'
RNAfold --version
python -c 'import RNA; print(RNA.__version__)'
from forna.
the outputs are:
Python 2.7.12
['', '/usr/local/lib/python2.7/dist-packages/forgi-1.0-py2.7.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/ethan/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
RNAfold 2.4.3
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named RNA
from forna.
mhmm... could be a problem related to https://stackoverflow.com/questions/9387928/whats-the-difference-between-dist-packages-and-site-packages
Please also post:
whereis RNAfold
ls -alh /usr/local/lib/python2.7/site-packages/
ls -alh /usr/local/lib/python2.7/dist-packages/
from forna.
these are the output:
RNAfold: /usr/local/bin/RNAfold
total 16M
drwxrwsr-x 3 root staff 4.0K Jan 25 09:19 .
drwxrwsr-x 4 root staff 4.0K Jan 22 22:54 ..
drwxr-sr-x 2 root staff 4.0K Jan 25 09:19 RNA
-rwxr-xr-x 1 root staff 16M Jan 25 09:19 _RNA.so
total 256K
drwxrwsr-x 24 root staff 4.0K Jan 23 23:02 .
drwxrwsr-x 4 root staff 4.0K Jan 22 22:54 ..
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 builtins
-rw-r--r-- 1 root staff 925 Jan 22 23:06 config-0.3.9.egg-info
-rw-r--r-- 1 root staff 56K May 11 2010 config.py
-rw-r--r-- 1 root staff 57K Jan 22 23:06 config.pyc
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 copyreg
drwxr-sr-x 2 root staff 4.0K Jan 23 23:01 decorator-4.2.1.dist-info
-rw-r--r-- 1 root staff 17K Jan 23 23:01 decorator.py
-rw-r--r-- 1 root staff 15K Jan 23 23:01 decorator.pyc
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 _dummy_thread
-rw-r--r-- 1 root staff 217 Jan 20 17:23 easy-install.pth
drwxr-sr-x 4 root staff 4.0K Jan 23 23:02 forgi-1.0-py2.7.egg
drwxr-sr-x 9 root staff 4.0K Jan 20 17:25 future
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 future-0.16.0.egg-info
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 html
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 http
drwxr-sr-x 3 root staff 4.0K Jan 20 17:25 libfuturize
drwxr-sr-x 3 root staff 4.0K Jan 20 17:25 libpasteurize
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 _markupbase
drwxr-sr-x 11 root staff 4.0K Jan 23 23:01 networkx
drwxr-sr-x 2 root staff 4.0K Jan 23 23:01 networkx-2.1.egg-info
drwxr-sr-x 7 root staff 4.0K Jan 20 17:25 past
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 queue
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 reprlib
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 socketserver
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 _thread
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 tkinter
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 winreg
drwxr-sr-x 2 root staff 4.0K Jan 20 17:25 xmlrpc
from forna.
Ok, now its clear. ViennaRNA
is installed in /usr/local/lib/python2.7/site-packages/
and not dist-packages
, which might be a bug. (@RaumZeit ?)
As a workaround, add /usr/local/lib/python2.7/site-packages/
to your sys.path
which can be done as described here: https://superuser.com/questions/247620/how-to-globally-modify-the-default-pythonpath-sys-path
from forna.
I'd say, no bug in ViennaRNA, but maybe a bug in Debian/Ubuntu.
What's the output of
python -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())"
It should point to dist-packages
if python is configured properly. If it is site-packages
which doesn't seem to be in your python path, then this is a bug in your Linux distribution and how it sets up the python package.
P.S.: As far as I understand, debian/ubuntu use the dist-packages
directory for everything that is installed via apt-get. Packages that are installed systemwide from source should use the site-packages
directory. So, maybe the installation is still alright but the sys.path
variable is not set up properly?
from forna.
Thanks @RaumZeit ! So it really seems like a bug in your distribution!
Because of packages installed from source: The Debian wiki is a little controversy there. First line says, that
Third party Python software installed from Debian packages goes into dist-packages, not site-packages...
So ok, this is for dep packages then. So code built from source goes into site-lackages
? Might be, but not written there... It also says that
distutils setup scripts install files in /usr/local/ [...]. Note that /usr/local/lib/pythonX.Y/dist-packages is in sys.path so that modules not installed from Debian packages can still be accessed by the system Python
So it actually seems as if modules built from source should go to /usr/local/lib/pythonX.Y/dist-packages
?! Stupid Debian convention... this regulation seems quite artificial!
from forna.
Related Issues (20)
- Open help in a new window
- Add legend for custom coloring
- Make custom coloring ranges molecule-specific
- How to cite? HOT 2
- Ability to display RNA duplexes
- wrong width/height ratios due to missing radius HOT 4
- custom numbering
- Add the name of the molecule
- Pass export file name HOT 6
- Submitting molecule doesn't work with forgi 1.1.0 while running locally HOT 3
- Dot-Bracket format HOT 1
- skip 0 index for negative start indices
- `from werkzeug.middleware.proxy_fix import ProxyFix` needed?
- Installation for mac issue HOT 1
- Installation issue for MacOs HOT 1
- Enable HTTPS for the API
- The backbone of 1st structure does not move when display multiple structures with applyForce = True option
- ERROR (0) - undefined
- make install error: cannot import name '_RNA' from partially initialized module 'RNA' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forna.