Open StepanOzana opened 2 weeks ago
An you share the error message?
I logged installation process in this file:
Can you try to run just python -m pip install fmpy
(w/o [complete]
)?
sure, here is the result: error_log2.txt
It seems like PyQt5 / PyQtWebEngine are the issues. Is there a way how to install it without them, at least as a temporary workaround? I don't need gui.
You could try to hack the platform detection in __init__.py
line 57 and add your processor:
if machine().lower() in {'aarch32', 'armv7l'}:
platform += '32'
architecture = 'aarch32'
elif machine().lower() in {'aarch64', 'arm64'}:
platform += '64'
architecture = 'aarch64'
elif machine().lower() in {'amd64', 'i386', 'i686', 'x86', 'x86_64', 'x86pc'}:
if sys.maxsize > 2 ** 32:
platform += '64'
architecture = 'x86_64'
else:
platform += '32'
architecture = 'x86'
else:
raise Exception(f"Unsupported architecture: {machine()}")
Here is what I get after modifying init.py: Failed to add logger proxy function. /usr/local/lib/python3.9/dist-packages/fmpy/logging/linux32/logging.so: cannot open shared object file: No such file or directory
You should still be able to simulate FMUs. The logging.so is only needed to process variadic arguments in log calls.
Hello, have anyone tried installation on Rpi3 or Rpi4? I use them with Python 3.11.2 and Bullseye lite. Installation via pip just fails.