ya-mouse / openopc

OpenOPC for Python3.4
Other
48 stars 56 forks source link

NameError: name 'pythoncom' is not defined #8

Open baoliwen929 opened 6 years ago

baoliwen929 commented 6 years ago

PlatForm : Windows 7 X64 , Python version : 3.7 when I use : import OpenOPC opc = OpenOPC.client() Pycharm raise an error "NameError: name 'pythoncom' is not defined".

ya-mouse commented 6 years ago

Regarding to https://stackoverflow.com/questions/4145079/importerror-no-module-named-pythoncom you need to either install ActivePython or install the missed module separately from git

joaoemilioml commented 5 years ago

OpenOPC seems to only work for x86 python. If you don't have it, you should install it and run the code from it. Then you should :