Skip to content

UnexpectedInvocationError with colorsketch.py included example #5

Closed
lonnen opened this Issue Sep 14, 2010 · 5 comments

2 participants

@lonnen
lonnen commented Sep 14, 2010

[edit: trying to get better formatting with markdown]
Stacktrace:

Exception in thread "main" Traceback (most recent call last):
File "/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/colorsketch.py", line 5, in <module>
from namethatcolor import NameThatColor
  File "/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/namethatcolor/__init__.py", line 2, in <module>
    from NameThatColor import NameThatColor
  File "/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/namethatcolor/NameThatColor.py", line 11, in <module>
    ColorInfo = namedtuple('ColorInfo',
  File "/Users/lonnen/Documents/Projects/processing.py/processing-py.jar/Lib/collections/__init__.py", line 38, in namedtuple
jycessing.UnexpectedInvocationError: I don't know how to handle a call to min(<type 'generator'>
If "min" is a Python builtin, please report this to the processing.py project as a bug!
        at jycessing.DriverImpl$186.__call__(Unknown Source)
at org.python.core.PyObject.__call__(PyObject.java:387)
at org.python.core.PyObject.__call__(PyObject.java:391)
at collections$py.namedtuple$1(/Users/lonnen/Documents/Projects/processing.py/processing-py.jar/Lib/collections/__init__.py:100)
at collections$py.call_function(/Users/lonnen/Documents/Projects/processing.py/processing-py.jar/Lib/collections/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:141)
at org.python.core.PyFunction.__call__(PyFunction.java:327)
at namethatcolor.NameThatColor$py.f$0(/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/namethatcolor/NameThatColor.py:179)
at namethatcolor.NameThatColor$py.call_function(/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/namethatcolor/NameThatColor.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:383)
at org.python.core.imp.createFromSource(imp.java:346)
at org.python.core.imp.loadFromSource(imp.java:571)
at org.python.core.imp.find_module(imp.java:468)
at org.python.core.PyModule.impAttr(PyModule.java:97)
at org.python.core.imp.import_next(imp.java:694)
at org.python.core.imp.import_name(imp.java:803)
at org.python.core.imp.importName(imp.java:863)
at org.python.core.ImportFunction.__call__(__builtin__.java:1212)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1164)
at org.python.core.imp.importFromAs(imp.java:941)
at org.python.core.imp.importFrom(imp.java:917)
at namethatcolor$py.f$0(/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/namethatcolor/__init__.py:2)
at namethatcolor$py.call_function(/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/namethatcolor/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:383)
at org.python.core.imp.createFromSource(imp.java:346)
at org.python.core.imp.loadFromSource(imp.java:571)
at org.python.core.imp.find_module(imp.java:468)
at org.python.core.imp.import_next(imp.java:692)
at org.python.core.imp.import_name(imp.java:803)
at org.python.core.imp.importName(imp.java:863)
at org.python.core.ImportFunction.__call__(__builtin__.java:1212)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1164)
at org.python.core.imp.importFromAs(imp.java:941)
at org.python.core.imp.importFrom(imp.java:917)
at org.python.pycode._pyx0.f$0(/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/colorsketch.py:13)
at org.python.pycode._pyx0.call_function(/Users/lonnen/Documents/Projects/processing.py/examples.py/Python/colornames/colorsketch.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1253)
at org.python.core.Py.exec(Py.java:1297)
at jycessing.PAppletJythonDriver.interpretSketch(Unknown Source)
at jycessing.PAppletJythonDriver.<init>(Unknown Source)
at jycessing.DriverImpl.<init>(Unknown Source)
at jycessing.Runner.runSketch(Unknown Source)
at jycessing.Runner.main(Unknown Source)

jycessing.UnexpectedInvocationError: jycessing.UnexpectedInvocationError: I don't know how to handle a call to min(<type 'generator'>
If " min" is a Python builtin, please report this to the processing.py project as a bug!
@jdf
Owner
jdf commented Sep 14, 2010

Hmm, it works for me. Are you maybe using an old build?

@lonnen
lonnen commented Sep 14, 2010

A git pull claims I am "Already up-to-date."

@jdf
Owner
jdf commented Sep 14, 2010

Can you do this for me?

feinberg@phil:/opt/feinberg/processing.py$ git pull
Already up-to-date.
feinberg@phil:/opt/feinberg/processing.py$ ant
Buildfile: build.xml

generate-driver:

build:
    [javac] Compiling 1 source file to /opt/feinberg/processing.py/bin

jar:
      [jar] Building jar: /opt/feinberg/processing.py/processing-py.jar

BUILD SUCCESSFUL
Total time: 12 seconds
feinberg@phil:/opt/feinberg/processing.py$ java -jar processing-py.jar examples.py/Python/colornames/colorsketch.py 
feinberg@phil:/opt/feinberg/processing.py$ 
@lonnen
lonnen commented Sep 14, 2010

Rebuilt with ant and it gave me a strange unresolved compilation problem. Deleted the repo, cloned a fresh copy, ran ant, and everything worked. Thanks!

@jdf
Owner
jdf commented Sep 14, 2010

Ugh, but glad it worked!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.