Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'pythoncom' is not defined #8

Open
baoliwen929 opened this issue Oct 21, 2018 · 2 comments
Open

NameError: name 'pythoncom' is not defined #8

baoliwen929 opened this issue Oct 21, 2018 · 2 comments

Comments

@baoliwen929
Copy link

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
Copy link
Owner

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
Copy link

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 :

  • Install pywin32.
  • Copy the files from pywin32_system32 path to win32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants