Windows Community version 16.0 does not start up; log file contains the following:
2023-01-23 08:46:11,750 5264 CRITICAL Odoo odoo.modules.module: Couldn't load module base
2023-01-23 08:46:11,750 5264 CRITICAL Odoo odoo.modules.module: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2023-01-23 08:46:11,751 5264 WARNING Odoo odoo.modules.loading: Transient module states were reset
2023-01-23 08:46:11,751 5264 ERROR Odoo odoo.modules.registry: Failed to load registry
2023-01-23 08:46:11,753 5264 INFO Odoo werkzeug: 127.0.0.1 - - [23/Jan/2023 08:46:11] "GET / HTTP/1.1" 404 - 10 0.010 0.038
I tried restarting the Odoo service and my computer. Nothing changed. Before it worked.
Trying to start it manually, from the comment to the post Odoo server does not start in Windows 10, I get the following:
PS C:\Program Files\Odoo 16.0.20230110\python> ./python 'C:\Program Files\Odoo 16.0.20230110\server\odoo-bin'
ERROR: couldn't create the logfile directory. Logging to the standard output.
2023-01-23 08:52:42,308 12816 INFO ? odoo: Odoo version 16.0-20230110
2023-01-23 08:52:42,308 12816 INFO ? odoo: Using configuration file at C:\Program Files\Odoo 16.0.20230110\server\odoo.conf
2023-01-23 08:52:42,308 12816 INFO ? odoo: addons paths: ['C:\Program Files\Odoo 16.0.20230110\server\odoo\addons', 'c:\program files\odoo 16.0.20230110\sessions\addons\16.0', 'c:\program files\odoo 16.0.20230110\server\odoo\addons']
2023-01-23 08:52:42,308 12816 INFO ? odoo: database: arrels#localhost:5432
2023-01-23 08:52:42,474 12816 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at C:\Program Files\Odoo 16.0.20230110\thirdparty\wkhtmltopdf.exe
2023-01-23 08:52:42,534 12816 CRITICAL ? odoo.modules.module: Couldn't load module base
2023-01-23 08:52:42,535 12816 CRITICAL ? odoo.modules.module: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2023-01-23 08:52:42,535 12816 ERROR ? odoo.service.server: Failed to load server-wide module base.
Traceback (most recent call last):
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\service\server.py", line 1239, in load_server_wide_modules
odoo.modules.module.load_openerp_module(m)
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\modules\module.py", line 432, in load_openerp_module
import('odoo.addons.' + module_name)
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\base_init_.py", line 5, in
from . import models
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\base\models_init_.py", line 21, in
from . import ir_mail_server
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\base\models\ir_mail_server.py", line 19, in
from OpenSSL import crypto as SSLCrypto
File "C:\Program Files\Odoo 16.0.20230110\python\lib\site-packages\OpenSSL_init_.py", line 8, in
from OpenSSL import crypto, SSL
File "C:\Program Files\Odoo 16.0.20230110\python\lib\site-packages\OpenSSL\crypto.py", line 1553, in
class X509StoreFlags(object):
File "C:\Program Files\Odoo 16.0.20230110\python\lib\site-packages\OpenSSL\crypto.py", line 1573, in X509StoreFlags
CB_ISSUER_CHECK = lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2023-01-23 08:52:42,544 12816 CRITICAL ? odoo.modules.module: Couldn't load module web
2023-01-23 08:52:42,544 12816 CRITICAL ? odoo.modules.module: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2023-01-23 08:52:42,545 12816 ERROR ? odoo.service.server: Failed to load server-wide module web.
The web module is provided by the addons found in the openerp-web project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\service\server.py", line 1239, in load_server_wide_modules
odoo.modules.module.load_openerp_module(m)
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\modules\module.py", line 432, in load_openerp_module
import('odoo.addons.' + module_name)
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\web_init.py", line 4, in
from . import controllers
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\web\controllers_init_.py", line 5, in
from . import database
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\web\controllers\database.py", line 24, in
from odoo.addons.base.models.ir_qweb import render as qweb_render
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\base_init_.py", line 5, in
from . import models
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\base\models_init_.py", line 21, in
from . import ir_mail_server
File "C:\Program Files\Odoo 16.0.20230110\server\odoo\addons\base\models\ir_mail_server.py", line 19, in
from OpenSSL import crypto as SSLCrypto
File "C:\Program Files\Odoo 16.0.20230110\python\lib\site-packages\OpenSSL_init_.py", line 8, in
from OpenSSL import crypto, SSL
File "C:\Program Files\Odoo 16.0.20230110\python\lib\site-packages\OpenSSL\crypto.py", line 1553, in
class X509StoreFlags(object):
File "C:\Program Files\Odoo 16.0.20230110\python\lib\site-packages\OpenSSL\crypto.py", line 1573, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2023-01-23 08:52:42,553 12816 INFO ? odoo.service.server: HTTP service (werkzeug) running on PC245.Arrels.Local:8069
Related
I have installed odoo16 on Ubuntu 20.04 using Yenthe install-script at https://github.com/Yenthe666/InstallScript
The result of the launch command : ./odoo-bin -c /etc/odoo-server.conf
is:
2022-11-11 15:09:01,324 23800 INFO ? odoo: addons paths: ['/odoo/odoo-server/odoo/addons', '/odoo/.local/share/Odoo/addons/16.0', '/odoo/enterprise/addons', '/odoo/odoo-server/addons']
2022-11-11 15:09:01,324 23800 INFO ? odoo: database: default#default:default
2022-11-11 15:09:01,799 23800 INFO ? odoo.addons.base.models.ir_actions_report: A package may be missing to print Data Matrix barcodes: pylibdmtx or libdmtx.
2022-11-11 15:09:01,811 23800 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /bin/wkhtmltopdf
2022-11-11 15:09:02,311 23800 CRITICAL ? odoo.modules.module: Could not load module web
2022-11-11 15:09:02,311 23800 CRITICAL ? odoo.modules.module: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2022-11-11 15:09:02,311 23800 ERROR ? odoo.service.server: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/service/server.py", line 1239, in load_server_wide_modules
odoo.modules.module.load_openerp_module(m)
File "/odoo/odoo-server/odoo/modules/module.py", line 432, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "/odoo/odoo-server/addons/web/__init__.py", line 4, in <module>
from . import controllers
File "/odoo/odoo-server/addons/web/controllers/__init__.py", line 5, in <module>
from . import database
File "/odoo/odoo-server/addons/web/controllers/database.py", line 24, in <module>
from odoo.addons.base.models.ir_qweb import render as qweb_render
File "/odoo/odoo-server/odoo/addons/base/__init__.py", line 5, in <module>
from . import models
File "/odoo/odoo-server/odoo/addons/base/models/__init__.py", line 21, in <module>
from . import ir_mail_server
File "/odoo/odoo-server/odoo/addons/base/models/ir_mail_server.py", line 19, in <module>
from OpenSSL import crypto as SSLCrypto
File "/usr/local/lib/python3.8/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/usr/local/lib/python3.8/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
class X509StoreFlags(object):
File "/usr/local/lib/python3.8/dist-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2022-11-11 15:09:02,319 23800 CRITICAL ? odoo.modules.module: Couldn't load module base
2022-11-11 15:09:02,319 23800 CRITICAL ? odoo.modules.module: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
2022-11-11 15:09:02,319 23800 ERROR ? odoo.service.server: Failed to load server-wide module `base`.
Using these recommendations: https://github.com/odoo/odoo/issues/99809 and https://github.com/odoo/odoo/pull/99829, I have already tried to change the requirements file (pyopenssl==22.0.0 and cryptography==37.0.2):
root#localhost:/odoo/odoo-server# sudo pip install -r /odoo/odoo-server/requirements.txt
Output:
Installing collected packages: cryptography, pyopenssl
Attempting uninstall: cryptography
Found existing installation: cryptography 38.0.3
Uninstalling cryptography-38.0.3:
Successfully uninstalled cryptography-38.0.3
Attempting uninstall: pyopenssl
Found existing installation: pyOpenSSL 22.1.0
Uninstalling pyOpenSSL-22.1.0:
Successfully uninstalled pyOpenSSL-22.1.0
Successfully installed cryptography-37.0.2 pyopenssl-20.0.1
The recommandations for Odoo15 are different: https://github.com/ForgeFlow/odoo/blob/4a7a8f32862bd7fbf1afa5c26de6d97de46eea5b/requirements.txt
But after re-launching odoo, the error still remains.
Any idea please ?
I have eventually managed to find the compatible versions using the ones in odoo15's requirements.txt file:
cryptography==2.6.1
pyopenssl==19.0.0
And then re-install my requirements file for odoo16 on my server:
sudo pip install -r /odoo/odoo-server/requirements.txt
WSL + Ubuntu18.04 + webrtc
This project is proper functioning in Ubuntu 18.04 doesn't with WSL;
gn command:
gn gen out/SDK --args='target_os="android" target_cpu="arm" is_debug=true rtc_use_h264=true use_openh264=true rtc_libvpx_build_vp9=false rtc_build_libvpx=true rtc_include_tests=false rtc_include_ilbc=false rtc_include_pulse_audio=false ffmpeg_branding="Chrome"'
error Info :
ninja: Entering directory `out/SDK'
[2138/5820] ACTION
//api/video:video_frame_enums(//build/toolchain/android:android_clang_arm)
FAILED: gen/api/video/video_frame_enums.srcjar
python ../../build/android/gyp/java_cpp_enum.py --depfile gen/api/video/video_frame_enums.d --srcjar=gen/api/video/video_frame_enums.srcjar ../../api/video/video_codec_type.h
Traceback (most recent call last):
File "../../build/android/gyp/java_cpp_enum.py", line 437, in <module>
DoMain(sys.argv[1:])
File "../../build/android/gyp/java_cpp_enum.py", line 429, in DoMain
for output_path, data in DoGenerate(input_paths):
File "../../build/android/gyp/java_cpp_enum.py", line 329, in DoGenerate
source_path)
Exception: No enums found in ../../api/video/video_codec_type.h
Did you forget prefixing enums with "// GENERATED_JAVA_ENUM_PACKAGE: foo"?
[2140/5820] ACTION //api:rtp_parameters_enums(//build/toolchain/android:android_clang_arm)
FAILED: gen/api/rtp_parameters_enums.srcjar
python ../../build/android/gyp/java_cpp_enum.py --depfile gen/api/rtp_parameters_enums.d --srcjar=gen/api/rtp_parameters_enums.srcjar ../../api/rtp_parameters.h
Traceback (most recent call last):
File "../../build/android/gyp/java_cpp_enum.py", line 437, in <module>
DoMain(sys.argv[1:])
File "../../build/android/gyp/java_cpp_enum.py", line 429, in DoMain
for output_path, data in DoGenerate(input_paths):
File "../../build/android/gyp/java_cpp_enum.py", line 329, in DoGenerate
source_path)
Exception: No enums found in ../../api/rtp_parameters.h
Did you forget prefixing enums with "// GENERATED_JAVA_ENUM_PACKAGE: foo"?
[2143/5820] CC obj/third_party/libaom/libaom_intrinsics_neon/av1_inv_txfm_neon.o
ninja: build stopped: subcommand failed.
How can I change it to compile properly?
I am trying to build tensorflow r1.12 using bazel 0.15 on Redhat 7.5 ppc64le.
I am stuck with the following error.
[u0017649#sys-97184 tensorflow]$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
...
ERROR: error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package
'#local_config_cuda//cuda': Traceback (most recent call last):
File
"/home/u0017649/files/tensorflow/third_party/gpus/cuda_configure.bzl", line 1447
_create_local_cuda_repository(repository_ctx)
File
"/home/u0017649/files/tensorflow/third_party/gpus/cuda_configure.bzl", line 1187, in _create_local_cuda_repository
_get_cuda_config(repository_ctx)
File
"/home/u0017649/files/tensorflow/third_party/gpus/cuda_configure.bzl", line 911, in _get_cuda_config
_cudnn_version(repository_ctx, cudnn_install_base..., ...)
File
"/home/u0017649/files/tensorflow/third_party/gpus/cuda_configure.bzl", line 582, in _cudnn_version
_find_cudnn_header_dir(repository_ctx, cudnn_install_base...)
File
"/home/u0017649/files/tensorflow/third_party/gpus/cuda_configure.bzl", line 869, in _find_cudnn_header_dir
auto_configure_fail(("Cannot find cudnn.h under %s" ...))
File
"/home/u0017649/files/tensorflow/third_party/gpus/cuda_configure.bzl", line 317, in auto_configure_fail
fail(("\n%sCuda Configuration Error:%...)))
Cuda Configuration Error: Cannot find cudnn.h under /usr/local/cuda-9.2/targets/ppc64le-linux/lib
I do have a soft link for cudnn.h under /usr/local/cuda-9.2/targets/ppc64le-linux/lib as below.
[u0017649#sys-97184 tensorflow]$ ls -l /usr/local/cuda-9.2/targets/ppc64le-linux/lib/cudnn.h
lrwxrwxrwx. 1 root root 57 Feb 20 10:15 /usr/local/cuda-9.2/targets/ppc64le-linux/lib/cudnn.h -> /usr/local/cuda-9.2/targets/ppc64le-linux/include/cudnn.h
Any comments, pls ?
After reading tensorflow/third_party/gpus/cuda_configure.bzl, I could solve this by the following.
$ sudo ln -sf /usr/local/cuda-9.2/targets/ppc64le-linux/include/cudnn.h /usr/include/cudnn.h
I'm becoming mad about installing robotframework on IronPython in a Windows machine. Please someone could take a look on this.
I have installed IronPython 2.7.7, added the path system variable for both main and Scripts folder, also I installed the elementtree-1.2.7-20070827-preview.zip as it looks that the library that comes with IronPython is "broken" (this info and instruction comes from IronPython site).
Then I run the
ipy -X:Frames -m ensurepip
to be able to use pip.
Everything should be ready now to get the robotframework installed by:
ipy -X:Frames -m pip install robotframework
The package starts getting downloaded until here:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\setuptools\__init__.py", line 11, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\setuptools\extern\__init__.py", line 1, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\__init__.py", line 46, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\extern\__init__.py", line 42, in load_module
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 701, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 692, in exec_
AttributeError: 'module' object has no attribute '_getframe'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\***\appdata\local\temp\pip-build-vnlada\robotframework\
I tried another workaround just downloading the robotframework source, uncompressing and placing it in my program folders. From the RF folder I tried to run:
C:\Program Files (x86)\IronPython 2.7\ipy.exe" setup.py install
and again same error:
File "setup.py", line 11, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site- packages\setuptools\__init__.py", line 11, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\setuptools\extern\__init__.py", line 1, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\__init__.py", line 46, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\extern\__init__.py", line 42, in load_module
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 701, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\pkg_resources\_vendor\six.py", line 692, in exec_
AttributeError: 'module' object has no attribute '_getframe'
In this website this guy solves the issue using this last workaround, however it didnt work for me.
http://it-kosmopolit.de/blog/2015/08/31/install-robot-framework-with-ironpython-on-windows/
Thank you in advance.
This is how I resolve it, however I dont intend to say is the way to resolve it.
There are installers .exe of Robot Framework for Windows but they are not intended to be on IronPython, but Python. Keeping in mind that I already got the IronPython folder, what I did is:
install Python
downloand and install the RF installer .exe file from here https://pypi.python.org/pypi/robotframework/2.8.5
install it pointing to the Python directory (it doesnt recognize the IronPython folder)
Simply added the ipy.exe from my IronPython folder to the PATH variable.
Surprisingly it worked with no more headache, I have now Robot Framework on IronPython.
Buildroot version: 2017-02
I need to integrate python package 'chardet' to my build. The chardet require the 'pytest-runner'package.
Case 1
The 'chardet' is marked to be integrated into build. The 'pytest-runner' is not pre-feteched and the 'chardet' package updated to the latest version (3.0.3) before the build with the scanpypi script. When the make is run the following error message is shown indicating problems with the 'pytest-runner':
>>> python-chardet 3.0.3 Building
(cd /home/nnnn/bldr_lab/buildroot/output/build/python-chardet-3.0.3//;
PATH="/home/nnnn/bldr_lab/buildroot/output/host/bin:/home/nnnn/bldr_lab
/buildroot/output/host/sbin:/home/nnnn/bldr_lab/buildroot/output/host/usr
/bin:/home/nnnn/bldr_lab/buildroot/output/host/usr/sbin:/home/nnnn/x-tools
/arm-cortex_a8-linux-gnueabihf/bin:/home/nnnn/bin:/home/nnnn/.local
/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
/games:/usr/local/games" PYTHONPATH="/home/nnnn/bldr_lab/buildroot/output
/target/usr/lib/python2.7/sysconfigdata/:/home/nnnn/bldr_lab/buildroot
/output/target/usr/lib/python2.7/site-packages/" _python_sysroot=/home
/nnnn/bldr_lab/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf
/sysroot _python_prefix=/usr _python_exec_prefix=/usr /home/nnnn/bldr_lab
/buildroot/output/host/usr/bin/python setup.py build )
Download error on https://pypi.python.org/simple/pytest-runner/: unknown
url type: https -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: unknown url type: https
-- Some packages may not be found!
No local packages or download links found for pytest-runner
Traceback (most recent call last):
File "setup.py", line 52, in <module>
['chardetect = chardet.cli.chardetect:main']})
File "/home/nnnn/bldr_lab/buildroot/output/host/usr/lib/python2.7
/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 268, in
__init__
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 313, in
fetch_build_eggs
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 846, in resolve
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1091, in best_match
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1103, in obtain
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 380, in fetch_build_egg
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 633, in easy_install
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
package/pkg-generic.mk:216: recipe for target '/home/nnnn/bldr_lab
/buildroot/output/build/python-chardet-3.0.3/.stamp_built' failed
make[1]: *** [/home/nnnn/bldr_lab/buildroot/output/build/python-chardet-
3.0.3/.stamp_built] Error 1
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2
case 2 When I try to create the 'pytest-runner' with the scanpypi the following error message is shown:
nnnn#xxxx:~/bldr2/buildroot$ ./support/scripts/scanpypi pytest-runner -o package
buildroot package name for pytest-runner: python-pytest-runner
Package: python-pytest-runner
Fetching package pytest-runner
Downloading package pytest-runner from https://pypi.python.org/packages/9e/4d/08889e5e27a9f5d6096b9ad257f4dea1faabb03c5ded8f665ead448f5d8a/pytest-runner-2.11.1.tar.gz...
Error: Could not install package pytest-runner
When I download the 'pytest-runner-2.11.1.tar.gz' from pypi manually it looks as normal pypi tar file. Any idea what is root cause and how to solve the problem?
-timo-