TurboActivate, Python import errorSolved

Hello,

I am going through the python tutorial for TurboActivate. If I install turboactivate via "pip install turboactivate" and run example.py, I get the following import error:

D:\test\limelm\project\venv\Scripts\python.exe D:/test/limelm/project/example.pyTraceback (most recent call last): File "D:/test/limelm/project/example.py", line 5, in <module> from turboactivate import (ImportError: cannot import name 'GenuineOptions' from 'turboactivate' (D:\test\limelm\project\venv\lib\site-packages\turboactivate\__init__.py)

If I install TurboActivate from the API/Python folder included in the TurboActivate.zip file I downloaded from the link in the tutorial, I get another import error:

D:\test\limelm\project\venv\Scripts\python.exe D:/test/limelm/project/example.pyTraceback (most recent call last): File "D:/test/limelm/project/example.py", line 5, in <module> from turboactivate import ( File "D:\test\limelm\project\venv\lib\site-packages\turboactivate\__init__.py", line 32, in <module> from c_wrapper import *ModuleNotFoundError: No module named 'c_wrapper'

I would appreciate any help.

Best regards,Martin Koch

Hey Martin,

"GenuineOptions" doesn't exist in the latest version (use latest Python version, ensure you're getting the latest TurboActivate integration from pypi). And use our latest examples. Old examples will not work (we made breaking changes when we took over the Python integration to solve inconsistencies in the version created independently).

So, the error is telling you exactly what is wrong.

>> "ModuleNotFoundError: No module named 'c_wrapper'"

Again, the error is telling you exactly what is wrong. You didn't include the 'c_wrapper.py' file. It's critical. It's also included. Don't exclude any files. They're all necessary.

Hallo Wyatt,

thanks for the quick response.

As for the old version which is linked in the tutorial: I did not exclude any files. I simply installed the downloaded python package as it was.

Regaring the new version: I did not know that there was a new example file. I found it now on GitHub.