Skip to content
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

命令行用起来下歌很慢 & qtpy安装后反而不能用 #918

Open
imxys opened this issue Jun 9, 2021 · 2 comments
Open

命令行用起来下歌很慢 & qtpy安装后反而不能用 #918

imxys opened this issue Jun 9, 2021 · 2 comments
Labels

Comments

@imxys
Copy link

imxys commented Jun 9, 2021

现象1

获取自己的歌单,loading要一会,这个还能接受

现象2

我用空格播放这首歌

                                            ♫  ♪ ♫  ♪ LD 128k ハルカ   -   YOASOBI  < ハルカ >

                                             顺序播放 [                                                                                                                     ] (00:00/00:01)
                                             ♪《Haruka》
                                                -

等半天没播放,然后在我开始写issue的时候播起来了……
我在配置文件里设置quality=1了,不过这首歌直接就128KBps
……issue写着写着居然自动切到下一首歌播放了……从未有过的待遇

现象3

我之前没有安装qtpy
安装后再运行musicbox反而失败:

21/06/09 20:25:10 ➜ ~/Videos musicbox
Traceback (most recent call last):
  File "/home/xys/.local/lib/python3.8/site-packages/qtpy/__init__.py", line 204, in <module>
    from PySide import __version__ as PYSIDE_VERSION  # analysis:ignore
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xys/.local/bin/musicbox", line 7, in <module>
    from NEMbox.__main__ import start
  File "/home/xys/.local/lib/python3.8/site-packages/NEMbox/__main__.py", line 10, in <module>
    from .menu import Menu
  File "/home/xys/.local/lib/python3.8/site-packages/NEMbox/menu.py", line 33, in <module>
    from .osdlyrics import pyqt_activity
  File "/home/xys/.local/lib/python3.8/site-packages/NEMbox/osdlyrics.py", line 17, in <module>
    from qtpy import QtGui, QtCore, QtWidgets
  File "/home/xys/.local/lib/python3.8/site-packages/qtpy/__init__.py", line 210, in <module>
    raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found

我尝试安装PySide,发现PySide没法安装:

21/06/09 20:25:18 ➜ ~/Videos pip3.8 install PySide
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting PySide
  Downloading http://mirrors.aliyun.com/pypi/packages/36/ac/ca31db6f2225844d37a41b10615c3d371587677efd074db29855e7035de6/PySide-1.2.4.tar.gz (9.3 MB)
     |████████████████████████████████| 9.3 MB 4.7 MB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.8 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xf92u8ro/pyside_6dd4e559bb324edeaeafaca194f8028c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xf92u8ro/pyside_6dd4e559bb324edeaeafaca194f8028c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-vez6i3t5                                                                                                                                 
         cwd: /tmp/pip-install-xf92u8ro/pyside_6dd4e559bb324edeaeafaca194f8028c/                                                                                                                                                             
    Complete output (1 lines):                                                                                                                                                                                                               
    only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]                                                                                                                                                       
    ----------------------------------------                                                                                                                                                                                                 
WARNING: Discarding http://mirrors.aliyun.com/pypi/packages/36/ac/ca31db6f2225844d37a41b10615c3d371587677efd074db29855e7035de6/PySide-1.2.4.tar.gz#sha256=1421bc1bf612c396070de9e1ffe227c07c1f3129278bc7d30c754b5146be2433 (from http://mirrors.aliyun.com/pypi/simple/pyside/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.                                                                                                 
  Downloading http://mirrors.aliyun.com/pypi/packages/b4/7b/2fc9d9e5c651c1550362d87bc4ab4cfe5368b312c1eaf477b5a4be708abd/PySide-1.2.2.tar.gz (9.3 MB)
     |████████████████████████████████| 9.3 MB 4.5 MB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.8 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xf92u8ro/pyside_0d001276fc5843d4b6bd8cb4f0db3044/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xf92u8ro/pyside_0d001276fc5843d4b6bd8cb4f0db3044/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pj4cs27_                                                                                                                                 
         cwd: /tmp/pip-install-xf92u8ro/pyside_0d001276fc5843d4b6bd8cb4f0db3044/                                                                                                                                                             
    Complete output (9 lines):                                                                                                                                                                                                               
    Traceback (most recent call last):                                                                                                                                                                                                       
      File "<string>", line 1, in <module>                                                                                                                                                                                                   
      File "/tmp/pip-install-xf92u8ro/pyside_0d001276fc5843d4b6bd8cb4f0db3044/setup.py", line 89, in <module>                                                                                                                                
        from utils import rmtree                                                                                                                                                                                                             
      File "/tmp/pip-install-xf92u8ro/pyside_0d001276fc5843d4b6bd8cb4f0db3044/utils.py", line 10, in <module>                                                                                                                                
        import popenasync                                                                                                                                                                                                                    
      File "/tmp/pip-install-xf92u8ro/pyside_0d001276fc5843d4b6bd8cb4f0db3044/popenasync.py", line 26, in <module>                                                                                                                           
        if subprocess.mswindows:                                                                                                                                                                                                             
    AttributeError: module 'subprocess' has no attribute 'mswindows'                                                                                                                                                                         
    ----------------------------------------                                                                                                                                                                                                 

