ModuleNotFoundError: No module named 'RNA' - python

I have installed Anaconda in Ubuntu and then installed the ViennaRNA in anaconda using the following command:
conda install -c bioconda viennarna
But when I run the code:
import RNA
It shows the following error:
ModuleNotFoundError: No module named 'RNA'
Does anyone know how to solve it?

I used python3.6 -c import RNA instead of python -c import RNA and it worked.

Related

ModuleNotFoundError: No module named 'pycoin'

Code:
from pycoin.ecdsa.secp256k1 import secp256k1_generator
When I run this, I get the error:
ModuleNotFoundError: No module named 'pycoin'
I've tried doing:
pip3 install pycoin
aswell as
pip install pycoin
Both of which have lead to the same error.
I've ran the code on python and python3 which also leads to the same error.
Any solutions?
Go to terminal or cmd on windows and type python3 (python2, python for older versions)
Then try to import the module there.
If the module in imported successfully then reopen your IDE. and then try.

Cannot use giotto in google colab

I installed giotto-tda library with a command: %pip install --user pyproj giotto-tda
and then tried to use: from gtda.time_series import TakensEmbedding
but I am still getting an error: "No module named 'gtda'.
Did you have a similar problem?

Conda ERROR _sysconfigdata_x86_64_conda_linux_gnu

I have one error: ModuleNotFoundError: No module named '_sysconfigdata_x86_64_conda_linux_gnu'
Using comand: pip3 install --editable ./BindingSitesFromFragments
I had this problem after installing anaconda (w/ python3.8.8) on Ubuntu 20.04 on an aws ec2 instance.
Here is my error message:
"ModuleNotFoundError: No module named '_sysconfigdata_x86_64_conda_linux_gnu'"
After a search
sudo find / -name _sysconfigdata_x86_64*`
and found the file
/home/ubuntu/anaconda3/lib/python3.8/_sysconfigdata_x86_64_conda_cos6_linux_gnu.py
Copying this file to the name of the missing file solved my problem
cd ~/anaconda3/lib/python3.8
cp _sysconfigdata_x86_64_conda_cos6_linux_gnu.py _sysconfigdata_x86_64_conda_linux_gnu.py
works however, it will throw an another error, Downgrade the pandas to 0.20.3 or 1.4.1 worked for me
#--------------------------------
from pandas.util._exceptions import find_stack_level
ImportError: cannot import name 'find_stack_level' from 'pandas.util._exceptions' (/home/pontis/anaconda3/envs/stats1/lib/python3.8/site-packages/pandas/util/_exceptions.py)

Python3 import error: No module named 'rpm'

On a CentOS 7 I have installed python3 with the following command:
yum install -y python3
However, when I call import rpm, I get this error:
File "\<stdin>", line 1, in \<module>
ModuleNotFoundError: No module named 'rpm'
So how do I import the python3 rpm module?
Running rpm --version returns
RPM version 4.11.3
Accessing python (2.7.5) and running the import command works. So I could call a python2 script from python 3, as described here but this just feels wrong.
There are similar questions to this but they all relate to the rpm module being unavailable from Python2 and I don't have that problem. None deal with making the rpm module available in Python3.
Did you install the rpm python package for the python3 distribution?
pip3 install rpm-py-installer
Per the homepage of RPM this seems to be a required step.

ModuleNotFoundError: No module named 'feather.compat'

I installed feather using
conda install feather-format -c conda-forge
and I believe that it was successfully installed but when I try to run a program with
from feather.compat import pdapi
I get an error saying that there is no module named 'feather.compat'. How do I fix this?

Categories

Resources