When I point my python3 bin to /usr/bin/python3.6 I get below error:
[dgaikwad#localhost iqe-core]$ dnf
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'
[dgaikwad#localhost iqe-core]$
It is works fine when python3 pointed to /usr/bin/python3.7
Can someone please help me to solve it?
Related
I'm trying to execute a script that uses Scikit and autosklearn on Ubuntu 20, python 3.8
I have followed the instructions to install sckit https://scikit-learn.org/stable/install.html and autosklearn installation https://automl.github.io/auto-sklearn/master/installation.html
However I'm getting
Exception ignored in: <function AutoML.__del__ at 0x7f37c6ee9160>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/autosklearn/automl.py", line 1380, in __del__
self._backend.context.delete_directories(force=False)
AttributeError: 'AutoMLClassifier' object has no attribute '_backend'
Traceback (most recent call last):
File "myscript.py", line 261, in <module>
import model_snow_magn_only_package
File "/myfolder/myscript.py", line 150, in <module>
clf = pickle.load(open(model_name, "rb"))
ModuleNotFoundError: No module named 'sklearn.metrics.classification'
I have tried other releases of these packages but without success.
Does anyone have an idea of which releases/packages to install to make it work?
hi there I'm currently facing this issue Unable to installed properly chatbase its give me module error
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dellvostro/.local/lib/python3.6/site-packages/chatbase/__init__.py", line 18, in <module>
from chatbase.facebook_agent_message import * File "/home/dellvostro/.local/lib/python3.6/site-packages/chatbase/facebook_agent_message.py", line 19, in <module>
from base_message import Message ModuleNotFoundError: No module named 'base_message'
please help me,I m following this link click I was also used both pip and pip3 to installed the package chronological order.
thanks
I installed the module "pyunicorn" in Ubuntu 16.04 LTS and all the dependencies but when I import the module in python 3.7.3 i get this error :
>>> import pyunicorn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/anaconda3/lib/python3.7/site-packages/pyunicorn/__init__.py", line 43, in <module>
from setup import __version__
ModuleNotFoundError: No module named 'setup'
What should i do to make it run properly???
I had this problem. I wanted to install it on Google Colab. I tried installing pyunicorn directly from Github and it worked for me. Try using following instruction:
pip install git+https://github.com/pik-copan/pyunicorn.git#egg=pyunicorn
When I try to create a virtual env with python3 (python3 -m venv <ENV_NAME>), I get the following error:
python3.7 -m venv watcher hossein#hostMHY12
Could not import runpy module
Traceback (most recent call last):
File "/Users/<USER_NAME>/miniconda3/lib/python3.7/runpy.py", line 15, in <module>
import importlib.util
File "/Users/<USER_NAME>/miniconda3/lib/python3.7/importlib/util.py", line 9, in <module>
from . import abc
File "/Users/<USER_NAME>/miniconda3/lib/python3.7/importlib/abc.py", line 83, in <module>
_register(MetaPathFinder, machinery.BuiltinImporter, machinery.FrozenImporter,
AttributeError: module 'importlib.machinery' has no attribute 'BuiltinImporter'
This is a strange error, and I couldn't find any answers online. Any help is appreciated.
This issue in my case was some sort of conflict with my miniconda. Once I removed it as explained in this link, everything was fine.
While reading csv file in python3.6 this error throws:
KeyError: 'result'
Error in sys.excepthook:
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Original exception was:
Traceback (most recent call last):
File "main.py", line 117, in <module>
extractPreservationDataAndSet(l.getPreservationData(), test_response);
File "main.py", line 21, in extractPreservationDataAndSet
result = temp_http_response[i];
KeyError: 'result'
How can we solve it ?
ModuleNotFoundError: No module named 'apt_pkg'
indicates you don't have the apt_pkg module installed. Have a look at the home page of that package. There is a link on how to install it using the package manager.
The easiest way to install the module is probably:
pip3 install python-apt
This solved mine issue:
python3 -c "import nltk; nltk.download('all')"
it downloaded and unzipped all the packages.