Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'dict' object is not callable #1

Closed
luistrebejo opened this issue Apr 22, 2011 · 4 comments
Closed

TypeError: 'dict' object is not callable #1

luistrebejo opened this issue Apr 22, 2011 · 4 comments

Comments

@luistrebejo
Copy link

from pypower.case24_ieee_rts import case24_ieee_rts
from pypower.runpf import runpf

c = case24_ieee_rts()
results, success = runpf(c)

Traceback (most recent call last):
File "<pyshell#13>", line 1, in
results, success = runpf(c)
File "build\bdist.win32\egg\pypower\runpf.py", line 79, in runpf
ppopt = ppoption() if ppopt is None else ppopt
TypeError: 'dict' object is not callable

Somebody could you help me?

@rwl
Copy link
Owner

rwl commented Apr 22, 2011

Fixed in commit cc63097.

However, the next error will have to wait until the new case class is working.

http://github.com/rwl/PYPOWER/blob/master/pypower/case.py

@rwl rwl closed this as completed Apr 22, 2011
@luistrebejo
Copy link
Author

wHAT WAS THE ERROR?

@luistrebejo
Copy link
Author

I have pypower installed in a egg file, what can i do in order to add the
case.py

On Fri, Apr 22, 2011 at 2:11 PM, rwl <
reply@reply.github.com>wrote:

Fixed in commit cc63097.

However, the next error will have to wait until the new case class is
working.

http://github.com/rwl/PYPOWER/blob/master/pypower/case.py

Reply to this email directly or view it on GitHub:
#1 (comment)

@rwl
Copy link
Owner

rwl commented Apr 22, 2011

You need to learn how to develop the source code. Remove the old egg and do something like:

$ git clone git://github.com/rwl/PYPOWER.git
$ cd PYPOWER
$ python setup.py develop

or just add the PYPOWER directory to your PYTHONPATH.

Then when changes are available on GitHub you can just do:

$ git pull origin master

charlie0389 pushed a commit to charlie0389/PYPOWER that referenced this issue Dec 9, 2014
…hon 3 compatible. Fix rwl#2 is to make runpf.py match documentation - i.e. output to a file does NOT overwrite, it is appended.
rwl added a commit that referenced this issue Dec 9, 2014
Fixed two problems. Fix #1 was to make printpf.py python 2 and python 3 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants