question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PIO Home not working anymore (Raspberry Pi 3 and Termux)

See original GitHub issue

Pio Home stopped working on Raspberry Pi3 installation. Reinstalling, updating or upgrading with pip install -U platformio doesn´t help. Error log on Raspberry Pi :

Error: Traceback (most recent call last):
  File "/home/openhabian/.local/lib/python2.7/site-packages/platformio/__main__.py", line 102, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/home/openhabian/.local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/openhabian/.local/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/openhabian/.local/lib/python2.7/site-packages/platformio/commands/__init__.py", line 44, in invoke
    return super(PlatformioCLI, self).invoke(ctx)
  File "/home/openhabian/.local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/openhabian/.local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/openhabian/.local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/openhabian/.local/lib/python2.7/site-packages/platformio/commands/home/command.py", line 52, in cli
    from autobahn.twisted.resource import WebSocketResource
  File "/home/openhabian/.platformio/packages/contrib-pysite/autobahn/twisted/__init__.py", line 58, in <module>
    from autobahn.twisted.wamp import ApplicationSession
  File "/home/openhabian/.platformio/packages/contrib-pysite/autobahn/twisted/wamp.py", line 50, in <module>
    from autobahn.wamp import protocol, auth
  File "/home/openhabian/.platformio/packages/contrib-pysite/autobahn/wamp/auth.py", line 43, in <module>
    from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
File "/home/openhabian/.platformio/packages/contrib-pysite/cryptography/hazmat/primitives/kdf/pbkdf2.py", line 12, in <module>
    from cryptography.hazmat.primitives import constant_time
  File "/home/openhabian/.platformio/packages/contrib-pysite/cryptography/hazmat/primitives/constant_time.py", line 11, in <module>
    from cryptography.hazmat.bindings._constant_time import lib
ImportError: /home/openhabian/.platformio/packages/contrib-pysite/cryptography/hazmat/bindings/_constant_time.so: cannot open shared object file: No such file or directory

============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
  `pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
  https://docs.platformio.org/page/faq.html

* Report this problem to the developers
  https://github.com/platformio/platformio-core/issues

============================================================

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:37 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
dpippengercommented, Dec 27, 2019

Please take all of this with the consideration I am not a python developer. The issue seems the be that the shared library assets under contrib-pysite for cryptography’s bindings are incompatible with the raspberry pi runtime (at least while running raspbian). Examining the objects they seemed to be arm compatible, but I didn’t dig into this much further beyond the fact they wouldn’t load.

Someone else can probably clean up my workaround, but to circumvent the issue for now inside the venv created by platformio I did a pip install cryptography, then copied the binary artifacts created from that install over the files inside contrib-pysite.

cd ~/.platformio source penv/bin/activate pip install cryptography cp -r penv/lib/python3.7/site-packages/cryptography/hazmat/bindings/* packages/contrib-pysite/cryptography/hazmat/bindings/

Again, sorry for the crude and ugly workaround, I’m sure a more experienced python developer can provide better guidance.

1reaction
kgyrtkirkcommented, Apr 28, 2020

I’m not sure if you wanted me to open a ticket for the crypto related issue or that the curl stuff installs those packages with pip 😃 I’ve opened #3482 for the crypto library related issue - just ping me and I’ll test it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home not loading - PlatformIO Community
In my case, I open VSCode, either wait till PIO home attempts to load, or subsequently load it by the use of the...
Read more >
Connecting to raspberry pi gpio - KaliTut
connect Raspberry Pi GPIO Basically you can operate a GPIO pin either as input or output. As an input, it can evaluate the...
Read more >
https://raw.githubusercontent.com/linuxhw/hw-probe...
You can choose between one of them if you use # this work. ... "lithium-polymer" => "Li-poly" ); # We are not going...
Read more >
The Hacks of Mr. Robot: How to Send a Spoofed SMS Text ...
After selecting #3, it will ask you for a "pincode." Enter the one SMSGANG emailed you and then your text message is sent!...
Read more >
AndEX|Android-x86 Custom – Exton's special Android-x86 ...
Otherwise you will get an error message saying There was a problem ... Pie, Oreo, Nougat, Marshmallow and Lollipop versions for Raspberry Pi...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found