ShakeZpear

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: wmic_server setup #981
    ShakeZpear
    Participant

    forgot: aiowmi version 0.2.3

    in reply to: wmic_server setup #979
    ShakeZpear
    Participant

    I am stuck in a similar but slightly different situation – but none of the above solved the problem of wmic_server not starting.

    The primary visible symptom is following “last message” of the starting server:

    “ImportError: cannot import name ‘UUID’ from ‘uuid’ (/opt/commoc/lib/python3/aiowmi/uuid.py)”

    Versions:

    Ubuntu 20.04
    Python3: 3.8.10
    gunicorn 20.0.4

    The wmic_server.yaml ist the unchanged sample file.

    I am stuck with my intellectual abilities here 🙂

    Thanks for any help.

    Complete Stack trace:

    nice[1255306]: [INFO] Starting gunicorn 20.0.4
    nice[1255306]: [1255306] [INFO] Listening at: http://127.0.0.1:2313 (1255306)
    nice[1255306]: [1255306] [INFO] Using worker: sync
    nice[1255310]: [1255310] [INFO] Booting worker with pid: 1255310
    nice[1255310]: [ERROR] Exception in worker process
    nice[1255310]: Traceback (most recent call last):
    nice[1255310]: File “/usr/lib/python3/dist-packages/gunicorn/arbiter.py”, line 583, in spawn_worker
    nice[1255310]: worker.init_process()
    nice[1255310]: File “/usr/lib/python3/dist-packages/gunicorn/workers/base.py”, line 119, in init_process
    nice[1255310]: self.load_wsgi()
    nice[1255310]: File “/usr/lib/python3/dist-packages/gunicorn/workers/base.py”, line 144, in load_wsgi
    nice[1255310]: self.wsgi = self.app.wsgi()
    nice[1255310]: File “/usr/lib/python3/dist-packages/gunicorn/app/base.py”, line 67, in wsgi
    nice[1255310]: self.callable = self.load()
    nice[1255310]: File “/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py”, line 49, in load
    nice[1255310]: return self.load_wsgiapp()
    nice[1255310]: File “/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py”, line 39, in load_wsgiapp
    nice[1255310]: return util.import_app(self.app_uri)
    nice[1255310]: File “/usr/lib/python3/dist-packages/gunicorn/util.py”, line 383, in import_app
    nice[1255310]: mod = importlib.import_module(module)
    nice[1255310]: File “/usr/lib/python3.8/importlib/__init__.py”, line 127, in import_module
    nice[1255310]: return _bootstrap._gcd_import(name[level:], package, level)
    nice[1255310]: File “<frozen importlib._bootstrap>”, line 1014, in _gcd_import
    nice[1255310]: File “<frozen importlib._bootstrap>”, line 991, in _find_and_load
    nice[1255310]: File “<frozen importlib._bootstrap>”, line 975, in _find_and_load_unlocked
    nice[1255310]: File “<frozen importlib._bootstrap>”, line 671, in _load_unlocked
    nice[1255310]: File “<frozen importlib._bootstrap_external>”, line 848, in exec_module
    nice[1255310]: File “<frozen importlib._bootstrap>”, line 219, in _call_with_frames_removed
    nice[1255310]: File “/opt/commoc/bin/wmic_server/wmic_server.py”, line 5, in <module>
    nice[1255310]: from flask import Flask, jsonify, request, make_response
    nice[1255310]: File “/usr/lib/python3/dist-packages/flask/__init__.py”, line 21, in <module>
    nice[1255310]: from .app import Flask
    nice[1255310]: File “/usr/lib/python3/dist-packages/flask/app.py”, line 60, in <module>
    nice[1255310]: from .sessions import SecureCookieSessionInterface
    nice[1255310]: File “/usr/lib/python3/dist-packages/flask/sessions.py”, line 22, in <module>
    nice[1255310]: from .json.tag import TaggedJSONSerializer
    nice[1255310]: File “/usr/lib/python3/dist-packages/flask/json/tag.py”, line 47, in <module>
    nice[1255310]: from uuid import UUID
    nice[1255310]: ImportError: cannot import name ‘UUID’ from ‘uuid’ (/opt/commoc/lib/python3/aiowmi/uuid.py)
    nice[1255310]: [2023-03-18 10:05:45 +0100] [1255310] [INFO] Worker exiting (pid: 1255310)
    nice[1255306]: [2023-03-18 10:05:45 +0100] [1255306] [INFO] Shutting down: Master
    nice[1255306]: [2023-03-18 10:05:45 +0100] [1255306] [INFO] Reason: Worker failed to boot.
    Mar 18 10:05:46 ubu2004commoc-installtest systemd[1]: wmic_server.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
    Mar 18 10:05:46 ubu2004commoc-installtest systemd[1]: wmic_server.service: Failed with result ‘exit-code’.
    Mar 18 10:05:46 ubu2004commoc-installtest systemd[1]: wmic_server.service: Scheduled restart job, restart counter is at 4.
    Mar 18 10:05:46 ubu2004commoc-installtest systemd[1]: Stopped WMIC Server.

Viewing 2 posts - 1 through 2 (of 2 total)