Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supervisor stdout compatibility iss with Python3.6.8 version #19

Open
AnandPalani92 opened this issue May 27, 2020 · 3 comments
Open

Supervisor stdout compatibility iss with Python3.6.8 version #19

AnandPalani92 opened this issue May 27, 2020 · 3 comments

Comments

@AnandPalani92
Copy link

I used python3.6.8 version on our application and i have used supervisor-stdout pip package on our docker image. when i start the container and got the below error on the docker logs
Traceback (most recent call last):
File "/usr/local/bin/supervisord", line 10, in
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/supervisor/supervisord.py", line 354, in main
options.realize(args, doc=doc)
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 484, in realize
Options.realize(self, *arg, **kw)
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 308, in realize
self.process_config()
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 544, in process_config
Options.process_config(self, do_usage=do_usage)
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 316, in process_config
self.process_config_file(do_usage)
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 346, in process_config_file
self.read_config(self.configfile)
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 661, in read_config
section.process_group_configs = self.process_groups_from_parser(parser)
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 742, in process_groups_from_parser
result_handler = self.import_spec(result_handler)
File "/usr/local/lib/python3.6/site-packages/supervisor/options.py", line 391, in import_spec
return ep.resolve()
File "/usr/local/lib/python3.6/site-packages/pkg_resources/init.py", line 2440, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.6/site-packages/supervisor_stdout.py", line 22
print '%s %s | %s'%(headers['processname'], headers['channel'], data),
^
SyntaxError: invalid syntax

I have configured the supervisor.conf as per your suggestion, kindly check and resolve the issue

@mrdoug47
Copy link

mrdoug47 commented Nov 9, 2020

I'm having this issue as well when running ubuntu 20 containers, back-leveling to ubuntu 18 resolved my problems

@orangepeelbeef
Copy link

This specific error is fixed in the repository, but the pypi package hasn't been updated, so you can install via:

pip install git+https://github.com/coderanger/supervisor-stdout

@markeissler
Copy link

More accurately, the actual command is:

pip install 'supervisor-stdout @ git+https://github.com/coderanger/supervisor-stdout'
  • or -
pip install git+https://github.com/coderanger/supervisor-stdout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants