Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Issue with ctypes

#1
Hello,

I have a robot type that isn't listed on RoboDK, however I have an aftermarket controller that runs with VB or Python, C#, C++. It currently works with a Basic program and I would like to upgrade to RoboDK using python.

Attached is the python test file, which starts with the operating environment. When the program is run it comes up with the following error:

Traceback (most recent call last):
File "C:\Users\Terry\Documents\Laser Cladding Services\Robot Welding Machines\Zmotion Controller\Python programs\python\CreatPython\test.py", line 8, in
zauxdll = ctypes.WinDLL('./zauxdll64.dll')
File "C:\RoboDK\Python37\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

As the computer been used is always a Windows x64 based system and not MAC or Linux can the test.py file be modified so there is no error code? Any suggestions would be appreciated.

Thanks, Terry


Attached Files
.py test.py(Size: 6.47 KB / Downloads: 153)
#2
You are trying to load a DLL that is probably not found with your environment.

You can select your Python interpreter here:
  1. Tools-Options
  2. Select Python tab
Make sure you are using a 32 bit version of Python if you are trying to load a 32 bit DLL.




Users browsing this thread:
1 Guest(s)