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
Add support for PyQt4 and PyQt5 by using Qt.py shim #368
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pymor/pymor-devs, could you check if the gui stuff is still working for you with this PR? |
Executing the following: virtualenv --system-site-packages -p python3 venv
. venv/bin/activate
git clone https://github.com/pymor/pymor.git
cd pymor
git checkout qt_py
pip install -r requirements.txt
pip install -r requirements-optional.txt
cd src
echo $PWD > "$(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')/pymor.pth"
python setup.py build_ext --inplace
cd pymordemos
./thermalblock_gui.py gives the following error: Traceback (most recent call last):
File "./thermalblock_gui.py", line 46, in <module>
from Qt import QtWidgets
ModuleNotFoundError: No module named 'Qt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./thermalblock_gui.py", line 48, in <module>
raise QtMissing()
pymor.core.exceptions.QtMissing: cannot visualize: import of Qt bindings failed I am obviously missing something... |
Works fine for me. |
renefritze
approved these changes
May 9, 2017
I get the same error without alabaster==0.7.10
appdirs==1.4.3
Babel==2.4.0
coverage==4.4
cycler==0.10.0
Cython==0.25.2
decorator==4.0.11
docopt==0.6.2
docutils==0.13.1
evtk==1.0.1
imagesize==0.7.1
ipykernel==4.6.1
ipyparallel==6.0.2
ipython==6.0.0
ipython-genutils==0.2.0
jedi==0.10.2
Jinja2==2.9.6
jupyter-client==5.0.1
jupyter-core==4.3.0
MarkupSafe==1.0
matplotlib==2.0.1
mpi4py==2.0.0
numpy==1.12.1
olefile==0.44
packaging==16.8
pexpect==4.2.1
pickleshare==0.7.4
Pillow==4.1.1
prompt-toolkit==1.0.14
ptyprocess==0.5.1
py==1.4.33
pyamg==3.2.1
Pygments==2.2.0
PyOpenGL==3.1.0
pyparsing==2.2.0
pytest==3.0.7
pytest-cov==2.4.0
pytest-runner==2.11.1
python-dateutil==2.6.0
pytz==2017.2
pyzmq==16.0.2
requests==2.13.0
scipy==0.19.0
simplegeneric==0.8.1
six==1.10.0
snowballstemmer==1.2.1
Sphinx==1.5.5
tornado==4.5.1
traitlets==4.3.2
wcwidth==0.1.7 |
Following @sdrave suggestions, virtualenv -p python3.6 venv
. venv/bin/activate
pip install git+https://github.com/pymor/pymor@qt_py
git clone https://github.com/pymor/pymor.git
cd pymor/src/pymordemos
git checkout qt_py
./thermalblock_gui.py yields Traceback (most recent call last):
File "./thermalblock_gui.py", line 40, in <module>
import OpenGL
ModuleNotFoundError: No module named 'OpenGL'
|
Works on @ftalbrecht's machine as well .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.