rwl / pylon

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

NameError: name 'Network' is not defined #1

Closed certik closed 15 years ago

certik commented 15 years ago

$ pylon Traceback (most recent call last): File "/home/ondrej/usr/bin/pylon", line 8, in load_entry_point('Pylon==0.2.2', 'console_scripts', 'pylon')() File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 277, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2180, in load_entry_point return ep.load() File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1913, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/home/ondrej/usr/lib/python/Pylon-0.2.2-py2.6.egg/pylon/main.py", line 34, in from pylon.readwrite.api \ File "/home/ondrej/usr/lib/python/Pylon-0.2.2-py2.6.egg/pylon/readwrite/api.py", line 34, in from pickle_reader import PickleReader File "/home/ondrej/usr/lib/python/Pylon-0.2.2-py2.6.egg/pylon/readwrite/pickle_reader.py", line 38, in class PickleReader(object): File "/home/ondrej/usr/lib/python/Pylon-0.2.2-py2.6.egg/pylon/readwrite/pickle_reader.py", line 45, in PickleReader network = Network NameError: name 'Network' is not defined

certik commented 15 years ago

Patch sent in private email.

rwl commented 15 years ago

Thank you for raising this issue. The majority of work on Pylon is currently being carried out under the 'pure' branch which has no Traits dependencies. This will replace the master branch when I have had time to create a separate project with a GUI based on the Traits code.

algomaschine commented 2 years ago

from pyvis.network import Network # this helps it net = Network()