Comments (1)
ModuleNotFoundError: No module named 'supervisor.supervisorctl'
Install supervisor
with pip
in a fresh virtual environment:
user@system sandbox % python3 -m venv venv
user@system sandbox % venv/bin/pip3 install git+https://github.com/Supervisor/supervisor
Collecting git+https://github.com/Supervisor/supervisor
Cloning https://github.com/Supervisor/supervisor to /tmp/pip-req-build-si0e6653
Running command git clone --filter=blob:none --quiet https://github.com/Supervisor/supervisor /tmp/pip-req-build-si0e6653
Resolved https://github.com/Supervisor/supervisor to commit 9ee5fee61881adc227a67d2d13414597d1f4d51c
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: supervisor
Building wheel for supervisor (pyproject.toml) ... done
Created wheel for supervisor: filename=supervisor-4.3.0.dev0-py2.py3-none-any.whl size=320707 sha256=f10428e76d749133ad83a57ffd07baffa35c0c7ccd762187ebfc18beb920b389
Stored in directory: /tmp/pip-ephem-wheel-cache-mwij_e5n/wheels/95/75/38/4e0c607f67e742614bd0aa32caa6cb907f125cb069ee6588af
Successfully built supervisor
Installing collected packages: supervisor
Successfully installed supervisor-4.3.0.dev0
Try to import the module shown in the error message:
user@system sandbox % ./venv/bin/python3
Python 3.12.2 (main, Feb 6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from supervisor import supervisorctl
>>> ^D
No error.
Try to run supervisorctl
:
user@system sandbox % ./venv/bin/supervisorctl --help
supervisorctl -- control applications run by supervisord from the cmd line.
Usage: ./venv/bin/supervisorctl [options] [action [arguments]]
Options:
-c/--configuration FILENAME -- configuration file path (searches if not given)
-h/--help -- print usage message and exit
-i/--interactive -- start an interactive shell after executing commands
-s/--serverurl URL -- URL on which supervisord server is listening
(default "http://localhost:9001").
-u/--username USERNAME -- username to use for authentication with server
-p/--password PASSWORD -- password to use for authentication with server
-r/--history-file -- keep a readline history (if readline is available)
action [arguments] -- see below
Actions are commands like "tail" or "stop". If -i is specified or no action is
specified on the command line, a "shell" interpreting actions typed
interactively is started. Use the action "help" to find out about available
actions.
No error.
The error message ModuleNotFoundError: No module named 'supervisor.supervisorctl'
comes from the Python packaging machinery trying to import the module. It occurred before any Supervisor code was reached. This is not a bug in Supervisor. The Supervisor developers do not have enough bandwidth to help troubleshoot installations on individual systems, sorry.
from supervisor.
Related Issues (20)
- error: <class 'xml.parsers.expat.ExpatError'>, unclosed token: line 130, column 0: file: /usr/lib/python3.10/xmlrpc/client.py line: 460
- It is possible to make supervisor logs to be in JSON format?
- Is it possible to add a new choice for placing the config file? HOT 1
- crashmail: missing for EXITED HOT 1
- HTTP/1.1 500 Internal Server Error returned for "http://127.0.0.1:9551/RPC2". HOT 9
- gunicorn worker sometimes got stuck when manage by supervisor
- Export supervisorctl status running process to azure application insight HOT 1
- Locale & Date python with Supervisord
- New release on Pypi HOT 3
- Fatal error after update python from 3.10.13 to 3.10.14 - ModuleNotFoundError: No module named 'xmlrpclib' HOT 6
- Unwanted restart when modifying config HOT 1
- How to pass custom variables HOT 1
- Feature Request: Option to Disable HTTP Server Startup HOT 1
- Random Backoff for Load Distribution
- Supervisor 4.2.5 not setting env vars HOT 1
- Variables defined in environment= in [program:x] section cannot be reused in %(ENV_X)s expansions in the same section
- Create /var/log/supervisor/ if not exists HOT 1
- Document "supervisorctl avail" action
- [supervisorctl ]error: <class 'http.client.BadStatusLine'>, ΓΏ ython-xmlrpc/3.10 : file: /usr/lib/python3.10/http/client.py line: 300
- Supervisor crashes when log file is not writable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supervisor.