cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
311 stars 157 forks source link

Error in Vertex Shader (similar to #1034) #1113

Open zoebsinger opened 2 years ago

zoebsinger commented 2 years ago

I'm having a similar/ same issues as issue #1034 . Specifically, I get multiple "Error in Vertex shader" messages when trying to open the GUI. The GUI opens but is empty. In the original issue the user stated this was due to an incompatibility between pyqt and opengl and suggested reinstalling pyqt through conda. I did this (for pyqt and pytq5) and still get the error. Any tips?

rtraghavan commented 2 years ago

I'm having the same issue on a new macbook. Reinstalling via a new conda environment didn't help. Systematically installing each required package independently is not helping either.

zoebsinger commented 2 years ago

What worked for me was downgrading the versions of a few packages, specifically I found I had pyqt5.15.4 and pyqtwebengine 5.15.4. I uninstalled these and re-installed versions less than 5.13, which is what an error message I got when upgrading phy told me to do.

Screen Shot 2021-09-23 at 7 01 18 PM
aferguso2 commented 2 years ago

@zoebsinger It worked! Thanks for finding the solution!!

julieelie commented 2 years ago

Hello guys, I have a similar issue. I had to upgrade Python because by upgrading the MacOs to BigSur, OpenGL could not be found anymore. Now upgrading to Python >3.8 solved that issue but I hit the Vertex Shader issue... I did the same trick of downgrading manually pyqt5 and pyqtwebengine to 5.12 versions. now I have all the views working BUT the cluster and similarity views... Could you guys list the current versions of all the packages in you environment? Thanks for your help! As for now simply installing from fresh phy2 on a new python environment with any python version >3.7 under MacOs BigSur simply does not work, I tried every combinations!!

jjtukker commented 2 years ago

What worked for me was downgrading the versions of a few packages, specifically I found I had pyqt5.15.4 and pyqtwebengine 5.15.4. I uninstalled these and re-installed versions less than 5.13, which is what an error message I got when upgrading phy told me to do. Screen Shot 2021-09-23 at 7 01 18 PM

I have this exact issue with a new installation of Phy on MacOS Big Sur. Could you explain exactly how you "manually downgraded" pyqt5 and pyqtwebengine to v5.12? When I tried to do this for pyqt5, using pip, I got an error related to PyQt5_sip:

Successfully uninstalled PyQt5-5.15.6 (spikesorting) user-adm@BR-M-3016296dzne Kilosort_2020-08-03_140330 % pip install pyqt5==5.12 Collecting pyqt5==5.12 Using cached PyQt5-5.12-5.12.1_a-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl (40.3 MB) ERROR: Could not find a version that satisfies the requirement PyQt5_sip<4.20,>=4.19.14 (from pyqt5) (from versions: 12.7.0, 12.7.1, 12.7.2, 12.8.0, 12.8.1, 12.9.0) ERROR: No matching distribution found for PyQt5_sip<4.20,>=4.19.14`

shiralupkin commented 2 years ago

I had the same issue when running on my Mac using a python 3.8 environment. I am running MacOS 12.2.1 (Monterey). I upgraded to python 3.9, installed phy as usual, then manually uninstalled/reinstalled pyqt and pyqtengine as per #1122 .

so from start to finish:

# create env
conda create -n spikeSorting python=3.9

# install phy
pip install phy --pre --upgrade

# uninstall/reinstall relevant libraries
pip uninstall pyqt5
pip uninstall pyqtwebengine
pip install PyQtWebEngine==5.15
pip install PyQt5==5.15

I was then able to run phy2 without issue. Hope this helps!