~lilmike

Salem, Or, US

https://michaels.world


#16 cannot process audio files 1 year, 9 months ago

on ~mediagoblin/mediagoblin

"~lilmike" outgoing@sr.ht writes:

TLDR: It's an arch issue, nothing you can do with the manifest to work around it.

Thanks Mike! I'll leave this ticket open for a while to see if anything changes in a few months with an updated image.

#16 cannot process audio files 1 year, 9 months ago

Comment by ~lilmike on ~mediagoblin/mediagoblin

That seems to be an arch image issue. The arch image doesn't allow upgrading of util-linux by default, but does allow upgrading of util-linux-libs. Unfortunately in the latest update of those two packages, some files were moved from util-linux to util-linux-libs, and if trying to upgrade util-linux-libs but not util-linux, the package manager will want some files to exist in both packages, which is not allowed. All you can really do for the moment is wait for sr.ht to update the arch image, which theoretically happens regularly.

TLDR: It's an arch issue, nothing you can do with the manifest to work around it.

-Michael.

-- Sorry about the test, it's just a me thing. Michael Taboada, Creator of Games. Does that make me a god, well, sorta. My pgp key: 79BC390E8864CD71305D4DD606CD2197A6EE5ED7 My website: https://michaels.world 2MB website: https://2mb.games Don't believe everything you read on the internet. I might not be real, you might not be real, and this email certainly isn't real. Sent from my supernatural... stationary bicycle

#329 build runner splits output of wc -c on space, thus breaking compatibility with artifacts with spaces in the filename 1 year, 10 months ago

Ticket created by ~lilmike on ~sircmpwn/builds.sr.ht

More specifically, the runner splits the output on space, and as a sanity check, if the number of split pieces is not 2, it bales and fails the build. However, obviously if a file name has a space in the name the number of splits will be greater than 2.

#16 cannot process audio files 2 years ago

Comment by ~lilmike on ~mediagoblin/mediagoblin

#Hiya, Basic archlinux-sqlite.yml... hopefully: https://michaels.world/archlinux-sqlite.yml :-) let me know how it works, hopefully we'll get it working! :-). -Michael.

Sorry about the test, it's just a me thing. Michael Taboada, Creator of Games. Does that make me a god, well, sorta. My pgp key: 79BC390E8864CD71305D4DD606CD2197A6EE5ED7 My website: https://michaels.world 2MB website: https://2mb.games Don't believe everything you read on the internet. I might not be real, you might not be real, and this email certainly isn't real. Sent from my electrically lit... stationary bicycle

#16 cannot process audio files 3 years ago

Comment by ~lilmike on ~mediagoblin/mediagoblin

Looks like video and images work just fine. -Michael.

-- Sorry about the test, it's just a me thing. Michael Taboada, Creator of Games. Does that make me a god, well, sorta. My pgp key: 79BC390E8864CD71305D4DD606CD2197A6EE5ED7 My website: https://michaels.world 2MB website: https://2mb.games Don't believe everything you read on the internet. I might not be real, you might not be real, and this email certainly isn't real. Sent from my old-timey... stationary bicycle

#16 cannot process audio files 3 years ago

Ticket created by ~lilmike on ~mediagoblin/mediagoblin

I'm running a fresh install of mediagoblin 0.12.0 on arch linux, and when trying to process a flac file the following traceback occurs:

