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
qt.qpa.plugin problem #765
Comments
Same problem here. |
I met the same problem, have you solved it? |
@vandeppce can you give us some more information about your environment? Are you working on a headless machine? What apt/OS packages did you install/are already installed. This looks similar to an error we saw in other enthought open source packages on travis CI machines. We were able to fix those issues by installing additional apt packages. See https://github.com/enthought/envisage/blob/23ea9885a75044395942305c1f9edee077a9ffcd/.travis.yml#L9-L15 |
I ssh to a server. My environment are as follows:
When I set QT_DEBUG_PLUGINS="1", no lib* packages uninstalled errors raised, it just says that "qt.qpa.xcb: could not connect to display |
@vandeppce I edited your comment with minor formatting. I hope you don't mind. |
Of course not. I have been trapped in this problem for several days, could you please give me some idea on it? Is it a qt problem, or a mayavi problem? By the way, I used it in a Docker container, on a Jupyter Notebook. |
Can you tell us what happens if you run the following commands - Also, I'm not sure how you are interacting with the notebook in the container - are you setting up an X server? Are you explicitly using the null backend or using offscreen rendering? |
Thanks for your reply. I can not run the above commands, because I can not import mayavi.mlab successfully. I interact with the notebook in the container with a browser, I do not set up an X server, maybe it is the reason? I successfully install mayavi on my Mac osx laptop, but I still wonder the reason for why it failed in the container. |
I have the same error? Is there anyone knowing how to solve this problem |
I have the same issue
Any tips? |
miniconda environment with python 3.7, mayavi 4.7.1: same error when importing mlab
any help is appreciated |
If you import multiple packages in your .py script, you may try import mayavi at the first place.
to
the issue disappeared. |
I solved this problem by “sudo apt-get install libxcb-xinerama0” |
changing the order did fix the issue for me |
I have had this issue for a week now and nothing helped -- until I ran "sudo apt-get install libxcb-xinerama0"! Thanks a lot @QYWT |
I was not expecting the QT display to work anyway on a headless server, but the hard 'abort' crash is brutal and there should be a recoverable state. I know this is probably easier said than done.
|
I installed PyQt 5.14.2 as a workaround as suggested in tasmota/tasmotizer#71 since I am still on Debian Buster. It works for me now. |
This worked for me. |
I have this same issue with importing mlab on headless Debian 5.15 using conda. The suggested fixes here don't work (fails on import of mlab so ordering not the problem and already have Does anyone have any other suggestions? |
I fixed this by running |
Hello i tried to make instalation inside virtualenv with python 3.6.7, Here the steps i made:
pip install mayavi
- successpip install PyQt5
- successpip install pysurfer
- successjupyter nbextension install --py mayavi --user
jupyter nbextension install --py mayavi --user
Then in Ipython is try next:
And the error is:
How to resolve it?
The text was updated successfully, but these errors were encountered: