Найти - Пользователи
Полная версия: global name 'pythoncom' is not defined
Начало » Python для новичков » global name 'pythoncom' is not defined
1
aliennick
здравствуйте. помогите обойти проблему. пытался для одной задачки использовать OpenOPC по этой инструкции

http://openopc.sourceforge.net/api.html

получил вот что:

opc = OpenOPC.client()
File “/home/OpenOPC.py”, line 152, in __init__
pythoncom.CoInitialize()
NameError: global name ‘pythoncom’ is not defined

где скачать и как установить этот pythoncom?
я работаю на ubuntu 14.04 x64. это к тому, что читая про решение проблемы пишут про модуль pywin… вот не очень понял для виндовс он или нет…



спасибо.
Metallikus
Ты используешь OPC-DA (Win32 COM-based)
Тебе нужна OPC XML-DA. Используй PyOPC
aliennick
спасибо. буду пробовать
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB