Code Monkey home page Code Monkey logo

Comments (15)

fenrus75 avatar fenrus75 commented on July 24, 2024

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

Thank you.

X forwarding of spyder3 works well on Fedora and Devuan, previous distros I have used.

Does it need libgl1-mesa-glx or libgl1-mesa-swx11?

Thank you again for your assistance and your super fast Linux distro .

from distribution.

ahkok avatar ahkok commented on July 24, 2024

I can't reproduce. Several things to note:

it's pip3 install spyder that installs spyder3. pip3 install spyder3 gives:

Collecting spyder3
  Could not find a version that satisfies the requirement spyder3 (from versions: )
No matching distribution found for spyder3

but spider works fine.

I used spyder3 directly, as well as over X11 forwarded over ssh (through ssh -Y localhost in my case) and in both cases spyder3 worked correctly.

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

@ahkok

You are correct about pip3 install spyder, I edited.

I tested with ssh -Y and that failed too.

Is there any way you can test it on two different machines, not through localhost?

Can I ask if you are using Intel or Nvidia video?

Thank you for your help.

from distribution.

ahkok avatar ahkok commented on July 24, 2024

Intel gfx in my case.

from distribution.

ahkok avatar ahkok commented on July 24, 2024

I can't quickly test from another machine, but the effect should be the same whether you ssh to localhost or somewhere far on the internet - the only difference is network lag.

does minetest work for you (games bundle)? That is a good test to see if OpenGL over X11 forwarding is fully functional. If you start a game, you can see in the window title what OpenGL version supported is, as well as get an idea of the supported frame rate. You won't get more than 1fps even over SSH to localhost, and the OpenGL fallback will drop down to version 2.1 as well, but that is to be expected.

I have to also note that we don't have any testing of the OSX X11 display capabilities - we test on ClearLinux and given my reproduction issues, all we can see is that it's fully functional.

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

but the effect should be the same whether you ssh to localhost or somewhere far on the internet

One would like to think so but with X I think it really needs to be tested.

we don't have any testing of the OSX X11 display capabilities

macOS X's client, XQuartz, is stable and open source. I have used this specific workflow with spyder3 over X from XQuartz on Ubuntu, Devuan, and Fedora servers, which leads me to believe it is not an XQuartz issue, but something with Clear Linux's Mesa implementation.

we test on ClearLinux

I am going to do some testing from other X clients, including from other ClearLinux and will report back shortly.

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

Running minetest over X crashes with similar messages as spyder3.

minetest crash log.txt

I ran Clear Linux in VirtualBox on macOS and was able to successfully, on the second try, run spyder3 over X on my other Clear Linux machine.

Try 1:
screen shot 2018-01-08 at 7 08 28 pm

Try 2: πŸ‘
screen shot 2018-01-08 at 7 10 17 pm

I still suspect there is something amiss in the Mesa/OpenGL setup on Clear Linux because none of the other distros I have tried have a problem with spyder3 over X from XQuartz.

from distribution.

ahkok avatar ahkok commented on July 24, 2024

The SSH client also comes into play, as it plays an important role in the X11 forwarding process. Since there is the ClearLinux ssh server and the MacOS ssh client, things could be wrong on either end (except it works clear-to-clear).

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

from distribution.

fenrus75 avatar fenrus75 commented on July 24, 2024

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

More attempted fixes through trial-and-error testing:

$ sudo swupd bundle-add os-testsuite-phoronix
$ export LIBGL_ALWAYS_INDIRECT=true
$ export LIBGL_ALWAYS_SOFTWARE=true
$ export LIBGL_DRIVERS_PATH=/usr/lib64:/usr/lib32/dri:/usr/lib32:/usr/lib64/haswell
$ sudo chmod 777 /usr/lib64/dri/swrast_dri.so
$ export LIBGL_DRI3_DISABLE=true

Modifying /usr/lib/python3.6/site-packages/spyder/app/start.py as recommended here.

Installing mesa and libglvnd from Linuxbrew and pointing LIBGL_DRIVERS_PATH=/home/linuxbrew/.linuxbrew/Cellar/mesa/17.2.3/lib.

My issue appears similar to this one here. This is a good example of people receiving other errors who are having issues with their Nvidia graphics. I have Intel graphics. According to Mesa documentation EGL should work fine with X and libGL DRI.

I may go back and take some logs on Fedora, which this is known to work on.

from distribution.

sirredbeard avatar sirredbeard commented on July 24, 2024

Closing for now.

from distribution.

betterze avatar betterze commented on July 24, 2024

any solution for this problem? I meet similar problem. I use ssh -cx server to conect to sever, create a virtual environment, pip3 install spyder. then i try path/spyder3 (for python3), it output

Unrecognized OpenGL version

However, when i try spyder, which use the system default spyder (python2), it works fine.

My code is in python3, so i need spyder with python3. And just change python path from version 2 to version 3 cause kernel in spyder.

Any solution for this?

from distribution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.