You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that if I need to run an archivebox cli command I need to do for example:
cd /home/yunohost.app/archivebox/
sudo -u archivebox /var/www/archivebox/venv/bin/archivebox add "$1" --tag "$2"
But when I try to run commands on python api for example, I get a bunch of weird errors:
root@yunohost:~# cd /home/yunohost.app/archivebox/
root@yunohost:/home/yunohost.app/archivebox# sudo -u archivebox /var/www/archivebox/venv/bin/python3 -c "from archivebox.main import setup_django, Tag, Snapshot; setup_django(); Snapshot.objects.get(url='https://example.com').tag_set.remove(Tag.objects.get(name='tag1'))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/main.py", line 14, in <module>
from .cli import (
File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/cli/__init__.py", line 83, in <module>
SUBCOMMANDS = list_subcommands()
File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/cli/__init__.py", line 43, in list_subcommands
module = import_module('.archivebox_{}'.format(subcommand), __package__)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/cli/archivebox_version.py", line 11, in <module>
from ..main import version
ImportError: cannot import name 'version' from partially initialized module 'archivebox.main' (most likely due to a circular import) (/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/main.py)
Not sure what to do with this. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
I cant use the python api. I am trying to keep tags for wallabag and archivebox in sync (see https://zulip.archivebox.io/#narrow/stream/154-support/topic/Managing.20Tags.20in.20CLI for more details) and therefore need to be able to remove tags using a script.
I know that if I need to run an archivebox cli command I need to do for example:
But when I try to run commands on python api for example, I get a bunch of weird errors:
Not sure what to do with this. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: