[英]Parallel Port access through python
I am trying to run "parallel" package on my 64 bit system. 我试图在64位系统上运行“并行”程序包。
Import parallel
But I am getting this Error. 但我收到此错误。 I think this is some DLL problem, but don't know which DLL I need and where to keep them.
我认为这是一些DLL问题,但不知道我需要哪个DLL,以及在哪里保存它们。
My_Work\Signal_Generator_GUI\with_parallel.py", line 1, in <module>
import parallel
File "C:\Python27\lib\site-packages\parallel\__init__.py", line 13, in <module>
from parallel.parallelwin32 import Parallel # noqa
File "C:\Python27\lib\site-packages\parallel\parallelwin32.py", line 60, in <module>
_pyparallel = ctypes.windll.simpleio
File "C:\Python27\lib\ctypes\__init__.py", line 435, in __getattr__
dll = self._dlltype(name)
File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application
You need to install simpleio.dll . 您需要安装simpleio.dll 。 Here is a giveio installer .
这是一个Giveio安装程序 。 Also, please take a look at this thread for same problem and examples as well.
另外,请查看该线程以了解相同的问题和示例。 Finally, here is a github page discussing the same issue.
最后,这是讨论相同问题的github页面 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.