I'am learning Linux Ubuntu 18.4 Odoo 10 by following this link and link. But upon after setting up to my pycharm I encounter this error Module Not Found Error : No module named 'loglevels'. Earlier I got an error also no module named .. But I already fixed it. This time even I use the command pip3 install config or pip install config the error still there. BTW I'm using python 2.7
You need to install loglevel library.
pip install loglevel
PyPi documentation
Related
I am runnig a python based application (Odoo) on Ubuntu Server, it is throwing this error in the backend server logs. Some sites suggested to install the missing packages/library html2text.
I have installed that too by running
pip3 install html2text
and verified it by
pip3 show html2text
which shows location of site-packages of python
Location: /home/dell/.local/lib/python3.8/site-packages.
However, the system is still throwing this mentioned error in the logs ModuleNotFoundError: No module named 'html2text' - - -.
Is there anything I am missing related to path or installation steps?
I figured it out myself. The problem was with default python package path installation. Since my application was looking for python packages at this location /usr/lib/python/dist-packages and the package html2text was installed in /home/dell/.local/lib/python3.8/site-packages
I had to install the html2text package in /usr/lib/python/dist-packages by running
sudo pip3 install --target=/usr/lib/python3/dist-packages html2text
I am using windows subsystem for linux and I have set a virtual environment in my workspace.
I tried installing apache-airflow in the virtual environment and it got installed. But when I am trying to start the airflow webserver, I am getting the error
ImportError- no module named json
I am not being able to resolve the issue. Please help. I am following the guide Get started developing workflows with Apache Airflow
Your problem is because of version compatibility.
You should try compatible version of werkzeug using like "pip install werkzeug==0.15.4" or try to change version of flask.
Also you can refer some below link for reference.
Apache Airflow : airflow initdb throws ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package error
https://forum.astronomer.io/t/importerror-no-module-named-werkzeug-wrappers-json-werkzeug-wrappers-is-not-a-package/280
Environment details
Google cloud pubsub
window 10
Python version: 3.6.3
google-cloud-pubsub version: 0.39.1
Steps to reproduce
I used google-cloud-pubsub in Odoo module. I tried to explain the issue in step by step.
Added 'google-cloud-pubsub' in external_dependencies in python manifest file:
"external_dependencies": { 'python': ['google-cloud-pubsub'] },
Expected result:
Actually, I don't know why this error occurs. Normally it will be work.
Actual result:
When I published python module to Odoo server its threw below error:
odoo.exceptions.UserError: ('Unable to install module "caliva_wsp" because an
external dependency is not met: No module named google-cloud-pubsub', '')
How to solve this issue? I already stuck at this point around 3 days.
Thanks!
This error message is the expected result if you have not installed the dependency. Odoo module manifest external dependencies only check that the external module is available from Odoo code. It does not install the module.
Install google pubsub pip module on your Odoo server with command pip3 install google-cloud-pubsub before installing your own Odoo module. After that your module should be installable.
You can also automate the installation of dependency by putting it in module requirements.txt file. More information on this can be found at https://www.odoo.com/documentation/user/12.0/odoo_sh/getting_started/first_module.html#use-an-external-python-library.
in my python code I've got the line:
from pyreadability import pyreadability as pyrb
And I'm getting the error :
ImportError: No module named pyreadability
I'm in Ubuntu, using python 2.7 and running code inside a conda env named mzh27.
I already tried these commands but none of them made the error solve
pip install PyReadability
conda install -c anaconda lxml
/home/{usr}/anaconda2/envs/mzh27/bin/pip install PyReadability
pip install readability-lxml
/home/{usr}/anaconda2/envs/mzh27/bin/pip readability-lxml
In all of those cases, the module installed successfully but error was still there.
Any Idea what to do for it?
The problem was the repository I've cloned was missing the file named pyreadability.py. The package was not the one I thought. It was implemented by the repository owner (who forgot to add files to the repository) and just have similar names to python packages that are available to install.
I am using vagrant to run my python environment. In my data models I am using django-picklefield module.
when I run my server it says
ImportError: No module named picklefield.fields.
I tried to uninstall and install the picklefield module. Still having the same problem.
You should be able install via:
/[your python install directory]/bin/pip install django-picklefield
If you do this directly instead of a general pip call to install django-picklefield, that will ensure that it is installed on the correct version of Python.
Based on your description my best guess is that you have multiple versions of Python installed, and that your install/uninstall is happening on the wrong one.