anyQt.py line 20 last argument seems invalid in py3.3

Bug #1090985 reported by alonso patrick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hive system
Fix Released
Critical
Sjoerd de Vries
Spyder
Fix Released
Critical
Sjoerd de Vries

Bug Description

I was testing Hive system 0.90.
When I run any gui (hive, worker), I have the same python error about a wrong value and 'level'

In spyder\qtform\anyQt.py

_qtmod = __import__(_qt, globals(), locals(), names, -1)

I've changed the last value to 0 and the GUIs work fine but when I load a map : errors.
I don't know if the last errors are related to this bug as I don't know if the 0 value is really the right one.
I'm not a real coder : )

Revision history for this message
alonso patrick (patsoko) wrote :

I just read that the tetris hivemap was not loadable so you can forget the errors about maps.

Revision history for this message
Sjoerd de Vries (sjdv1982) wrote :

The 0 value is indeed the correct one for Python 3.3 (the __import__ function was changed in Python 3.3).

I will update it asap . If you can post the other errors, I will fix them too :)

Revision history for this message
Sjoerd de Vries (sjdv1982) wrote :

tetris.hivemap should be loadable in HiveGUI... what is your error message?

Revision history for this message
alonso patrick (patsoko) wrote :

*** With hivegui I load tetrishive.hivemap:

In the console:
Warning: cannot locate pygments library. Python syntax highlighting disabled
Unknown worker: hivemaps:tetrismain.hivemap tetrismain

Visually:
- I have nodes ( canvas, wasp_9, aa_area etc... ) but no connections between them.
- In the workers menu on the left I have, under bees, parameter/part/pyattribute/wasp/attribute
- In the drones menu, nothing.

In the hivemaps folder, I have errors too when loading maps.

with tetris_draw.hivemap:

C:\Python33\Scripts>python hivegui.py
Warning: cannot locate pygments library. Python syntax highlighting disabled
Unknown worker: dragonfly.std.transistor copy_maingrid
Unknown worker: dragonfly.std.transistor do_draw
Unknown worker: dragonfly.std.variable drawgrid
Unknown worker: dragonfly.grid.bgridcontrol drawgridcontrol
Unknown worker: dragonfly.grid.bgridcontrol maingridcontrol
Unknown worker: dragonfly.std.transistor t_blockgrid
Unknown worker: dragonfly.std.pushconnector trigger
Unknown worker: dragonfly.canvas.update3 update
Unknown worker: dragonfly.canvas.draw3 w_draw
Traceback (most recent call last):
  File "C:\Python33\Lib\site-packages\hiveguilib\HivemapManager.py", line 453, in menu_load self.load(hivemapfile)
  File "C:\Python33\Lib\site-packages\hiveguilib\HivemapManager.py", line 214, in load self._load(hivemap)
  File "C:\Python33\Lib\site-packages\hiveguilib\HivemapManager.py", line 100, in _load interpoints,
  File "C:\Python33\Lib\site-packages\hiveguilib\worker\WorkerInstanceManager.py", line 139, in add_connection
    wi_start = self._workerinstances[start_id]
KeyError: 'do_draw'

Revision history for this message
Sjoerd de Vries (sjdv1982) wrote :

Those are indeed errors in the Hive system code. I managed to reproduce the error, and I managed to fix them. I will update the installers for Hive and Spyder asap.

Revision history for this message
Sjoerd de Vries (sjdv1982) wrote :

Fixes have been now committed to trunk and released as Spyder 3.2.1 and Hive 0.90a2, tested under Python3.3+Pyside under my Windows machine. I am closing this bug as "fixed", let me know if errors persist.

Changed in spyder-framework:
importance: Undecided → Critical
assignee: nobody → Sjoerd de Vries (sjdv1982)
Changed in hivesystem:
importance: Undecided → Critical
assignee: nobody → Sjoerd de Vries (sjdv1982)
Changed in spyder-framework:
status: New → Fix Released
Changed in hivesystem:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.