Closed Boby71 closed 3 years ago
I used sudo to call python; after removing sudo everything was fine again
Also, take care that installing pyduofern using SUDO (sudo pip3 install pyduofern) - otherwise you could run into the same problem as well (Modulenotfounderror). It may depend your installation, but if you run into this error it's an easy task to check.
Let me add that whether sudo is required or not depends on the setup. A lot of people use virtualenvs / venvs to run python modules like this one. If a virtualenv/venv is used, always pip
from the venv should be used.
Some people actually install third party modules in their OS, in this case sudo pip
is the way to go (I'd always recommend working with venvs though, as does, for instance, the homeassistant core documentation).
Finally there's a third way in case only one user wants to use pyduofern from their standard interpreter but still not pollute the system python libraries: in this case using pi
p from the OS but with an extra --user
as pip install --user
will install the modules in the overlay directory for the currently active user. .local/bin
etc...
I don't know what happened, but when I try to to start the script, I get the following error:
I'm an absolute noob in python, but when I try to install the package it looks fine:
Where's my mistake/problem? Thanks!