charlesweir / BrickPython

Extensions to BrickPi_Python to support always-responsive programs, and to use NXT motors as servos
https://pythonhosted.org/BrickPython/index.html
MIT License
3 stars 2 forks source link

Issue installing #4

Open dylhole opened 3 years ago

dylhole commented 3 years ago

I tried pip install BrickPython both with and without sudo and got an error I'm having trouble figuring out. Any ideas would be greatly appreciated!

DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting BrickPython
Using cached https://files.pythonhosted.org/packages/9a/9c/5833c675f53194085f77ed1cd76b7c6ccaee2e3754f4c8ca7ffd8b6e8edf/BrickPython-0.4.tar.gz
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-m4lb61i3/BrickPython/setup.py", line 28, in <module>
long_description = read('README.rst')
File "/tmp/pip-install-m4lb61i3/BrickPython/setup.py", line 18, in read
return codecs.open(os.path.join(here, *parts), 'r').read()
File "/usr/lib/python3.4/codecs.py", line 896, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-m4lb61i3/BrickPython/README.rst'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-m4lb61i3/BrickPython/
charlesweir commented 3 years ago

Glad to see interest in this. I’m not supporting it these days (don’t have the configuration and hardware to test new versions), but the problem you’re having looks pretty straightforward.

The error says there’s no README.rst file. That is correct. So try creating one by copying README.md (or whatever it is) to README.rst. I don’t suppose it matters what it contains…

Best regards,

Charles

From: dylhole notifications@github.com Reply to: charlesweir/BrickPython reply@reply.github.com Date: Sunday, 4 October 2020 at 20:49 To: charlesweir/BrickPython BrickPython@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [External] [charlesweir/BrickPython] Issue installing (#4)

This email originated outside the University. Check before clicking links or attachments.

I tried pip install BrickPython both with and without sudo and got an error I'm having trouble figuring out. Any ideas would be greatly appreciated!

DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429). Collecting BrickPython Using cached https://files.pythonhosted.org/packages/9a/9c/5833c675f53194085f77ed1cd76b7c6ccaee2e3754f4c8ca7ffd8b6e8edf/BrickPython-0.4.tar.gzhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffiles.pythonhosted.org%2Fpackages%2F9a%2F9c%2F5833c675f53194085f77ed1cd76b7c6ccaee2e3754f4c8ca7ffd8b6e8edf%2FBrickPython-0.4.tar.gz&data=02%7C01%7Cc.weir1%40lancaster.ac.uk%7Caceab133c7274da1589308d8689ea95b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C1%7C637374377936770107&sdata=9vupnNymy1wltIoj5ILapv3PR0nLJOphi9XBG1oA3Z0%3D&reserved=0 ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-m4lb61i3/BrickPython/setup.py", line 28, in long_description = read('README.rst') File "/tmp/pip-install-m4lb61i3/BrickPython/setup.py", line 18, in read return codecs.open(os.path.join(here, *parts), 'r').read() File "/usr/lib/python3.4/codecs.py", line 896, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-m4lb61i3/BrickPython/README.rst'

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-m4lb61i3/BrickPython/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcharlesweir%2FBrickPython%2Fissues%2F4&data=02%7C01%7Cc.weir1%40lancaster.ac.uk%7Caceab133c7274da1589308d8689ea95b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C1%7C637374377936770107&sdata=qj0dDh659zL%2Bl8i9gkjWNpMIcGoR2ADJhhSlLXtjbOY%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAGCZT4GKTTPM767IF5B2QDSJDGV3ANCNFSM4SD45Y6A&data=02%7C01%7Cc.weir1%40lancaster.ac.uk%7Caceab133c7274da1589308d8689ea95b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C1%7C637374377936780104&sdata=5CC9Z3fsIBO4Bm1NDAZK0xR77gyv2fop%2BiS7QrDtdBk%3D&reserved=0.

dylhole commented 3 years ago

Hey Charles, I appreciate the response even though you're no longer supporting the project! What you've got seems really cool. I've tried programming my BrickPi using multithreading and I've been running into all kinds of Serial errors I haven't been able to figure out. Unfortunately my programming skills are pretty rudimentary too.

I tried what you suggested but it seems like the characters after tmp/pip-install in /tmp/pip-install-m4lb61i3/BrickPython/setup.py are unique each time you run the installation script so it still produces the same error. I don't want to keep bugging you on this one, but I thought I'd at least share the issue with you. Thanks for your help anyways!

charlesweir commented 3 years ago

Try changing the name of the readme file in the distribution?

Best regards,

Charles

From: dylhole notifications@github.com Reply to: charlesweir/BrickPython reply@reply.github.com Date: Tuesday, 6 October 2020 at 19:29 To: charlesweir/BrickPython BrickPython@noreply.github.com Cc: "Weir, Charles" c.weir1@lancaster.ac.uk, Comment comment@noreply.github.com Subject: [External] Re: [charlesweir/BrickPython] Issue installing (#4)

This email originated outside the University. Check before clicking links or attachments.

Hey Charles, I appreciate the response even though you're no longer supporting the project! What you've got seems really cool. I've tried programming my BrickPi using multithreading and I've been running into all kinds of Serial errors I haven't been able to figure out. Unfortunately my programming skills are pretty rudimentary too.

I tried what you suggested but it seems like the characters after tmp/pip-install in /tmp/pip-install-m4lb61i3/BrickPython/setup.py are unique each time you run the installation script so it still produces the same error. I don't want to keep bugging you on this one, but I thought I'd at least share the issue with you. Thanks for your help anyways!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcharlesweir%2FBrickPython%2Fissues%2F4%23issuecomment-704466835&data=02%7C01%7Cc.weir1%40lancaster.ac.uk%7C763f91bbece948adf62508d86a25c225%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637376057692699942&sdata=ViqgWEILCe0lEQ0c4ebfr1Y0ARL%2FlWGtsitCSF1dZmA%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAGCZT7PWFWTVCHGB3A2LA3SJNOYHANCNFSM4SD45Y6A&data=02%7C01%7Cc.weir1%40lancaster.ac.uk%7C763f91bbece948adf62508d86a25c225%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637376057692709939&sdata=3LDBewGs46%2BGXIxAIYOQ4vEBYJAN%2FS2F%2Bht%2B1vYcD7w%3D&reserved=0.