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
python setup.py egg_info" failed with error code 1 #32
Comments
Error code 1 is defined in errno.h and means Operation not permitted. its recommended to either uninstall and reinstall or to upgrade which seems to help in most cases. I tried the same unfortunately with no improvement. This permittion problem let me think if I might should change all files to "777" full access to anyone - but this should usualy rather be limited to specific files and I do not know which once..... |
local-pybinding should be only opened, there is nothing more it should do. Try
Provide the log of pip install afterwards. |
Hi, I tryed your suggestion, response is: pip3 install --upgrade fhempy
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-cfb683ra/websockets/ May be to add, fhem is local installed on a single PI running on "Buster" |
just deleted my fhem devices again and recreated, same thing, 2021.09.17 17:34:39 1 : Downloading https://raw.githubusercontent.com/dominikkarall/fhempy/master/controls_pythonbinding.txt does this help finding the problem? |
Please try Afterwards do pip3 install again as mentioned above. |
the pip3 brought some errors: error: invalid command 'bdist_wheel' Failed building wheel for websockets error: invalid command 'bdist_wheel' Failed building wheel for cffi the fhem related logfile says now in loops: |
Try After that install fhempy again. |
Hi, got this feedback: Collecting wheel deleted and defined local_pybinding again but status is still "PythonBinding offline" the log says: 2021-09-18 10:43:18,119 - ERROR - main: Failed to install fhempy, exit now... |
Ok, let's do |
Hi, ok that worked now without error. deleted and defined local_pybinding again but status is still "PythonBinding offline" The Log: 2021-09-18 13:24:26,370 - ERROR - main: Failed to install fhempy, exit now... It feels we come closer.... I am realy happy for your help and hope we get the rest fixed as well. |
sudo -u fhem bash Post the pip3 output to see what's going on now. |
Hi, could it be, that I should have done : sudo pip3 install fhempy ? |
I think something is broken on your system. Which operating system did you install on your RPi? |
Hi, it's an Armbian 21.02.3 Buster. So far anything esle went well and run's fine. It's a BananaPi |
just trying "sudo pip3 install fhempy" - it run better: As log seems ok: then again deleting and defining in fhem and the log says: 2021-09-18 21:08:44,505 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy... |
Looks good, does it work now? As it works as root it seems that you messed up the permissions in /opt/fhem. All files should be owned by fhem within this directory and all subdirs. |
Hi, still pybinding offline. all files in /lpt/fhem as well in opt/fhem/FHEM are owner fhem, anyhow should in folder /opt/fhem a command: sudo chown -R fhem . do the trick? What I recognise however are differnt access rights for the files most often is at -rw-r--r-- |
Yes, |
Hey it works, hurray. Many Thanks for your work, I would have got anywhere without it. I still don't understand what I did wrong, but anyhow, now its running. |
I try to install fhempy but fail
first i install on my Pi Python 3.7 by executing
Code: [Auswählen]
sudo apt install python3 python3-pip python3-dev libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libglib2.0-dev libdbus-1-dev bluez libbluetooth-dev
and
Code: [Auswählen]
sudo cpan Protocol::WebSocket
then i extended the updateosurces in fhem by
Code: [Auswählen]
update add https://raw.githubusercontent.com/dom...
and executed update
then i create in fhem
Code: [Auswählen]
define local_pybinding BindingsIo Python
it generate as well the Pytonbinding_15733 which get to active,
but my local-pybinding is only "opened"
fhempy_log says:
Unable to install package fhempy>=0.1.12: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-9ja41_su/websockets/
What can i do to get this fixed?
The text was updated successfully, but these errors were encountered: