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

ComtradeRecord #19

Open carlosaenz26 opened 3 years ago

carlosaenz26 commented 3 years ago

Traceback (most recent call last): File "example1.py", line 36, in comtradeObj = pyComtrade.ComtradeRecord() AttributeError: module 'pyComtrade' has no attribute 'ComtradeRecord'

I get this error please advice

eric-silk commented 3 years ago

It seems this occurs when pip install from PyPI. If you clone the repo and install with

python3 -m pip install ./pycomtrade

you should be able to at least construct the ComtradeRecord object.

miguelmoreto commented 3 years ago

Hello @eric-silk and @carlosaenz26

Thanks for pointing out this. I will investigate.

Best regards!

askrajput commented 3 years ago

I am also facing the same issue. Please suggest solution.

vishnunaiir commented 2 years ago

This was because of version mismatch. When you do pip install pyComtrade, you get version 0.2.0 However the latest version on which this git and its documents and examples were built on are based out of version 0.3.0 To solve it, just pip install from git repo directly and you're good to go folks. try: pip install git+https://github.com/miguelmoreto/pycomtrade.git#egg=pyComtrade

Change the link to git repo accordingly and don't forget to include #egg=pyComtrade in the end for easier setup.

Best wishes!