I’ve been using PIO remote fairly heavily and have become dependent on it for my project.
I’ve got an M3 mac air, running Sonoma 14.4.
I’ve been running the PIO IDE using BuiltinCore option. However I also had installed PIO using the install script.
I was getting a weird bug using pio run, and pro remote run where it redownloaded all the libs. benign but added time to my compilation.
I followed advice on PIO that having multiple PIO versions may cause this so uninstalled it as per the instructions using pip unsintall… the IDE then installed core automatically…
PIO run works…
PIO remove does not
ImportError: Traceback (most recent call last):
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/platformio/__main__.py", line 103, in main
cli() # pylint: disable=no-value-for-parameter
^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/click/decorators.py", line 45, in new_func
return f(get_current_context().obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/platformio/remote/cli.py", line 265, in device_list
from platformio.remote.client.device_list import DeviceListClient
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/platformio/remote/client/device_list.py", line 19, in <module>
from platformio.remote.client.base import RemoteClientBase
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/platformio/remote/client/base.py", line 30, in <module>
from platformio.remote.factory.ssl import SSLContextFactory
File "/Users/amelvin/.platformio/penv/lib/python3.11/site-packages/platformio/remote/factory/ssl.py", line 16, in <module>
from OpenSSL import SSL # pylint: disable=import-error
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amelvin/.platformio/packages/contrib-pioremote/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import SSL, crypto
File "/Users/amelvin/.platformio/packages/contrib-pioremote/OpenSSL/SSL.py", line 11, in <module>
from OpenSSL._util import (
File "/Users/amelvin/.platformio/packages/contrib-pioremote/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "/Users/amelvin/.platformio/packages/contrib-pioremote/cryptography/hazmat/bindings/openssl/binding.py", line 15, in <module>
from cryptography.exceptions import InternalError
File "/Users/amelvin/.platformio/packages/contrib-pioremote/cryptography/exceptions.py", line 9, in <module>
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: dlopen(/Users/amelvin/.platformio/packages/contrib-pioremote/_cffi_backend.cpython-311-darwin.so, 0x0002): tried: '/Users/amelvin/.platformio/packages/contrib-pioremote/_cffi_backend.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/amelvin/.platformio/packages/contrib-pioremote/_cffi_backend.cpython-311-darwin.so' (no such file), '/Users/amelvin/.platformio/packages/contrib-pioremote/_cffi_backend.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`python -m pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq/index.html
* Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
I cannot solve this… I’ve tried as many things as I can… installed python using brew… tried installing cffi
but this doesn’t work.
My background is C++ I have zero experience with python or how all these complex things are interacting. It was all working fine and then on reinstall has totally broken…
Any help would be appreciated…