[nengo-user] nengo - JComponent not defined

Trevor Bekolay tbekolay at gmail.com
Sun Feb 1 15:28:31 EST 2015


Okay, I've tracked down the issue. It seems as though something changed
(either with Java or Jython, hard to say) such that JComponent is no longer
imported with `from javax.swing import *`. Now, it is necessary to
explicitly do `from javax.swing import JComponent`.

I've made that change in Nengo 1.4 master, so the development version
listed on http://nengo.ca/download contains this change and should work
with Java 8u31.

Édi, if you don't want to reinstall Nengo, then you can open up the file
`python/space.py` in the nengo directory and add the following line
somewhere near the top, with the other import statements:

from javax.swing import JComponent

Thanks for the bug report! Hopefully this fixes the issue for you :)

- Trevor

On Sun, Feb 1, 2015 at 2:00 PM, Trevor Bekolay <tbekolay at gmail.com> wrote:

> Hi Édi,
>
> Glad to hear you're interested in Nengo :) I just installed Java 8 update
> 31 and I'm having the same issue. JComponent, which is what seems to be
> missing, should be part of javax.swing, which is imported in that
> `space.py` file. It seems that the recent Java update may have removed
> JComponent, for some reason, or perhaps Jython is having problems accessing
> it. In either case, this seems like a problem on our end (or on Java's end)
> so I'll investigate this immediately and get back to you as soon as I know
> what's wrong.
>
> In the meantime, if you just want to get things working, you can install
> an older version of Java (e.g., Java SE 7 at
> http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
> )
>
> - Trevor
>
> On Sun, Feb 1, 2015 at 10:15 AM, Édi Kettemann <edikettemann at gmail.com>
> wrote:
>
>> Good afternoon,
>>
>> I'm introducing myself into the Neural Engineering Framework using Nengo
>> framework, to present it to my colleagues from the HPSN at the TU-Dresden (
>> http://hpsn.et.tu-dresden.de/index.php?id=4&L=1&type=0 ).
>>
>> When I try to call the "Interactive Plots" I get this error message:
>>
>> [image: Imagem intercalada 1]
>>
>> I'm running Nengo on Windows 8.1. I have python 2.7 and Java 8 update 31
>> installed on my computer. Is it possible that I'm missing any package? I
>> tried to find any post reporting this error, but couldn't find anything.
>>
>> I appreciate in advance for your help.
>>
>> Kind regards,
>> Édi Kettemann
>>
>> _______________________________________________
>> nengo-user mailing list
>> nengo-user at ctnsrv.uwaterloo.ca
>> http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://artsservices.uwaterloo.ca/pipermail/nengo-user/attachments/20150201/3f231f9e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nengo.png
Type: image/png
Size: 12454 bytes
Desc: not available
URL: <http://artsservices.uwaterloo.ca/pipermail/nengo-user/attachments/20150201/3f231f9e/attachment-0002.png>


More information about the nengo-user mailing list