liangxinedu / NeuroLKH

70 stars 17 forks source link

swig_test.py: cannot import name '_LKH' from 'SRC_swig' (unknown location) #7

Open Idris014 opened 1 year ago

Idris014 commented 1 year ago

python swig_test.py --dataset test/100.pkl --model_path pretrained/neurolkh.pt --n_samples 1000 --lkh_trials 1000 --neurolkh_trials 1000

Report that ImportError: cannot import name '_LKH' from 'SRC_swig' (unknown location)

1876054672 commented 11 months ago

I'm having the same issue. Did you solve this problem?

aswarner commented 9 months ago

I am also having this issue, any updates?

imyourbug commented 1 week ago

@aswarner @1876054672 @Idris014 Just move your _LKH.so file to the right place (SRC_swig/ directory). If u get the error "ImportError: dynamic module does not define", let's check my pull req: https://github.com/liangxinedu/NeuroLKH/pull/9/files