~sircmpwn/sr.ht#233: 
Core srht package outdated in Debian packages

Did an update this evening and all services broke. It comes from an scm.sr.ht import from core.sr.ht (srht.search.search_by). The core package on Debian is not up to date with the repo.

Traceback:

Feb 13 03:01:27 code gunicorn[1854821]:   "is going to be overriden.".format(identifier)
Feb 13 03:01:27 code gunicorn[1854821]: [2020-02-13 03:01:27 +0000] [1854821] [ERROR] Exception in worker process
Feb 13 03:01:27 code gunicorn[1854821]: Traceback (most recent call last):
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
Feb 13 03:01:27 code gunicorn[1854821]:     worker.init_process()
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 119, in init_process
Feb 13 03:01:27 code gunicorn[1854821]:     self.load_wsgi()
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 144, in load_wsgi
Feb 13 03:01:27 code gunicorn[1854821]:     self.wsgi = self.app.wsgi()
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 67, in wsgi
Feb 13 03:01:27 code gunicorn[1854821]:     self.callable = self.load()
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 49, in load
Feb 13 03:01:27 code gunicorn[1854821]:     return self.load_wsgiapp()
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
Feb 13 03:01:27 code gunicorn[1854821]:     return util.import_app(self.app_uri)
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 383, in import_app
Feb 13 03:01:27 code gunicorn[1854821]:     mod = importlib.import_module(module)
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
Feb 13 03:01:27 code gunicorn[1854821]:     return _bootstrap._gcd_import(name[level:], package, level)
Feb 13 03:01:27 code gunicorn[1854821]:   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
Feb 13 03:01:27 code gunicorn[1854821]:   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
Feb 13 03:01:27 code gunicorn[1854821]:   File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
Feb 13 03:01:27 code gunicorn[1854821]:   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
Feb 13 03:01:27 code gunicorn[1854821]:   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
Feb 13 03:01:27 code gunicorn[1854821]:   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gitsrht/app.py", line 54, in <module>
Feb 13 03:01:27 code gunicorn[1854821]:     app = GitApp()
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/gitsrht/app.py", line 23, in __init__
Feb 13 03:01:27 code gunicorn[1854821]:     repo_api=GitRepoApi(), oauth_service=oauth_service)
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/scmsrht/flask.py", line 31, in __init__
Feb 13 03:01:27 code gunicorn[1854821]:     from scmsrht.blueprints.public import public
Feb 13 03:01:27 code gunicorn[1854821]:   File "/usr/lib/python3/dist-packages/scmsrht/blueprints/public.py", line 6, in <module>
Feb 13 03:01:27 code gunicorn[1854821]:     from srht.search import search_by
Feb 13 03:01:27 code gunicorn[1854821]: ImportError: cannot import name 'search_by' from 'srht.search' (/usr/lib/python3/dist-packages/srht/search.py)

I worked around it by copying the srht/search.py file from the repo and placed it on the system path. Seems to resolve the issue for now.

Apologies if this is the wrong place for this ticket.

Status
RESOLVED FIXED
Submitter
~petersanchez
Assigned to
Submitted
8 months ago
Updated
a month ago
Labels
No labels applied.

~dlax 8 months ago

The last CI build failed indeed https://builds.sr.ht/~sircmpwn/job/150166#task-upload Possibly, resubmitting the job would fix it. Otherwise, I'll investigate hopefully by this weekend.

~dlax a month ago

This got fixed; I just forgot to report back here.

~sircmpwn REPORTED FIXED a month ago

Register here or Log in to comment, or comment via email.