Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6393 Ansichten

I am going to configure odoo13 community in pycharm community. While running configuration I am getting subject error. I have searched on web and got suggestions to upgrade "werkzeug" package. And if I upgrade this package then I start to get error werkzeug.contrib not found. 


Can anyone suggest how to resolve this error. 

Avatar
Verwerfen
Beste Antwort

The error message you are seeing suggests that there may be a compatibility issue with the version of werkzeug being used in your Odoo 13 installation and the version required by PyCharm.

Upgrading werkzeug to a newer version may help resolve the initial error message you encountered, but it could also cause compatibility issues with other parts of the Odoo 13 system.

The werkzeug.contrib module was removed in werkzeug version 1.0.0, which may be why you are seeing the werkzeug.contrib not found error after upgrading. If you are using a version of Odoo 13 that relies on werkzeug.contrib, you may need to downgrade werkzeug to a version that supports it.
This error occurs when you try to import Container from collections but it's not available in your version of Python 4.
 
To resolve this issue, you may want to try the following steps: 

Check the requirements.txt file in your Odoo 13 installation to confirm the version of werkzeug that is required by your version of Odoo.

Uninstall the current version of werkzeug using pip: pip uninstall werkzeug

Install the version of werkzeug required by your Odoo installation using pip: pip install werkzeug==
 
In Python 3.3 and later versions, Container, Iterable, MutableSet, and other abstract base classes are available in collections.abc 4. You can try importing collections.abc instead of collections and use collections.abc.Container instead of Container.

https://stackoverflow.com/questions/71767715/importerror-cannot-import-name-container-from-collections

I hope this helps!

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Aug. 20
6738
0
Apr. 22
2509
2
Dez. 23
39338
2
Dez. 24
29643
1
Nov. 20
4452