Quick description: CLI made with click that interacts with spotify using dbus-python. Go to the github page if you need more info I suppose – or try it yourself if you are so inclined. I’m running on an ubuntu-vm ATM.
To reproduce:
- I have my own package, when I
pip install -e .
the package install fine and it can be called in the terminal.
$ spotzero
works
-
clone the repo again just in case
-
I
pip install .
without the –editable flat, the package also install without any errors. But callng it on the terminal returns an error:ModuleNotFoundError: No module named 'spotzero'
ubuntu2204@ubuntu2204-vm:~/Downloads/spotzero$ spotzero
Traceback (most recent call last):
File "/home/ubuntu2204/.local/bin/spotzero", line 5, in <module>
from spotzero.cli import cli
ModuleNotFoundError: No module named 'spotzero'
So far I have tried:
-
Wiping the
spotzero
folder and cloning it again and doingpip install .
again. This changed the output a little, but the issue still stands: -
Running with the
--editable
flag works. -
The weirdest part is that I can importing the package is fine..?
(spotzero) ubuntu2204@ubuntu2204-vm:~/Downloads/spotzero$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import spotzero
>>> import spotzero.cli as spotzero
>>> spotzero
<module 'spotzero.cli' from '/home/ubuntu2204/Documents/spotzero/spotzero/cli.py'>
>>> spotzero.resume() # this works
- Ran on Fedora 39 and a freshly installed ubuntu 22.04 machine
masakk1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.