morseapi icon indicating copy to clipboard operation
morseapi copied to clipboard

Error during install on Raspberry Pi 3

Open winnph opened this issue 8 years ago • 5 comments

I attempted to install on a Raspberry Pi 3 and after typing the "install -e" command, I received a red message that stated "Command python setup.py egg_info failed with error code 1 in /home/pi/morseapi" and a lengthy error log was generated.

winnph avatar Jan 02 '18 05:01 winnph

Do you have a copy of the generated error message?

IlyaSukhanov avatar Jan 02 '18 22:01 IlyaSukhanov

The problem appears to be old code in PyRobots's setup.py, which is trying to use execfile('...') (from Python2x), so I downloaded the pyrobots source and changed that one line to exec(open('...').read()), and I'm currently trying to install pyrobots manually.

I'll let you know if that works, otherwise, I'll send you a copy of the entire error log.

On Jan 2, 2018 2:11 PM, "Ilya Sukhanov" [email protected] wrote:

Do you have a copy of the generated error message?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IlyaSukhanov/morseapi/issues/2#issuecomment-354888988, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0A7-ACyXgzAuhEMVnUAZsTeM65kJOtks5tGqmogaJpZM4RQSyR .

winnph avatar Jan 02 '18 22:01 winnph

Confirmed, I was able to fix this by changing that one line in pyRobots setup.py. Once that was corrected to python3x syntax, it installed fine.

On Jan 2, 2018 2:56 PM, "Winn Phillips" [email protected] wrote:

The problem appears to be old code in PyRobots's setup.py, which is trying to use execfile('...') (from Python2x), so I downloaded the pyrobots source and changed that one line to exec(open('...').read()), and I'm currently trying to install pyrobots manually.

I'll let you know if that works, otherwise, I'll send you a copy of the entire error log.

On Jan 2, 2018 2:11 PM, "Ilya Sukhanov" [email protected] wrote:

Do you have a copy of the generated error message?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IlyaSukhanov/morseapi/issues/2#issuecomment-354888988, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0A7-ACyXgzAuhEMVnUAZsTeM65kJOtks5tGqmogaJpZM4RQSyR .

winnph avatar Jan 02 '18 22:01 winnph

Unfortunately morseapi has not been thoroughly tested with python3. When I last looked at it (>12 months ago) dependency libraries were not available, I think it was primarily pygatt, which has since fixed to work with python3. So its possible it should be possible now with minimal amount of tweaks.

IlyaSukhanov avatar Jan 02 '18 23:01 IlyaSukhanov

@winnph, I took the liberty of creating a PR for pyrobots: https://github.com/severin-lemaignan/pyrobots/pull/8

lischenko avatar Apr 22 '19 06:04 lischenko