-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I install? #2
Comments
Hello @m4nino - it looks like the script "python setup.py install" wasnt executed properly. You need to install python3. Can you please share your version you have right now?
|
Alright, based on the doc from molobrakos it should actually work, that is weird. However, I have on my two devices python 3.8.5 and the modules as well as the installation worked perfectly. Could you try installing Python 3.8 and test it again? |
Ok, so I wasnt sure about how to downgrade to python 3.8 again, so I did reinstall the Magic Mirror and now I have the python 3.11... Hm. I tried anyway and got the same error as with the 3.8 first time and the 3.10 second. I will show u what happen. First I get an error when I wrote python3 setup.py install and when I try again wrote sudo python3 setup.py install the install seem to work, but then the installation ends with another error. Do you understand what this is about? ``m@raspberrypi:~$ python --version The following error occurred while trying to add or remove files in the [Errno 13] Permission denied: '/usr/local/lib/python3.11/dist-packages/test-easy-install-3434.write-test' /usr/local/lib/python3.11/dist-packages/ For information on other options, you may wish to consult the https://setuptools.pypa.io/en/latest/deprecated/easy_install.html Please make the appropriate changes for your system and try again. m@raspberrypi:~/MagicMirror/modules/volvooncall $ sudo python3 setup.py install Installed /usr/local/lib/python3.11/dist-packages/volvooncall-0.10.4-py3.11.egg Accelerated build * File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 151, in call_command During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 733, in install_item File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 815, in resolve File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 851, in _resolve_dist File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1123, in best_match File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1135, in obtain File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 705, in easy_install File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 924, in install_eggs File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1198, in build_and_install File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 151, in call_command File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in getattr |
have you tried to install it with sudo? |
Like "m@raspberrypi:~/MagicMirror/modules/volvooncall $ sudo python3 setup.py install"? If yes, see my last post again. |
I missed that. I recall having a similar issue years ago, and I believe I installed it outside the modules folder. The script is actually unrelated to MagicMirror. I installed it in the root directory.
|
Hmm interesting, I did try outside the modules folder, and outside the Magic Mirror folder, both of it needed sudo python3 setup.py install and generate error unfortunately. "AttributeError: install_layoute". :( |
Ok, one last try. I did go from Raspberry pi 32bit OS to 64bit. (Don't ask... the 32bit works faster for me). And now it wasnt any error during installation, but I can't do the voc list and get correct answer. The module do not show either. When I do the voc list i get this:
I did try to place the module in the folder modules and outside. |
Hey - sorry, that is annoying. It looks like But what I can tell you is that the module works perfect as soon as you got the script running. Good Luck! |
Try also this: |
Ok, so I did the sudo apt install python3-docopt and then it tell me the problem now is something with my username and password. " Missing configuration: Connection.init() missing 2 required positional arguments: 'username' and 'password' " I'm 100% sure I wrote my name and password right and I have tried different ways with space and thing like that. I will ask the ppl in the MM forum, but first I have to try the link u wrote. How am I supposed to use it? pip3 install git+https://github.com/molobrakos/volvooncall.git |
How do I instalI this module?
I understand this python program have to be installed first, but there I get stucked. I get this message when I do the test:
******@raspberrypi:~ $ voc list
Unknown source file: list
******@raspberrypi:~ $
I’m 100% sure I wrote the right username and password. What could be wrong? I’m fairly new to Raspberry Pi and Magic Mirror, but I do can install other modules. I have done the update to python 10.4.
Ok, so I did this
cd ~/MagicMirror/modules
git clone https://github.com/molobrakos/volvooncall.git
cd volvooncall
python setup.py install (HERE, I could to this, got a message about I could do this. So I did change this one to Sudo python setup.py install, then everyting went fine… or maybe not? I don’t know.
Then I did this
touch .voc.conf
nano .voc.conf
Wrote my username and password in the file:
username: <------@outlook.*om>
password: <------->
After that I’d press the CTRL+X , save, and enter.
Then I wrote voc test and I got the line Unknown source file: list
Ok, shit happens I did try to install the MMM-MyVolvo anyway.
cd ~/MagicMirror/modules
git clone https://github.com/mazim-co/MMM-MyVolvo
cd MMM-MyVolvo
npm install
I did the config then restart MM and module wont show up. After this I did test pip install volvooncall also but that was alot of guessing so probably did’nt get that right either. What am I doing wrong?
The text was updated successfully, but these errors were encountered: