2019-07-09 00:09:53 (edited by goran 2019-07-09 00:11:02)

Hi,
Despite having the required files in the same directory as my file, I get this error when I try to import tolk:

Traceback (most recent call last):                                             
  File "test.py", line 1, in <module>                                           
    import Tolk                                                                 
  File "D:\programming\Tolk.py", line 11, in <module>                           
    _tolk = cdll.Tolk                                                           
  File "C:\python\373\lib\ctypes\__init__.py", line 426, in __getattr__         
    dll = self._dlltype(name)                                                   
  File "C:\python\373\lib\ctypes\__init__.py", line 356, in __init__           
    self._handle = _dlopen(self._name, mode)                                   
OSError: [WinError 193] %1 is not a valid Win32 application                     

I'm using python 3.7 in case if that matters. What can I do to fix this?
Thanks in advance.

Thumbs up

2019-07-09 00:36:45

is tolk.dll 32 bit?

if you wish,  you could give a look at my github profile.
If you want to get in touch with me you can follow me on Twitter
have a nice day.
Paul

2019-07-09 01:21:00 (edited by goran 2019-07-09 01:22:14)

yes it was, but I think it had something to do with my laptop blocking the tolk-related files since they wer downloaded. I unblocked all the files and it's now working fine.
Thanks though smile

Thumbs up