Closed Jordy-VL closed 3 years ago
Hi Jordy,
Thanks for opening the issue! It seems there are two different unrelated problems here:
The error when you ran import pycalibration
was caused by a statically linked Python interpreter. Unfortunately, this is a fundamental limitation of PyJulia and not specific to pycalibration: https://pyjulia.readthedocs.io/en/latest/troubleshooting.html#your-python-interpreter-is-statically-linked-to-libpython I haven't experienced this issue myself since I use a different Python setup (and mostly use Julia instead :stuck_out_tongue:), so I can't provide any advice based on personal experience. It seems the easiest fix is to turn off the precompilation cache, exactly as you did. As you noticed when you ran from pycalibration import calerrors as ce
, however, this will slow down loading and using Julia packages. Usually, Julia already precompiles packages during installation which leads to faster loading times. If you want to avoid this, you could build your own Python that is not statically linked: https://pyjulia.readthedocs.io/en/latest/troubleshooting.html#ultimate-fix-build-your-own-python
The error when you ran pycalibration.install()
is a bug. It seems I forgot to include the Julia files in https://github.com/devmotion/pycalibration/blob/main/MANIFEST.in. I'll add them and then hopefully it works correctly. I am a bit surprised though that the tests passed and therefore it went unnoticed.
The bug should be fixed in the master branch, Julia files should be installed correctly now.
Hi David,
Thanks for the great work! I'm finally getting around to testing your implementations, but I experience some issues installing
pycalibration
. I hope documenting my process of gettingpycalibration
installed helps future users attempt it as well :+1:Action:
import pycalibration
Bug:
I know this is a very noob question (first-time Julia user here :p), but what is my best course of action?
I correctly installed julia and pyjulia, and if I use the suggested "compile_modules=False" workaround I can import pycalibration.
However, then it complains in the installation of pycalibration:
I can import specific functions, yet then there are missing dependencies, probably requiring the install():
It seems in the python installation, the ".jl" files do not get copied to the right path:
As an easy fix I just grab'em and put them in the expected location:
Then
pycalibration.install()
works as a charm, as confirmed by running tests.Final note: importing
from pycalibration import calerrors as ce
takes around 20 seconds, is this normal, probably due to thecompiled_modules=False
?