miguelmoreto / pycomtrade

pyComtrade is a python module that provides you a transparent way for reading and writing oscillographic files in Comtrade format
http://pypi.python.org/pypi/pyComtrade
GNU General Public License v3.0
31 stars 30 forks source link

AttributeError: 'module' object has no attribute 'ComtradeRecord' #15

Closed Skucul closed 7 years ago

Skucul commented 7 years ago

I'm trying start using pyComtrade but example 3 crash. I used Python 3.4.4 [MSC v.1600 32 bit (Intel)] on win32

ldemattos commented 7 years ago

@Skucul , hi!

pyComtrade is developed with python2. Please, give a try with this version.

Best regards.

Skucul commented 7 years ago

I converted pyComtrade.py (2to3 tool) and now is working!

Gseguelg commented 5 years ago

@Skucul can you make a pull request about that?

I found same problem under linux for Python 3.6.8 (installed by pip):

>>> import pyComtrade
>>> comtradeObj = pyComtrade.ComtradeRecord('./test_data3/test3.cfg')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pyComtrade' has no attribute 'ComtradeRecord'