~tsileo/microblog.pub#153: 
FileNotFound error when trying to import follows from Mastodon

Trying to import follows gives the following error:

sudo make import-mastodon-following-accounts path=following.csv docker run --rm --volume pwd/data:/app/data --volume pwd/app/static:/app/app/static microblogpub/microblogpub inv import-mastodon-following-accounts following.csv Traceback (most recent call last): File "/opt/venv/.venv/bin/inv", line 8, in sys.exit(program.run()) ^^^^^^^^^^^^^ File "/opt/venv/.venv/lib/python3.11/site-packages/invoke/program.py", line 384, in run self.execute() File "/opt/venv/.venv/lib/python3.11/site-packages/invoke/program.py", line 569, in execute executor.execute(*self.tasks) File "/opt/venv/.venv/lib/python3.11/site-packages/invoke/executor.py", line 129, in execute result = call.task(*args, **call.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/.venv/lib/python3.11/site-packages/invoke/tasks.py", line 127, in call result = self.body(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/tasks.py", line 423, in import_mastodon_following_accounts count = asyncio.run(_import_following()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/app/tasks.py", line 409, in _import_following ) in await get_actor_urls_from_following_accounts_csv_file(path): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/utils/mastodon.py", line 21, in get_actor_urls_from_following_accounts_csv_file for handle in _load_mastodon_following_accounts_csv_file(path): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/utils/mastodon.py", line 10, in _load_mastodon_following_accounts_csv_file for line in Path(path).read_text().splitlines()[1:]: ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/pathlib.py", line 1058, in read_text with self.open(mode='r', encoding=encoding, errors=errors) as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/pathlib.py", line 1044, in open return io.open(self, mode, buffering, encoding, errors, newline) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'following.csv' make: [Makefile:47: import-mastodon-following-accounts] Error 1 (ignored)

Status
REPORTED
Submitter
~tomxcd
Assigned to
No-one
Submitted
11 months ago
Updated
11 months ago
Labels
No labels applied.

~tomxcd 11 months ago ยท edit

The file exists, can the app not access it somehow?

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