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
Related
I have configured pycharm to develop odoo modules and launch the odoo server. it worked without problem and one day I launched a python flask project under the same interpreter and since then I can't launch my odoo server, when I try I get this error "No module named 'werkzeug.posixemulation'". I'm a beginner and how can I solve my problem. thank you. I'll throw in an image if needed. enter image description here
I've got it, I just need to uninstall werkzeug 2.0.1 and install werkzeug 1.0.1 with the command pip install werkzeug==1.0.1
The werkzeug version listed in the requirements.txt file is0.16.1:
Werkzeug==0.16.1
It is preferable to use the same version
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
I have installed Python 3.9 on my ubuntu 18.04 desktop, i have already installed two libraries using pip3 install
1)opencv-contrib-python
2)opencv-python
Currently i am writing a program in VSCode for which i am importing cv2
I have already default version of python 3.6.9 in my computer. When i use default version as interpreter, program seems to be working fine.But if i switch the interpreter to newly installed python 3.9 , i get an error
ModuleNotFoundError: No module named 'cv2'
please someone who has faced such problem and know how to resolve it help me!!!...
The reason is as you described: it is due to the use of the Python environment.
The module "cv2" is installed in "lib\site-packages\" in python3.6.9, but when we use "python3.9" without the module "cv2" installed, VS Code is in "python3.9" The module could not be found in "lib\site-packages\".
You could use the command "pip3 --version" to check the source of the module installation tool, the module is installed in "lib\site-packages\" here:
When using the command "pip3 show opencv-python" to check its installation location: (...\python\python38\lib\site-packages)
Therefore, if you want to use the module "cv2" in "python3.9", please install it in this environment. In addition, it is recommended that you use a virtual environment, it will be stored in "lib\site-packages" in the folder of the project so that you could check it more intuitively.
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.
I'm working with Flask following Miguel Grinberg's book at the moment. i've reached the part where i need to interact with MySQL. i've checked everything and yet when i try to create the actual database with the command:
db.create_all()
i get an error saying "No module named 'MySQLdb'". i've tried installing mySQL-python in my virtual environment and i get another error - "No module named 'ConfigParser'". i tried installing that module with pip, but the same error occurs like i didn't install the ConfigParser module at all. any advice? i'm using python version 3.4. i've read a couple of times that MySQLdb doesn't work with python 3, a statement which contradicts what was written in Miguels book, that Flask is compatible both with python 2 and 3.
solved it. needed to install mysqlclient via pip in the virtual environment. mySQL-python apparently doesn't work with python3