Forums

change operating system & python version

I want to change my operating system from haggis to Innit along with upgrading my python to 3.13. all the libraries i use are compatible with 3.13 Can i continue after the change using my existing virtual environment or do i need to delete & create a new virtual environment

It depends on what you have installed in the virtualenv. Prepare as if you would need to rebuild it and then, if you don't, that's a bonus

i just recreated virtualenv with python 3.13. but theres only 1 issue with Namba dependency llvmlite . it seems to be missing this file OSError: /home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/libllvmlite.so

I have tried installing older versions of Numba but they dont install.. Help me fix this problem

Traceback (most recent call last):

File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/ffi.py", line 141, in getattr return self._fntab[name] ~~~~~~~~~~~^^^^^^ KeyError: 'LLVMPY_AddSymbol' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/ffi.py", line 122, in _load_lib self._lib_handle = ctypes.CDLL(str(lib_path)) ~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/ctypes/init.py", line 390, in init self._handle = _dlopen(self._name, mode) ~~~~~~~^^^^^^^^^^^^^^^^^^ OSError: /home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/libllvmlite.so: cannot open shared object file: No such file or directory The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/rizpython236/BT5/trade_compiler.py", line 79, in <module> import pandas_ta as ta File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/pandas_ta/init.py", line 6, in <module> from pandas_ta.utils import * File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/pandas_ta/utils/init.py", line 4, in <module> from ._math import * File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/pandas_ta/utils/_math.py", line 18, in <module> from numba import njit File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/numba/init.py", line 73, in <module> from numba.core import config File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/numba/core/config.py", line 17, in <module> import llvmlite.binding as ll File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/init.py", line 4, in <module> from .dylib import * File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/dylib.py", line 36, in <module> ffi.lib.LLVMPY_AddSymbol.argtypes = [ ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/ffi.py", line 144, in getattr cfn = getattr(self._lib, name) ^^^^^^^^^ File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/ffi.py", line 136, in _lib self._load_lib() ~~~~~~~~~~~~~~^^ File "/home/rizpython236/.virtualenvs/Pybroker39zz/lib/python3.13/site-packages/llvmlite/binding/ffi.py", line 130, in _load_lib raise OSError("Could not find/load shared object file") from e OSError: Could not find/load shared object file

if i do pip install --no-cache-dir --force-reinstall llvmlite==0.45.0 numba==0.62.0 I get the libllvmlite.so & everything works fine. BUT after 10-15 minutes the file libllvmlite.so disappears. I can't force-reinstall after every few mins.

screenshot link : https://ibb.co/NnQQmbMh

enter image description here

What does it show when you ls -l that file in a Bash console?