python /home/admin/mtr/script_for_cron.py -j default -m 12 -a '/home/admin/workarea/git/apy/conf/crontab/marlene_api_cov_pytest.sh -v' -s apy_test -M 0 -S 0 -U 101,101,120 export API_BIN='/home/admin/mtr/api_bin/' export CAFFE_FRCNN='/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/caffe-fast-rcnn/python/' export CAFFE_FRCNN_PYTHON3='/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python' export CAFFE_MAIN='/home/admin/workarea/install/caffe/python/' export CAFFE_MODELS='/data/models_weight/' export CAFFE_PYTHON3='/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python/' export CAFFE_TOOLS='/home/admin/workarea/install/caffe/build/tools' export CUDA_VISIBLE_DEVICES='0' export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1006/bus' export FRCNN_ROOT='/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn' export GITAPI='/home/admin/workarea/git/API/' export GITAPY='/home/admin/workarea/git/apy/' export GITMETOLOUR='/home/admin/workarea/git/Metolour/' export GITRAPINOWER='/home/admin/workarea/git/raspi-fotonower-x' export GITSAFIA='/home/safia/workarea/git/Safia' export GITVELOURS='/home/admin/workarea/git/Velours/' export HISTTIMEFORMAT='%d/%m/%y %T' export HOME='/home/admin' export LANG='fr_FR.UTF-8' export LD_LIBRARY_PATH='/usr/local/cuda-7.5/lib64/' export LESSCLOSE='/usr/bin/lesspipe %s %s' export LESSOPEN='| /usr/bin/lesspipe %s' export LOCAL_PHOTO_CACHE='/data/local_photo_cache' export LOGFOTONOWER='/data_4/data_log' export LOGNAME='admin' export LOGRASPI='/data_4/data_log/log_raspi' export LOGRASPITODAY='/data_4/data_log/log_raspi/2024/04/05' export LOGRASPIYESTERDAY='/data_4/data_log/log_raspi/2024/04/04/' export LOGTODAY='/data_4/data_log/job/2024/April/05042024' export MAILTO='' export MASK_RCNN='/home/admin/workarea/install/Mask_RCNN/' export MOTD_SHOWN='pam' export MTRPATH='/home/admin/mtr' export OLDPWD='/home/admin/workarea/git/apy' export PATH='/home/admin/torch/install/bin:/usr/local/cuda/bin:/home/admin/torch/install/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/admin/.local/bin' export PATH_FOLDER_SLA='/data/csv_sla_rubbia' export PWD='/home/admin' export PYFVS='/home/admin/workarea/git/pyfvs/' export PYTHONMAIL='/home/admin/workarea/git/Velours/python/send_mail.py' export PYTHONPATH='/home/admin/workarea/install/darknet/:/home/admin/workarea/git/Velours/python:/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python:/home/admin/mtr/.credentials:/home/admin/workarea/install/caffe/python:/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools/:/home/admin/workarea/git/fotonowerpip/:/home/admin/workarea/install/segment-anything:/home/admin//workarea/git/pyfvs/' export PYTHONPATHFOTONOWER='/home/admin/workarea/git/Velours/python/' export SHELL='/bin/bash' export SHLVL='1' export SSH_CLIENT='51.91.76.18 46012 22' export SSH_CONNECTION='51.91.76.18 46012 192.168.1.135 22' export SSH_TTY='/dev/pts/7' export STYLEGAN3='/home/admin/workarea/git/Velours//python/mtr/stylegan3' export TEMPS='/home/admin/temp' export TERM='xterm-256color' export THEANO_FLAGS='mode=FAST_RUN,device=gpu,floatX=float32' export TMP_SCP='/home/admin/workarea/tmp_scp/' export TRAIN_DATA_ROOT='/data_4/data_root' export USER='admin' export VELOURS_ROOT='/home/admin/workarea/git/Velours/' export VELOURS_ROOT_2='/data/data_fvs/' export WORKINGDIRMTR='/home/admin/mtr/' export XDG_DATA_DIRS='/usr/local/share:/usr/share:/var/lib/snapd/desktop' export XDG_RUNTIME_DIR='/run/user/1006' export XDG_SESSION_CLASS='user' export XDG_SESSION_ID='930354' export XDG_SESSION_TYPE='tty' export YOLO_DARKNET='/home/admin/workarea/install/darknet/' export _='/usr/bin/python' export storage_server='ovh' ============================= test session starts ============================== platform linux -- Python 3.8.10, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.0-139-generic-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.4.3', 'pluggy': '1.3.0'}, 'Plugins': {'hydra-core': '1.3.2', 'html': '4.1.0', 'cov': '4.1.0', 'anyio': '3.7.1', 'metadata': '3.0.0', 'xonsh': '0.9.13'}} rootdir: /home/admin/workarea/git/apy plugins: hydra-core-1.3.2, html-4.1.0, cov-4.1.0, anyio-3.7.1, metadata-3.0.0, xonsh-0.9.13 collecting ... ----------------------------- live log collection ------------------------------ INFO keyring.backend:backend.py:193 Loading KWallet INFO keyring.backend:backend.py:193 Loading SecretService INFO keyring.backend:backend.py:193 Loading Windows INFO keyring.backend:backend.py:193 Loading chainer INFO keyring.backend:backend.py:193 Loading macOS INFO root:utils.py:27 /home/admin/workarea/git/apy/server/config.json DEBUG matplotlib:__init__.py:305 matplotlib data path: /home/admin/.local/lib/python3.8/site-packages/matplotlib/mpl-data DEBUG matplotlib:__init__.py:305 CONFIGDIR=/home/admin/.config/matplotlib DEBUG matplotlib:__init__.py:1479 interactive is False DEBUG matplotlib:__init__.py:1480 platform is linux DEBUG matplotlib:__init__.py:305 CACHEDIR=/home/admin/.cache/matplotlib DEBUG matplotlib.font_manager:font_manager.py:1543 Using fontManager instance from /home/admin/.cache/matplotlib/fontlist-v330.json INFO root:main_test.py:18 ['/home/admin/workarea/git/apy', '/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/git/apy', '/home/admin/workarea/git/apy/test', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] collected 0 items / 2 errors ==================================== ERRORS ==================================== ______________________ ERROR collecting test/fvs_test.py _______________________ ../../Velours/python/mtr/database_queries/general_queries.py:27: in __init__ import MySQLdb.cursors /home/admin/.local/lib/python3.8/site-packages/MySQLdb/__init__.py:17: in from . import _mysql E ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: cannot allocate memory in static TLS block During handling of the above exception, another exception occurred: /home/admin/.local/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func() /home/admin/.local/lib/python3.8/site-packages/_pytest/runner.py:372: in call = CallInfo.from_call(lambda: list(collector.collect()), "collect") /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:531: in collect self._inject_setup_module_fixture() /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module") /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:310: in obj self._obj = obj = self._getobj() /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj return self._importtestmodule() /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) /home/admin/.local/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path importlib.import_module(module_name) /usr/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) :1014: in _gcd_import ??? :991: in _find_and_load ??? :975: in _find_and_load_unlocked ??? :671: in _load_unlocked ??? /home/admin/.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module exec(co, module.__dict__) fvs_test.py:13: in app = create_app() ../server/upload_api.py:46: in create_app from server.fvs import create_fvs_bp ../server/fvs.py:18: in context_singleton = get_context() ../server/lib/lib_api_upload.py:13: in get_context context = ContextDatouExec(host, database, username, password) ../../Velours/python/mtr/datou/datou_lib.py:1309: in __init__ self.gq = general_queries(host, username, password, database) ../../Velours/python/mtr/database_queries/general_queries.py:37: in __init__ raise Exception("Unable to connect to " + str(host) + " : " + str(e)) E Exception: Unable to connect to sql.fotonower.com : /lib/x86_64-linux-gnu/libstdc++.so.6: cannot allocate memory in static TLS block ------------------------------- Captured stdout -------------------------------- {'data_folders': {'use_fvsi_dict_persistent': True, 'fvsi_dict_persistent_path': 'temp/data_fvs/fvsi_dict_persistent.json', 'use_default_fvs_data_folder': True, 'custom_fvs_data_folder': 'temp/data_custom', 'use_default_fvs_interface_data_path': False, 'custom_fvs_interface_data_path': 'temp/FVSInterfaceData.json', '_comments': 'if use_default_fvs_data_folder is set to true then custom_fvs_data_folder is ignored; same for custom_fvs_interface_data_path'}, 'active_blueprints': ['fvs', 'api', 'login', 'dashboard']} Les blueprints sont les suivants : fvs api login dashboard Le blueprint 'fvs' est présent dans la list import MySQLdb failed { "data_folders": { "use_fvsi_dict_persistent": true, "fvsi_dict_persistent_path": "temp/data_fvs/fvsi_dict_persistent.json", "use_default_fvs_data_folder": true, "custom_fvs_data_folder": "temp/data_custom", "use_default_fvs_interface_data_path": false, "custom_fvs_interface_data_path": "temp/FVSInterfaceData.json", "_comments": "if use_default_fvs_data_folder is set to true then custom_fvs_data_folder is ignored; same for custom_fvs_interface_data_path" }, "active_blueprints": [ "fvs", "api", "login", "dashboard", "presentation" ], "available_blueprints": [ "fvs", "api", "login", "dashboard", "presentation" ] } Import error (python version) ______________________ ERROR collecting test/main_test.py ______________________ ../../Velours/python/mtr/database_queries/general_queries.py:27: in __init__ import MySQLdb.cursors /home/admin/.local/lib/python3.8/site-packages/MySQLdb/__init__.py:17: in from . import _mysql E ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: cannot allocate memory in static TLS block During handling of the above exception, another exception occurred: /home/admin/.local/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func() /home/admin/.local/lib/python3.8/site-packages/_pytest/runner.py:372: in call = CallInfo.from_call(lambda: list(collector.collect()), "collect") /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:531: in collect self._inject_setup_module_fixture() /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module") /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:310: in obj self._obj = obj = self._getobj() /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj return self._importtestmodule() /home/admin/.local/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) /home/admin/.local/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path importlib.import_module(module_name) /usr/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) :1014: in _gcd_import ??? :991: in _find_and_load ??? :975: in _find_and_load_unlocked ??? :671: in _load_unlocked ??? /home/admin/.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module exec(co, module.__dict__) main_test.py:21: in app = create_app() ../server/upload_api.py:46: in create_app from server.fvs import create_fvs_bp ../server/fvs.py:18: in context_singleton = get_context() ../server/lib/lib_api_upload.py:13: in get_context context = ContextDatouExec(host, database, username, password) ../../Velours/python/mtr/datou/datou_lib.py:1309: in __init__ self.gq = general_queries(host, username, password, database) ../../Velours/python/mtr/database_queries/general_queries.py:37: in __init__ raise Exception("Unable to connect to " + str(host) + " : " + str(e)) E Exception: Unable to connect to sql.fotonower.com : /lib/x86_64-linux-gnu/libstdc++.so.6: cannot allocate memory in static TLS block =============================== warnings summary =============================== ../../../../../../usr/lib/python3/dist-packages/html5lib/_trie/_base.py:3 /usr/lib/python3/dist-packages/html5lib/_trie/_base.py:3: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working from collections import Mapping ../../../../../../usr/lib/python3/dist-packages/babel/localedata.py:17 /usr/lib/python3/dist-packages/babel/localedata.py:17: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working from collections import MutableMapping -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ ERROR fvs_test.py - Exception: Unable to connect to sql.fotonower.com : /lib/... ERROR main_test.py - Exception: Unable to connect to sql.fotonower.com : /lib... !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!! ======================== 2 warnings, 2 errors in 2.42s ========================= Command exited with non-zero status 2 3.25user 1.35system 0:04.22elapsed 109%CPU (0avgtext+0avgdata 201020maxresident)k 40168inputs+80outputs (49major+66855minor)pagefaults 0swaps