forked from openalea/openalea
-
Notifications
You must be signed in to change notification settings - Fork 0
todo
Guillaume Baty edited this page Apr 20, 2015
·
1 revision
la fenêtre n'est plus selectionnable, plusieurs tab semble poser des pb)
check unicity ?
def test_not_saved_project(self):
new_project = Project(self.tmpdir / 'NEW_PROJECT', alias='test')
model = new_project.add('model', filename='model.py', content='print(1)')
assert new_project.path.exists() is False
assert 'model.py' in new_project.model
model.save()
ouvrir toolbox plant, supprm lineage, relancer -> crash
ajiouter apply pour les controles lourd
ajouter "voulez vous sauver les models avant de quitter"
Crash New layout du à un crash de matplotlib:
backends/backend_agg.py
def get_renderer(self, cleared=False):
l, b, w, h = self.figure.bbox.bounds
key = w, h, self.figure.dpi
try: self._lastKey, self.renderer
except AttributeError: need_new_renderer = True
else: need_new_renderer = (self._lastKey != key)
if need_new_renderer:
self.renderer = RendererAgg(w, h, self.figure.dpi) # <------------------------------------------- segfault ici
self._lastKey = key
elif cleared:
self.renderer.clear()
return self.renderer
Passe avec matplotlib système mais message d'erreur:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_qt4.py", line 299, in resizeEvent
self.draw()
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_qt4agg.py", line 154, in draw
FigureCanvasAgg.draw(self)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 446, in draw
self.renderer = self.get_renderer(cleared=True)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 465, in get_renderer
self.renderer = RendererAgg(w, h, self.figure.dpi)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 84, in __init__
self._renderer = _RendererAgg(int(width), int(height), dpi, debug=False)
ValueError: width and height must each be below 32768
Traceback (most recent call last):
File ".../oalab/src/openalea/oalab/gui/splittablewindow.py", line 871, in _onSplitRequest
SplittableUI._onSplitRequest(self, paneId, orientation, amount)
File ".../oalab/src/openalea/oalab/gui/splitterui.py", line 716, in _onSplitRequest
self.splitPane(fake, paneId, orientation, amount)
File ".../oalab/src/openalea/oalab/gui/splitterui.py", line 477, in splitPane
self.computeGeoms(paneId)
File ".../oalab/src/openalea/oalab/gui/splitterui.py", line 558, in computeGeoms
self._g.visit_i_breadth_first(visitor, baseNode)
File ".../oalab/src/openalea/oalab/gui/splitterui.py", line 311, in visit_i_breadth_first
ignoreFirst, ignoreSecond = visitor.visit(currNode)
File ".../oalab/src/openalea/oalab/gui/splitterui.py", line 885, in visit
direction = self.g.get_property(vid, "splitDirection")
File ".../oalab/src/openalea/oalab/gui/splitterui.py", line 276, in get_property
raise BinaryTree.PropertyException(vid, key)
openalea.oalab.gui.splitterui.PropertyException: No splitDirection for node 2
Traceback (most recent call last):
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/container.py", line 546, in step
self.currentWidget().applet.step()
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/paradigm/controller.py", line 136, in step
return self.model.step(nstep=nstep)
TypeError: step() got an unexpected keyword argument 'nstep'
Traceback (most recent call last):
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/container.py", line 391, in new_file
category, data = self.add(self.project(), name, code='', dtype=dtype, category=category)
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/container.py", line 398, in add
dtypes = [ModelClass.default_name for ModelClass in plugins('oalab.modelclass')]
AttributeError: type object 'PythonModel' has no attribute 'default_name'
Traceback (most recent call last):
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/splittablewindow.py", line 962, in _on_focus_changed
new.setFocus(QtCore.Qt.OtherFocusReason)
RuntimeError: wrapped C/C++ object of type BigToolButton has been deleted
Erreur de segmentation
File "/home/user/local/bin/oalab", line 9, in <module>
load_entry_point('OpenAlea.OALab==0.0.2', 'gui_scripts', 'oalab')()
File "/home/user/openalea-git/oalab/src/openalea/oalab/main2.py", line 104, in main
app.exec_()
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/container.py", line 546, in run
self.currentWidget().applet.run()
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/paradigm/controller.py", line 131, in run
return self.model.run(*args, **self.namespace(**kwargs))
File "/home/user/openalea-git/core/src/core/model.py", line 292, in run
self.init(*args, **kwds)
File "/home/user/openalea-git/core/src/core/model.py", line 222, in init
self._run_code(self._code['init'])
File "/home/user/openalea-git/core/src/core/model.py", line 166, in _run_code
self.interp.run_cell(code)
File "/home/user/openalea-git/core/src/core/interpreter/ipython.py", line 42, in run_cell
return self.shell.run_cell(*args, **kwargs)
File ".../IPython/core/interactiveshell.py", line 2741, in run_cell
interactivity=interactivity, compiler=compiler)
File ".../IPython/core/interactiveshell.py", line 2827, in run_ast_nodes
if self.run_code(code):
File ".../IPython/core/interactiveshell.py", line 2880, in run_code
traceback.print_stack()
helloTraceback (most recent call last):
File ".../IPython/core/interactiveshell.py", line 2885, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-1-64d446a507bd>", line 2, in <module>
a = raw_input("hello")
EOFError: EOF when reading a line
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2883, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<string>", line 6, in <module>
NameError: name 'i' is not defined
Traceback (most recent call last):
File "/home/user/openalea-git/oalab/src/openalea/oalab/project/projectwidget.py", line 543, in save
self.paradigm_container.save_all()
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/container.py", line 418, in save_all
self.save()
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/container.py", line 257, in save
obj = self._open_tabs[tab]
KeyError: <openalea.oalab.gui.pages.WelcomePage2 object at 0x7f88918c62b0>
Traceback (most recent call last):
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/container.py", line 425, in run
self.currentWidget().applet.run()
File "/home/user/openalea-git/oalab/src/openalea/oalab/gui/paradigm/lpy.py", line 177, in run
ret = self.model(*args, **kwargs)
File "/home/user/openalea-git/vpltk/src/openalea/vpltk/datamodel/model.py", line 87, in __call__
return self.run(*args, **kwargs)
File "/home/user/openalea-git/oalab/src/openalea/oalab/model/lpy.py", line 145, in run
self.lsystem.setCode(str(self.code), self.context)
File "<string>", line 5, in <module>
NameError: name 'curve' is not defined
Traceback (most recent call last):
File "/home/user/openalea-git/oalab/src/openalea/oalab/editor/text_editor.py", line 317, in insertFromMimeData
varname = '_'.join(data.name.split())
AttributeError: 'NoneType' object has no attribute 'name'