Tsinghua-MARS-Lab / InterSim

MIT License
146 stars 20 forks source link

utils_cython not found error #4

Closed EnnaSachdeva closed 2 years ago

EnnaSachdeva commented 2 years ago

After compiling the cython scripts, and running python sim.py gives the following error-

ModuleNotFoundError: No module named 'prediction.M2I.marginal_prediction.src.utils_cython'

swb19 commented 1 year ago

After compiling the cython scripts, and running python sim.py gives the following error-

ModuleNotFoundError: No module named 'prediction.M2I.marginal_prediction.src.utils_cython'

Hello, I also encountered a similar problem. Have you solved it?

larksq commented 1 year ago

Try to also compile the utils_cython in marginal_prediction as follows? cd prediction/M2I/marginal_prediction/src/ cython -a utils_cython.pyx && python setup.py build_ext --inplace

swb19 commented 1 year ago

Try to also compile the utils_cython in marginal_prediction as follows? cd prediction/M2I/marginal_prediction/src/ cython -a utils_cython.pyx && python setup.py build_ext --inplace

Hello, I tried the above commands but found some errors as follows, have you encountered similar errors? Screenshot from 2022-12-24 17-41-46

larksq commented 1 year ago

I think these are just some warnings from Cython that do not block the compiling process.

swb19 commented 1 year ago

Thank you very much, but I still get No module named 'prediction.M2I.relation_predictor.src.utils_cython' error when I try to run python sim.py after compiling the utils_cython.

larksq commented 1 year ago

Could you run the same script in the relation_predictor/src folder and try again? cd prediction/M2I/relation_predictor/src/ cython -a utils_cython.pyx && python setup.py build_ext --inplace