Ryven icon indicating copy to clipboard operation
Ryven copied to clipboard

python Ryven.py , but no Response on macos 11.0.1

Open WindyLQL opened this issue 4 years ago • 4 comments

Description Firstly: python Ryven.py qt.qpa.fonts: Populating font family aliases took 1107 ms. Replace uses of missing font family "Corbel" with one that exists to avoid this cost. But, There is no response in program, There is just a white small windows. I don't what's happend, so confused.

System, version

  • OS: macos big sur
  • Version [11.0.1]
  • Python3.9.1 and already pip install -r requirements.txt

WindyLQL avatar Feb 04 '21 20:02 WindyLQL

nvm, found this. Could you take a look at Font Book on your OS and see if "Corbel" is there?

leon-thomm avatar Feb 04 '21 20:02 leon-thomm

I have slove Corbel font Problem,but my problem has not be sloved , "There is no response in program, There is just a white small windows. ", I think the program is hanged

my installation

  Ryven git:(master) ✗ pip install -r requirements.txt
Collecting matplotlib
  Using cached matplotlib-3.3.4-cp38-cp38-macosx_10_9_x86_64.whl (8.5 MB)
Collecting numpy==1.19.3
  Using cached numpy-1.19.3-cp38-cp38-macosx_10_9_x86_64.whl (15.9 MB)
Collecting opencv-python
  Using cached opencv_python-4.5.1.48-cp38-cp38-macosx_10_13_x86_64.whl (40.3 MB)
Collecting PySide2
  Using cached PySide2-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-abi3-macosx_10_13_intel.whl (148.5 MB)
Collecting scipy
  Using cached scipy-1.6.0-cp38-cp38-macosx_10_9_x86_64.whl (30.7 MB)
Collecting pyowm
  Using cached pyowm-3.1.1-py3-none-any.whl (3.3 MB)
Collecting qbstyles
  Using cached qbstyles-0.1.3-py3-none-any.whl (10 kB)
Collecting autopep8
  Using cached autopep8-1.5.5-py2.py3-none-any.whl (44 kB)
Requirement already satisfied: pycodestyle>=2.6.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from autopep8->-r requirements.txt (line 8)) (2.6.0)
Requirement already satisfied: toml in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from autopep8->-r requirements.txt (line 8)) (0.10.2)
Requirement already satisfied: kiwisolver>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 1)) (1.3.1)
Requirement already satisfied: cycler>=0.10 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 1)) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 1)) (8.1.0)
Requirement already satisfied: python-dateutil>=2.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 1)) (2.8.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 1)) (2.4.7)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from cycler>=0.10->matplotlib->-r requirements.txt (line 1)) (1.15.0)
Requirement already satisfied: PySocks<2,>=1.7.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pyowm->-r requirements.txt (line 6)) (1.7.1)
Requirement already satisfied: requests<3,>=2.20.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pyowm->-r requirements.txt (line 6)) (2.25.1)
Requirement already satisfied: geojson<3,>=2.3.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from pyowm->-r requirements.txt (line 6)) (2.5.0)
Requirement already satisfied: idna<3,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests<3,>=2.20.0->pyowm->-r requirements.txt (line 6)) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests<3,>=2.20.0->pyowm->-r requirements.txt (line 6)) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests<3,>=2.20.0->pyowm->-r requirements.txt (line 6)) (1.26.3)
Requirement already satisfied: chardet<5,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests<3,>=2.20.0->pyowm->-r requirements.txt (line 6)) (4.0.0)
Requirement already satisfied: shiboken2==5.15.2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from PySide2->-r requirements.txt (line 4)) (5.15.2)
Installing collected packages: numpy, matplotlib, scipy, qbstyles, PySide2, pyowm, opencv-python, autopep8
Successfully installed PySide2-5.15.2 autopep8-1.5.5 matplotlib-3.3.4 numpy-1.19.3 opencv-python-4.5.1.48 pyowm-3.1.1 qbstyles-0.1.3 scipy-1.6.0
➜  Ryven git:(master) ✗ 
➜  Ryven git:(master) ✗ 
➜  Ryven git:(master) ✗ python ./Ryven/Ryven.py

I forcibly quit the program,mac os err below

Date/Time:        2021-02-05 10:37:56.231 +0800
End time:         2021-02-05 10:39:32.366 +0800
OS Version:       macOS 11.0.1 (Build 20B50)
Architecture:     x86_64h
Report Version:   32

Data Source:      Stackshots
Shared Cache:     1E362DBC-F66C-3135-BCA0-C1BBAE12BC7C slid base address 0x7fff2002d000, slide 0x2d000

Command:          Python
Path:             /Library/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Identifier:       org.python.python
Version:          3.8.6 (3.8.6)
Parent:           zsh [24473] [unique pid 621067]
Responsible:      Terminal [24471] [unique pid 621065]
PID:              27080
Time Since Fork:  99s

Event:            hang
Duration:         96.14s
Duration Sampled: 1.00s (process was unresponsive for 95 seconds before sampling)
Steps:            10 (100ms sampling interval)

Hardware model:   MacBookPro13,3
Active cpus:      8
Boot args:        kext-dev-mode=1

Time Awake Since Boot: 712759s
Time Since Wake:  2759s

Fan speed:        2160 rpm

--------------------------------------------------
Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting
--------------------------------------------------

...

WindyLQL avatar Feb 05 '21 02:02 WindyLQL

  • could you pip uninstall pyside2 and pip install pyside2 again (and see if errors appear in the console)
  • also, does Ryven output anything on the console after python ./Ryven/Ryven.py?

leon-thomm avatar Feb 05 '21 06:02 leon-thomm

Same here. I had this with my own Pyside2 application as well.

What helped for my software, but also for Ryven:

export QT_MAC_WANTS_LAYER=1

Found here (follow links there if you need more information): https://forums.macrumors.com/threads/pyqt5-and-big-sur.2260773/

Then everything works fine. Seems to be Qt related (on MAC OS).

chiefenne avatar Mar 15 '21 12:03 chiefenne