Closed matroscoe closed 5 days ago
I have the same situation, have you resolved it?
@yincangshiwei no and I reached out both here and on the codon slack and got nothing in response so I don't know what to do about it.
Apologies for the delay. Let us look into this and follow up ASAP.
Apologies for the delay—this one went under my radar.
I am not able to reproduce this issue. Can you please describe your setup/environment?Are you using any venv or Conda? Also, when does this happen: are you using codon.jit directly, indirectly etc?
Most importantly: try setting export CODON_PATH=<path_to_codon>
(usually $HOME/.codon
) and running it again.
I have the same issue. I'm using venv and codon-jit is installed there and I set CODON_PATH
accordingly as well. I get the error :no module named 'codon'
. I tried it on a simple code from the documentation for prime number calculation and it did not work. However, codon itself works and I can access libraries using from python import
. Is there any solution for this?
I also encountered the same problem, My environment is using Anaconda, Python 3.11.7 Environment variables have been set export CODON_DIR=/root/.codon export CODON_PATH=/root/.codon The following error message still appears
Traceback (most recent call last):
File "/root/workspace/sparkimpulse/codon_example/inpython.py", line 4, in <module>
import codon
File "/root/anaconda3/lib/python3.11/site-packages/codon/__init__.py", line 5, in <module>
from .decorator import jit, convert, execute, JITError
File "/root/anaconda3/lib/python3.11/site-packages/codon/decorator.py", line 17, in <module>
from .codon_jit import JITWrapper, JITError, codon_library
ImportError: /root/anaconda3/lib/python3.11/site-packages/codon/codon_jit.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN5codon3jit7jitInitERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
Duplicate of #123, moving the discussion there. Thank you all for these reports.
was hoping someone could help out with the following error:
I am using pycharm and in the editor it is not throwing any errors and
codon-jit
is in the venv I can findcodon/
andcodon_jit-0.1.3.dist-info
the issue only pops up when I try to kick off the python script importing our internal package which is developed and deployed with thecodon-jit
package listed as a dependency.