Sep 18 21:50:42 lpublic celery[1270072]: 2021-09-18 21:50:42,995 INFO    [celery.worker.strategy] Received task: process_media[e7c6d588-684e-4b04-b639-e815d3611190]
Sep 18 21:50:43 lpublic celery[1270106]: 2021-09-18 21:50:43,480 WARNING [mediagoblin.processing] No idea what happened here, but it failed: ProcessingManagerDoesNotExist('A processing manager does not exist for mediagoblin.media_types.audio')
Sep 18 21:50:43 lpublic celery[1270106]: 2021-09-18 21:50:43,550 ERROR   [celery.app.trace] Task process_media[e7c6d588-684e-4b04-b639-e815d3611190] raised unexpected: ProcessingManagerDoesNotExist('A processing manager does not exist for mediagoblin.media_types.audio')
Sep 18 21:50:43 lpublic celery[1270106]: Traceback (most recent call last):
Sep 18 21:50:43 lpublic celery[1270106]:   File /storage/mediagoblin/mediagoblin/lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/app/trace.py, line 382, in trace_task
Sep 18 21:50:43 lpublic celery[1270106]:     R = retval = fun(*args, **kwargs)
Sep 18 21:50:43 lpublic celery[1270106]:   File /storage/mediagoblin/mediagoblin/lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/app/trace.py, line 641, in __protected_call__
Sep 18 21:50:43 lpublic celery[1270106]:     return self.run(*args, **kwargs)
Sep 18 21:50:43 lpublic celery[1270106]:   File /storage/mediagoblin/mediagoblin/mediagoblin/processing/task.py, line 89, in run
Sep 18 21:50:43 lpublic celery[1270106]:     entry, manager = get_entry_and_processing_manager(media_id)
Sep 18 21:50:43 lpublic celery[1270106]:   File /storage/mediagoblin/mediagoblin/mediagoblin/processing/__init__.py, line 307, in get_entry_and_processing_manager
Sep 18 21:50:43 lpublic celery[1270106]:     manager = get_processing_manager_for_type(entry.media_type)
Sep 18 21:50:43 lpublic celery[1270106]:   File /storage/mediagoblin/mediagoblin/mediagoblin/processing/__init__.py, line 290, in get_processing_manager_for_type
Sep 18 21:50:43 lpublic celery[1270106]:     raise ProcessingManagerDoesNotExist(
Sep 18 21:50:43 lpublic celery[1270106]: mediagoblin.processing.ProcessingManagerDoesNotExist: A processing manager does not exist for mediagoblin.media_types.audio

I tried with a video but was unable to upload due to non mg related issues, and I uploaded an image and it just vanished. It doesn't appear in the media processing panel at all. Will look into this further.

#225 fr: set number of repositories available to create 5 years ago

Ticket created by ~lilmike on ~sircmpwn/git.sr.ht

My use case is to host code for a few people to contribute to, and a few more to see, but not public code. It would be nice if you could set a number of repositories to create (on a per-user basis would be nice, but even a default per plan or non-admin only amount would work too). That way if I invite someone to be able to view my code they can't host all their code on my personal server.

#23 archlinux package missing db migrations (?) 5 years ago

Ticket created by ~lilmike on ~sircmpwn/hg.sr.ht

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.

#186 ImportError: cannot import name 'csrf_bypass' from 'srht.flask' (/usr/lib/python3.7/site-packages/srht/flask/__init__.py) 5 years ago

Comment by ~lilmike on ~sircmpwn/todo.sr.ht

It works now. Sorry about reporting for multiple projects, I only saw it on two so figured it was specific to those and forgot about python-srht core heh. -Michael.

#34 ImportError: cannot import name 'csrf_bypass' from 'srht.flask' (/usr/lib/python3.7/site-packages/srht/flask/__init__.py) 5 years ago

Ticket created by ~lilmike on ~sircmpwn/man.sr.ht

>>> from dispatchsrht.app import db
/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)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/dispatchsrht/app.py", line 1, in <module>
from srht.flask import SrhtFlask
File "/usr/lib/python3.7/site-packages/srht/flask/__init__.py", line 8, in <module>
from .flask import DATE_FORMAT
File "/usr/lib/python3.7/site-packages/srht/flask/flask.py", line 10, in <module>
from srht.oauth.scope import set_client_id
File "/usr/lib/python3.7/site-packages/srht/oauth/__init__.py", line 28, in <module>
from srht.oauth.blueprint import oauth_blueprint
File "/usr/lib/python3.7/site-packages/srht/oauth/blueprint.py", line 8, in <module>
from srht.flask import csrf_bypass
ImportError: cannot import name 'csrf_bypass' from 'srht.flask' (/usr/lib/python3.7/site-packages/srht/flask/__init__.py)

Archlinux, latest packages from all dbs.