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

error when running example/nx_app.py when only grapheditor is installed #10

Closed
baugetfa opened this issue Feb 24, 2023 · 3 comments
Closed
Labels
bug Something isn't working
Projects

Comments

@baugetfa
Copy link
Contributor

After creating an environment as follow:

conda create -n grapheditor python=3.9 openalea.grapheditor networkx -c openalea3 -c conda-forge

Then running python nx_app.py leads to the following error:

Traceback (most recent call last):
  File "/home/fabrice/miniconda3/envs/grapheditor/lib/python3.9/site-packages/qtpy/__init__.py", line 252, in <module>
    from PySide6 import __version__ as PYSIDE_VERSION  # analysis:ignore
ModuleNotFoundError: No module named 'PySide6'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/fabrice/Documents/Openalea_Dev/grapheditor/examples/networkx/nx_app.py", line 15, in <module>
    from openalea.grapheditor.all import  Observed, GraphAdapterBase
  File "/home/fabrice/miniconda3/envs/grapheditor/lib/python3.9/site-packages/OpenAlea.GraphEditor-2.2.0-py3.9.egg/openalea/grapheditor/all.py", line 21, in <module>
    from openalea.grapheditor.edgefactory import LinearEdgePath, SplineEdgePath
  File "/home/fabrice/miniconda3/envs/grapheditor/lib/python3.9/site-packages/OpenAlea.GraphEditor-2.2.0-py3.9.egg/openalea/grapheditor/edgefactory.py", line 22, in <module>
    from qtpy import QtCore, QtGui
  File "/home/fabrice/miniconda3/envs/grapheditor/lib/python3.9/site-packages/qtpy/__init__.py", line 259, in <module>
    raise QtBindingsNotFoundError()
qtpy.QtBindingsNotFoundError: No Qt bindings could be found

Note that this error does not happen when we create a full visualea environment:

conda create -n visualea2 openalea.visualea openalea.plantgl networkx -c openalea3 -c conda-forge

That probably come from the vpltk removing.

@baugetfa baugetfa added this to todo in Visualea via automation Feb 24, 2023
@baugetfa baugetfa added the bug Something isn't working label Feb 24, 2023
@pradal
Copy link
Contributor

pradal commented Feb 24, 2023

It misses pyqt that may be installed by qtconsole

@baugetfa
Copy link
Contributor Author

Ok. This is it, but would have expect qtconsole in the dependencies. Well I will update the readme and add qtconsole to the installation lines.

@baugetfa
Copy link
Contributor Author

Readme updated with qtconsole to be installed

Visualea automation moved this from todo to Done Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants