You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the changes, the installation seems to work.
But when I try to import the distance module via import traj_dist.distance as tdist I get the following error:
(synth_privacy_evaluation) ➜ privacyrisk git:(main) ✗ python example.py
Traceback (most recent call last):
File "/Users/alex/PycharmProjects/synth_privacy_evaluation/privacyrisk/example.py", line 12, in <module>
import privrisk
File "/Users/alex/PycharmProjects/synth_privacy_evaluation/privacyrisk/privrisk.py", line 10, in <module>
import traj_dist.distance as tdist
File "/Applications/anaconda3/envs/synth_privacy_evaluation/lib/python3.10/site-packages/traj_dist/distance.py", line 3, in <module>
from .cydist.sspd import c_e_sspd, c_g_sspd
File "traj_dist/cydist/sspd.pyx", line 8, in init traj_dist.cydist.sspd
ModuleNotFoundError: No module named 'basic_euclidean'
I tried to change the imports and add paths manually, but that didn't work either. So if you could help me, that would be really nice!
The text was updated successfully, but these errors were encountered:
So, in sspd.pyx and all other .pyx files in cydist directory, just add a dot . before every basic_euclidean and basic_geographical import.
Hope this helps.
Hey,
I don't know if someone still reads this, but I'm trying to run this package in python 3.10.
I installed it, via
Git clone
Inserting a cast to an int in the last function in frechet (line 534..), because it didnt compile:
Inserting some requires into pyproject.toml, as in this issue :
python setup.py install
pip install .
With the changes, the installation seems to work.
But when I try to import the distance module via
import traj_dist.distance as tdist
I get the following error:I tried to change the imports and add paths manually, but that didn't work either. So if you could help me, that would be really nice!
The text was updated successfully, but these errors were encountered: