-
I installed memacs using After installing memacs using $ pipx install memacs I tried running $ memacs_lastfm
Traceback (most recent call last):
File "/Users/robert/.local/bin/memacs_lastfm", line 5, in <module>
from bin.memacs_lastfm import main
File "/Users/robert/.local/pipx/venvs/memacs/lib/python3.13/site-packages/bin/memacs_lastfm.py", line 4, in <module>
from memacs.lastfm import LastFM
File "/Users/robert/.local/pipx/venvs/memacs/lib/python3.13/site-packages/memacs/lastfm.py", line 8, in <module>
import pylast
ModuleNotFoundError: No module named 'pylast' I don't know what's wrong and how I can fix this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
After some searching and browsing, I found that one can "inject" additional libraries in the venv: $ pipx inject memacs pylast I see this as a workaround, since the module should have been available in the package itself. |
Beta Was this translation helpful? Give feedback.
-
For macOS you need to install memacs with pipx including all dependencies with this command: $ pipx install 'memacs[all]' (mind the quotes) |
Beta Was this translation helpful? Give feedback.
-
If somebody has a good idea how I may define Python dependencies such that they are only installed when a particular module is actually used, let me know. To my current knowledge, I actually would need to split up Memacs into the base and keep all modules in separate repositories. |
Beta Was this translation helpful? Give feedback.
For macOS you need to install memacs with pipx including all dependencies with this command:
$ pipx install 'memacs[all]'
(mind the quotes)