rwl / pylon

Port of MATPOWER to Python.
http://rwl.github.com/pylon
Apache License 2.0
29 stars 10 forks source link

pylon case #3

Open luistrebejo opened 13 years ago

luistrebejo commented 13 years ago

import sys import logging import pylon logging.basicConfig(stream=sys.stdout, level=logging.debug) case=pylon.Case.load_Matpower("c:\data\case30pwl.m")

Traceback (most recent call last): File "<pyshell#4>", line 1, in case=pylon.Case.load_Matpower("c:\data\case30pwl.m") AttributeError: type object 'Case' has no attribute 'load_Matpower'

luistrebejo commented 13 years ago

import sys import logging import pylon logging.basicConfig(stream=sys.stdout,level=logging.debug) case = pylon.Case.load_matpower("c:\data\case30pwl.m")

Traceback (most recent call last): File "<pyshell#4>", line 1, in case = pylon.Case.load_matpower("c:\data\case30pwl.m") File "build\bdist.win32\egg\pylon\case.py", line 937, in load_matpower return MATPOWERReader().read(fd) File "build\bdist.win32\egg\pylon\io\matpower.py", line 82, in read case = self._parse_file(file) File "build\bdist.win32\egg\pylon\io\matpower.py", line 115, in _parse_file case.base_mva = float(case_data[-1]) ValueError: invalid literal for float(): 100;

danielfms commented 8 years ago

$pylon --help

Traceback (most recent call last): File "/usr/bin/pylon", line 9, in load_entry_point('Pylon==0.4.4', 'console_scripts', 'pylon')() File "/usr/lib/python3.5/site-packages/setuptools-21.1.0-py3.5.egg/pkg_resources/init.py", line 542, in load_entry_point File "/usr/lib/python3.5/site-packages/setuptools-21.1.0-py3.5.egg/pkg_resources/init.py", line 2569, in load_entry_point File "/usr/lib/python3.5/site-packages/setuptools-21.1.0-py3.5.egg/pkg_resources/init.py", line 2229, in load File "/usr/lib/python3.5/site-packages/setuptools-21.1.0-py3.5.egg/pkg_resources/init.py", line 2235, in resolve File "/usr/lib/python3.5/site-packages/Pylon-0.4.4-py3.5.egg/pylon/init.py", line 17, in ImportError: No module named 'case'