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

New importlib breaks playout and celery #1142

Closed
paddatrapper opened this issue Dec 27, 2020 · 2 comments
Closed

New importlib breaks playout and celery #1142

paddatrapper opened this issue Dec 27, 2020 · 2 comments
Labels
is: bug python status: stalled This issue or pull request is stalled

Comments

@paddatrapper
Copy link
Contributor

Seems there is a Python dependency upgrade that has broken things. pypo and celery fail to start with the following error:

Dec 27 19:55:19 vagrant airtime-playout[2622]: Traceback (most recent call last):
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/kombu-4.6.10-py3.5.egg/kombu/utils/compat.py", line 12, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     from importlib import metadata as importlib_metadata
Dec 27 19:55:19 vagrant airtime-playout[2622]: ImportError: cannot import name 'metadata'
Dec 27 19:55:19 vagrant airtime-playout[2622]: During handling of the above exception, another exception occurred:
Dec 27 19:55:19 vagrant airtime-playout[2622]: Traceback (most recent call last):
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/bin/airtime-playout", line 4, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     __import__('pkg_resources').run_script('airtime-playout==1.0', 'airtime-playout')
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 650, in run_script
Dec 27 19:55:19 vagrant airtime-playout[2622]:     self.require(requires)[0].run_script(script_name, ns)
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1446, in run_script
Dec 27 19:55:19 vagrant airtime-playout[2622]:     exec(code, namespace, namespace)
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/airtime_playout-1.0-py3.5.egg/EGG-INFO/scripts/airtime-playout", line 4, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     runpy.run_module("pypo", run_name="__main__")
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/lib/python3.5/runpy.py", line 199, in run_module
Dec 27 19:55:19 vagrant airtime-playout[2622]:     return _run_code(code, {}, init_globals, run_name, mod_spec)
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
Dec 27 19:55:19 vagrant airtime-playout[2622]:     exec(code, run_globals)
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/airtime_playout-1.0-py3.5.egg/pypo/__main__.py", line 30, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     from .pypomessagehandler import PypoMessageHandler
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/airtime_playout-1.0-py3.5.egg/pypo/pypomessagehandler.py", line 10, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     from kombu.connection import Connection
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/kombu-4.6.10-py3.5.egg/kombu/connection.py", line 28, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     from .log import get_logger
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/kombu-4.6.10-py3.5.egg/kombu/log.py", line 12, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     from .utils.encoding import safe_repr, safe_str
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/kombu-4.6.10-py3.5.egg/kombu/utils/__init__.py", line 5, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     from .compat import fileno, maybe_fileno, nested, register_after_fork
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/kombu-4.6.10-py3.5.egg/kombu/utils/compat.py", line 14, in <module>
Dec 27 19:55:19 vagrant airtime-playout[2622]:     import importlib_metadata
Dec 27 19:55:19 vagrant airtime-playout[2622]:   File "/usr/local/lib/python3.5/dist-packages/importlib_metadata-3.3.0-py3.5.egg/importlib_metadata/__init__.py", line 88
Dec 27 19:55:19 vagrant airtime-playout[2622]:     dist: Optional['Distribution'] = None
Dec 27 19:55:19 vagrant airtime-playout[2622]:         ^
Dec 27 19:55:19 vagrant airtime-playout[2622]: SyntaxError: invalid syntax

Probably needs version pinning until the upstream projects (celery and kombu) support the new importlib

@stale
Copy link

stale bot commented Jun 11, 2021

This issue has been automatically marked as stale because it has not had activity in the last 5 months. It will be closed if no activity occurs in the next month.
Please chat to us on discourse or ask for help on our chat if you have any questions or need further support with getting this issue resolved.
You may also label an issue as pinned if you would like to make sure that it does not get closed by this bot.

@stale stale bot added the status: stalled This issue or pull request is stalled label Jun 11, 2021
@stale
Copy link

stale bot commented Jul 21, 2021

This issue has been automatically closed after is was marked as stale and did not receive any further inputs.
Feel free to let us know on discourse or ask for help on our chat if you feel this issue should not have been closed.
Thank you for your contributions.

@stale stale bot closed this as completed Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug python status: stalled This issue or pull request is stalled
Projects
None yet
Development

No branches or pull requests

1 participant