~sircmpwn/hg.sr.ht#23: 
archlinux package missing db migrations (?)

hgsrht-migrate stamp head
/usr/lib/python3.7/site-packages/sqlalchemy/sql/functions.py:67: SAWarning: The GenericFunction 'array_agg' is already registered and is going to be overriden.
"is going to be overriden.".format(identifier)
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
Traceback (most recent call last):
File "/usr/bin/hgsrht-migrate", line 5, in <module>
alembic("hg.sr.ht", hgsrht.alembic)
File "/usr/lib/python3.7/site-packages/srht/database.py", line 98, in alembic
cmdline.run_cmd(config, options)
File "/usr/lib/python3.7/site-packages/alembic/config.py", line 501, in run_cmd
**dict((k, getattr(options, k, None)) for k in kwarg)
File "/usr/lib/python3.7/site-packages/alembic/command.py", line 532, in stamp
script.run_env()
File "/usr/lib/python3.7/site-packages/alembic/script/base.py", line 475, in run_env
util.load_python_file(self.dir, "env.py")
File "/usr/lib/python3.7/site-packages/alembic/util/pyfiles.py", line 90, in load_python_file
module = load_module_py(module_id, path)
File "/usr/lib/python3.7/site-packages/alembic/util/compat.py", line 156, in load_module_py
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3.7/site-packages/hgsrht/alembic/env.py", line 3, in <module>
alembic_env()
File "/usr/lib/python3.7/site-packages/srht/database.py", line 134, in alembic_env
run_migrations_online()
File "/usr/lib/python3.7/site-packages/srht/database.py", line 127, in run_migrations_online
context.run_migrations()
File "<string>", line 8, in run_migrations
File "/usr/lib/python3.7/site-packages/alembic/runtime/environment.py", line 839, in run_migrations
self.get_context().run_migrations(**kw)
File "/usr/lib/python3.7/site-packages/alembic/runtime/migration.py", line 350, in run_migrations
for step in self._migrations_fn(heads, self):
File "/usr/lib/python3.7/site-packages/alembic/command.py", line 521, in do_stamp
return script._stamp_revs(revision, rev)
File "/usr/lib/python3.7/site-packages/alembic/script/base.py", line 395, in _stamp_revs
heads, revision, include_dependencies=True
File "/usr/lib/python3.7/site-packages/alembic/script/revision.py", line 422, in filter_for_lineage
id_, branch_label = self._resolve_revision_number(check_against)
File "/usr/lib/python3.7/site-packages/alembic/script/revision.py", line 476, in _resolve_revision_number
self._revision_map
File "/usr/lib/python3.7/site-packages/alembic/util/langhelpers.py", line 247, in __get__
obj.__dict__[self.__name__] = result = self.fget(obj)
File "/usr/lib/python3.7/site-packages/alembic/script/revision.py", line 123, in _revision_map
for revision in self._generator():
File "/usr/lib/python3.7/site-packages/alembic/script/base.py", line 100, in _load_revisions
for file_ in Script._list_py_dir(self, vers):
File "/usr/lib/python3.7/site-packages/alembic/script/base.py", line 857, in _list_py_dir
return os.listdir(path)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.7/site-packages/hgsrht/alembic/versions'

ls -a /usr/lib/python3.7/site-packages/hgsrht/alembic/
.  ..  env.py  __pycache__
~~~

Are files missing from the arch packages? Or is the database system on here not working right right now.
-Michael.
Status
RESOLVED FIXED
Submitter
~lilmike
Assigned to
No-one
Submitted
2 years ago
Updated
1 year, 8 months ago
Labels
No labels applied.