wsn
wsn copied to clipboard
I am getting error at genetic_algorithm import
return importlib.import_module('genetic_algorithm') File "C:\ProgramData\Anaconda3\lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level)
This is the error which iam getting, is it due to python version because I am using python 3x version
I can't get the specific error from your discription. Maybe you can put up the whole error message.😂 Or you can refer to my example. I fixed some problems and run on PYTHON 3.7 and Window 10 portal-> (This is an incomplete version. )
I hope it works for you. 😀
C:\ProgramData\Anaconda3\envs\wsn-master\Scripts\python.exe D:/VT/code/wsn-master_NEW/wsn-master/run.py
Traceback (most recent call last):
File "D:/VT/code/wsn-master_NEW/wsn-master/run.py", line 6, in
Again I am getting the same error
I think you probably haven't compiled the C/C++ file yet (via SWIG)😮
Follow step 2 below.
Build Precondition:
- Install SWIG
- Using python=2.7
- Change setup.py
os.environ["CC"] = "g++-5 -std=c++11
to your version - Change setup.py
build_path
to your path
And here you go:
run python setup.py build_ext --inplace
successfully 🎉
run python run.py