电脑环境:

Ubuntu 18.04.5
KDE Plasma 5.12.9
Python 3.8
pip安装列表:

pip3.8 list
Package                       Version
----------------------------- -------------------
apt-xapian-index              0.47
apturl                        0.5.2
asn1crypto                    0.24.0
beautifulsoup4                4.6.0
blinker                       1.4
Brlapi                        0.6.6
certifi                       2021.5.30
chardet                       4.0.0
checkbox-support              0.22
click                         6.7
colorama                      0.3.7
command-not-found             0.3
crossenv                      1.1.2
cryptography                  2.1.4
cupshelpers                   1.0
defer                         1.0.6
distro-info                   0.18ubuntu0.18.04.1
feedparser                    5.2.1
fuzzywuzzy                    0.18.0
guacamole                     0.9.2
html5lib                      0.999999999
httplib2                      0.9.2
idna                          2.10
importlib-metadata            2.1.1
iotop                         0.6
isc                           2.0
Jinja2                        2.10
keyring                       10.6.0
keyrings.alt                  3.0
language-selector             0.1
launchpadlib                  1.10.6
lazr.restfulclient            0.13.5
lazr.uri                      1.0.3
LittleHTTPServer              0.5.0
louis                         3.5.0
lxml                          4.2.1
macaroonbakery                1.1.3
MarkupSafe                    1.0
meld                          3.18.0
meson                         0.58.0
netease-musicbox              0.3.1
netifaces                     0.10.4
oauth                         1.0.1
oauthlib                      2.0.6
olefile                       0.45.1
onboard                       1.4.1
padme                         1.1.1
pexpect                       4.2.1
Pillow                        5.1.0
pip                           21.1.2
plainbox                      0.25
ply                           3.11
protobuf                      3.0.0
pyasn1                        0.4.2
pycairo                       1.16.2
pycrypto                      2.6.1
pycryptodomex                 3.10.1
pycups                        1.9.73
pycurl                        7.43.0.1
Pygments                      2.2.0
pygobject                     3.26.1
PyJWT                         1.5.3
pymacaroons                   0.13.0
PyNaCl                        1.1.2
pyparsing                     2.2.0
pyRFC3339                     1.0
python-apt                    1.6.5+ubuntu0.5
python-dateutil               2.6.1
python-debian                 0.1.32
python-Levenshtein            0.12.2
python-xlib                   0.20
pytz                          2018.3
pyxdg                         0.25
PyYAML                        3.12
QtPy                          1.9.0
reportlab                     3.4.0
requests                      2.25.1
requests-cache                0.5.2
requests-unixsocket           0.1.5
scour                         0.36
SecretStorage                 2.3.1
setuptools                    57.0.0
simplejson                    3.13.2
six                           1.11.0
ssh-import-id                 5.7
system-service                0.3
systemd-python                234
ubuntu-advantage-tools        27.0
ubuntu-drivers-common         0.0.0
ufw                           0.36
unattended-upgrades           0.1
unity-scope-calculator        0.1
unity-scope-chromiumbookmarks 0.1
unity-scope-colourlovers      0.1
unity-scope-devhelp           0.1
unity-scope-firefoxbookmarks  0.1
unity-scope-gdrive            0.7
unity-scope-manpages          0.1
unity-scope-openclipart       0.1
unity-scope-texdoc            0.1
unity-scope-tomboy            0.1
unity-scope-virtualbox        0.1
unity-scope-yelp              0.1
unity-scope-zotero            0.1
urllib3                       1.26.5
usb-creator                   0.3.3
vboxapi                       1.0
wadllib                       1.3.2
webencodings                  0.5
wheel                         0.30.0
xdiagnose                     3.8.8
xkit                          0.0.0
XlsxWriter                    0.9.6
zipp                          3.4.1
zope.interface                4.3.2

其中qtpy是后面才装的,我才反应过来这个是python模块用不着apt安装

@imxys
Copy link
Author

imxys commented Jun 9, 2021

我发现我切了一下网速快了一点的网络能听歌了;切回之前总听不了歌的网络发现也能听歌了……
尴尬
我记得之前是网页版听歌没有什么问题,然后musicbox死活00:01,有时候等好久才能听到歌
今天测的时候我还把quality的设置从0改成1,本以为还会出现之前的情况就写issue了,结果issue写着写着听歌功能就正常了
我还是再测一下看看

@imxys
Copy link
Author

imxys commented Jun 9, 2021

不好意思qtpy的问题解决了
我回去看了一遍readme,原来是4选1,安装PySide2之后解决了

@kigawas kigawas added the doc label Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants