Giter Club home page Giter Club logo

musicbox's Issues

打不开

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
读取或保存cookies出错 ['cookies/playlist/musicList.cks']
读取或保存cookies出错 ['cookies/mediaPlaylist/musics.cks', 'cookies/mediaPlaylist/mediaList.cks']
读取或保存cookies出错 ['cookies/headers/loginInfor.cks']
读取或保存cookies出错 ['cookies/downloadInfo/downloadFolder.cks']
尝试重新获取音乐地址出错,请清空或删除无效的音乐信息后重试。
尝试重新获取音乐地址出错,请清空或删除无效的音乐信息后重试。

ubuntu18.04

QQ音乐的解码器具体如何安装

直接下载安装后没用
控制台报错如下:
DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x800c0008 (??????????????)
另外,我目前在做的音乐推荐是用QQ音乐的最新的两百万歌单(爬虫爬下来的)与其中所包含的四百万左右的歌曲进行分析推荐,然后能获取到QQ音乐的原始主键(songid和songmid),能告诉我下怎么播放音乐吗?

网易云歌单问题。

貌似网易云修改了歌单API,旧的歌单API只返回其中得一首曲子了,目前正在获取新的API。

安装出错

请简要描述下这个Bug
安装出错。
请描述下重现步骤

pip install Music-Player

如果不发生Bug本该如何

成功安装。

相关截图,日志

image

mac os上无法运行程序

这三个库安装时提示找不到。
eyed3
pycryptodome
quamash
导致程序无法运行。
是否能够适配 mac os.

无法播放 playlist

安装完成并 sudo 运行之后可以读取本地音乐列表,双击也能添加至 playlist 中,但就是无法播放

相关截图,日志
screenshot from 2018-09-26 21-15-48

系统信息
Ubuntu 18.04.1 LTS
7.5 GB RAM
Intel Core i5-4210U CPU @ 1.70GHz x 4
Gnome 3.28.2
64-bit

ImportError: No module named 'PyQt5.sip'

sudo musicplayer
Traceback (most recent call last):
File "/usr/local/bin/musicplayer", line 11, in
load_entry_point('Music-Player==1.0.5.1', 'console_scripts', 'musicplayer')()
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 484, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 2725, in load_entry_point
return ep.load()
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 2343, in load
return self.resolve()
File "/home/huanhexiao/.local/lib/python3.5/site-packages/pkg_resources/init.py", line 2349, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.5/dist-packages/Music_Player-1.0.5.1-py3.5.egg/MusicPlayer/music.py", line 33, in
from quamash import QEventLoop
File "/usr/local/lib/python3.5/dist-packages/Quamash-0.6.1-py3.5.egg/quamash/init.py", line 44, in
QtCore = importlib.import_module(QtModuleName + '.QtCore', package=QtModuleName)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named 'PyQt5.sip'

认真点啊

不要把 pycache 文件夹加进来了,文件夹规范一点 Apis --> apis

运行时出现错误求解

Traceback (most recent call last):
File "/usr/local/bin/musicplayer", line 11, in
load_entry_point('Music-Player==1.0.5.1', 'console_scripts', 'musicplayer')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.6/dist-packages/Music_Player-1.0.5.1-py3.6.egg/MusicPlayer/music.py", line 33, in
from quamash import QEventLoop
File "/usr/local/lib/python3.6/dist-packages/Quamash-0.6.1-py3.6.egg/quamash/init.py", line 44, in
QtCore = importlib.import_module(QtModuleName + '.QtCore', package=QtModuleName)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'PyQt5.sip'

求解

客户端在线更新功能

能否实现客户端版本的在线更新功能,即服务端有更新,客户端能自动更新,同时需要考虑客户端安装要简便,即通过pyinstaller打包或者一键安装所需要的pyqt等环境,同时还要考虑更新文件不能太大,发现简单的功能pyinstaller打包一个exe就几十兆了,如果一次很多用户同时自动在线更新几十兆的文件,就有点大了。

eyed3没有0.8.0这个版本

请简要描述下这个Bug
安装提示没有eyed3==0.8.0
请描述下重现步骤
如:

  1. 在 '...' 页面。
  2. 点了 '....' 按钮。
  3. 稍微滚了一下 '....'。
  4. 就看到了Bug。

如果不发生Bug本该如何

相关截图,日志
如果有相关截图,请提供~。
请务必把目录下的日志提供一份~。

系统信息

  • OS: [e.g. Windows]

其他

[upstream?] `DirectWrite: CreateFontFaceFromHDC() failed`

ref: #8 (comment)
以上问题的复现。配置好 venv 后运行程序就会在终端输出错误信息,log 里没有,看上去应该是 QT的报错。

重现步骤

  1. 配置虚拟环境(直接装全局的应该一样)
# pip install virtualenv

virtualenv venv # 默认用了系统级 py3.6-32 的解释器
# pip install -r requirements.txt
pip install -r .\requirements.txt
  1. 激活虚拟环境
# source venv/bin/activate # *nix 系
.\venv\Scripts\activate
  1. 运行程序
    python .\MusicPlayer\music.py

通过 Pychram 运行也一样

  1. 就看到了Bug。
    终端输出
DirectWrite: CreateFontFaceFromHDC() failed (???????????? (????????????) ??????????) for QFontDef(Family="System", pointsize=16, pixelsize=20, styleHint=5, weight=9, stretch=100, hintingPreference=0) LOGFONT("System", lfWidth=0, lfHeight=-20) dpi=168

如果不发生Bug

不该有报错

相关截图,日志

image

关闭程序后

终端输出
(venv) PS C:\Users\woclass\Desktop\GitHub\MusicBox> python .\MusicPlayer\music.py
DirectWrite: CreateFontFaceFromHDC() failed (???????????? (????????????) ??????????) for QFontDef(Family="System", pointsize=16, pixelsize=20, styleHint=5, weight=9, stretch=100, hintingPreference=0) LOGFONT("System", lfWidth=0, lfHeight=-20) dpi=168
Exception ignored in: <bound method DbManager.__del__ of <userInfoManager.UserDbManager object at 0x04A7E490>>
Traceback (most recent call last):
  File "C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\dbManager\dbManager.py", line 20, in __del__
    self.db.commit()
sqlite3.ProgrammingError: Cannot operate on a closed database.

(venv) PS C:\Users\woclass\Desktop\GitHub\MusicBox>
日志
INFO music  70 当前图片缓存目录: C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\cache
INFO configDownloadFrameFeatures  82 下载目标变更C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\downloads
INFO configDownloadFrameFeatures  82 下载目标变更C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\downloads
INFO netEaseApi  56 进行网易云Url请求, args: ('http://music.163.com/api/playlist/list?cat=%E5%85%A8%E9%83%A8%E6%AD%8C%E5%8D%95&type=all&order=all&offset=0&total=true&limit=30&index=1',), kwargs: {'method': 'GET', 'cookies': {'appver': '2.1.2.184499', 'os': 'pc', 'channel': 'netease'}}
ERROR __init__  589 Task exception was never retrieved
future: <Task finished coro=<setUserData() done, defined at C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\features\configMainFeatures.py:239> exception=KeyError('profile',)>
Traceback (most recent call last):
  File "C:\Users\woclass\Desktop\GitHub\MusicBox\MusicPlayer\features\configMainFeatures.py", line 241, in setUserData
    profile = self.loginInfor['profile']
KeyError: 'profile'
INFO xiamiApi  55 进行xiami Url请求, args: ('http://api.xiami.com/web?v=2.0&app_key=1&_ksTS=1459927525542_91&page=1&limit=30&callback=jsonp92&r=collect/recommend',), kwargs: {'method': 'GET'}
INFO qqApi  43 进行QQ Url请求, args: ('https://c.y.qq.com/splcloud/fcgi-bin/fcg_get_diss_by_tag.fcg?rnd=0.5136307078685405&g_tk=5381&jsonpCallback=getPlaylist&loginUin=0&hostUin=0&format=jsonp&inCharset=utf8&outCharset=utf-8&notice=0&platform=yqq&needNewCode=0&categoryId=10000000&sortId=5&sin=30&ein=29',), kwargs: {'method': 'GET', 'headers': {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Connection': 'keep-alive', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', 'Accept-Encoding': 'gzip,deflate,sdch', 'Accept-Language': 'zh-CN,zh;q=0.8', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36', 'Host': 'c.y.qq.com', 'Referer': 'https://y.qq.com/portal/playlist.html'}}
ERROR music  539 got some error
Traceback (most recent call last):
  File ".\MusicPlayer\music.py", line 537, in start
SystemExit: 0

系统信息

系统信息
  • OS:
    • win 10 - 1809 - 17763.1953
    • x64
  • pip list
(venv) C:\Users\woclass\Desktop\GitHub\MusicBox>pip list
Package      Version
------------ ----------
certifi      2018.11.29
chardet      3.0.4
eyeD3        0.8
idna         2.8
pip          10.0.1
pycryptodome 3.7.2
PyQt5        5.11.3
PyQt5-sip    4.19.13
Quamash      0.6.1
requests     2.21.0
setuptools   39.1.0
six          1.12.0
urllib3      1.24.1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
  • python
(venv) C:\Users\woclass\Desktop\GitHub\MusicBox>python
Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 12:45:02) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

其他

google 到的相关问题:

点击播放就退出? Error: '' fish: 'python3 music.py' terminated by signal SIGABRT (Abort)

(py3v)  b/MusicPlayer/MusicPlayer ╍ python3 music.py 

(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:3218:17: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6378:23: The '-gtk-image-effect' property has been renamed to '-gtk-icon-effect'

(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6388:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6438:13: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6551:16: The 'outline-radius' property has been renamed to '-gtk-outline-radius'

(python3:26993): Gtk-WARNING **: Theme parsing error: gtk.css:6574:52: The :prelight pseudo-class is deprecated. Use :hover instead.
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
读取或保存cookies出错 ['cookies/playlist/musicList.cks']
读取或保存cookies出错 ['cookies/mediaPlaylist/musics.cks', 'cookies/mediaPlaylist/mediaList.cks']
读取或保存cookies出错 ['cookies/headers/loginInfor.cks']
Traceback (most recent call last):
  File "/home/mxo/bin/MusicPlayer/MusicPlayer/widgets/player.py", line 925, in dealError
    musicInfo = self.playList.mediaList.pop(self.currentMedia().canonicalUrl().toString())
KeyError: ''
fish: 'python3 music.py' terminated by signal SIGABRT (Abort)

这个不是依赖没装吧? 另外Linux下不能全屏?

建议增加保存上次选择的"本地音乐"路径的能力

请简要描述下该功能
不知道是我使用方法有误还是确实没有该能力, 每次重新打开工具想要听本地音乐时总是需要重新选择本地音乐路径.
建议选择本地音乐路径后, 以后打开本地音乐时无需重新选择

请描述下要注意的细节
每次选择本地音乐路径时可以写入或更新某配置文件, 再次打开工具时可以读取该配置文件中保存的路径, 若配置文件中的路径错误则需重新选择路径

图像用户界面优化

请简要描述下该功能
界面有待进一步优化
请描述下要注意的细节

请描述下最终实现效果

请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。

其他补充
截图,或其他相关资料。

尝试重新获取音乐地址出错

请简要描述下这个Bug
logger.error("尝试重新获取音乐地址出错,音乐信息: {0}".format(musicInfo), exc_info=True)
UnboundLocalError: local variable 'musicInfo' referenced before assignment

请描述下重现步骤
首次启动,搜索无反应,打开其中一个歌单播放全部,然后闪退。

系统信息
Windows 10
Python3.6.4 :: Anaconda custom (64-bit)
校园网

What is the login details for the app?

请简要描述下这个Bug

请描述下重现步骤
如:

  1. 在 '...' 页面。
  2. 点了 '....' 按钮。
  3. 稍微滚了一下 '....'。
  4. 就看到了Bug。

如果不发生Bug本该如何

相关截图,日志
如果有相关截图,请提供~。
请务必把目录下的日志提供一份~。

系统信息

  • OS: [e.g. Windows]

其他

是否有计划支持python 3.7?

在python3.7运行时,
Traceback (most recent call last):
File "/usr/local/bin/musicplayer", line 7, in
from MusicPlayer.music import start
File "/usr/local/lib/python3.7/site-packages/MusicPlayer/music.py", line 33, in
from quamash import QEventLoop
File "/usr/local/lib/python3.7/site-packages/quamash/init.py", line 275
future = asyncio.async(future, loop=self)
^
SyntaxError: invalid syntax

看起来应该是python3.7的async接口改了所以不兼容的。

  • OS: [osx-python3.7]

ubuntn18.04已经安装好依赖但使用pip安装仍出现问题

如题:
通过pip安装时提示
Collecting Music-Player
Downloading https://files.pythonhosted.org/packages/b1/76/7f60397a22625fccf6f80f2da365edac6585ec3d14c14c7edcedc45717a6/Music-Player-1.0.1.tar.gz (171kB)
100% |████████████████████████████████| 174kB 760kB/s
Collecting PyQt5 (from Music-Player)
Could not find a version that satisfies the requirement PyQt5 (from Music-Player) (from versions: )
No matching distribution found for PyQt5 (from Music-Player)

MV怎么实现播放

请简要描述下该功能

请描述下要注意的细节

请描述下最终实现效果

请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。

其他补充
截图,或其他相关资料。

No module named 'PyQt5.QtMultimedia'

你好:
我安装所有的依赖包后,都没有问题,但是在使用MusicPlayer启动程序时,会曝出错误:

error

我检查了pyqt5,没有发现问题,不知道是哪出现问题了?? 我的环境是win10 64,python3.5.3

可以加一个requestment.txt 吗?

按照你的要求,已经安装

Python
PyQt
requests
eyed3
crypto/cryptodome
quamash

运行代码,提示
failed to find libmagic. Check your installation

用的Python3.6,是因为不支持3.6吗?

无法播放

windows安装后GUI无法在线播放,但是可以下载。请问这是什么原因

能不能把音乐进行分类

请简要描述下该功能
将音乐分成跑步、睡觉、英语等类型
请描述下要注意的细节

请描述下最终实现效果

请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。

其他补充
截图,或其他相关资料。

测试好之后再提交呀

折腾了半小时, 新添加的日志有问题, logger 模块找不到

  1. 安装时没有安装进去,请再logger夹下添加 init.py文件,Python知道他时个模块。
  2. 放个音乐还要sudo权限,风险很大。
  3. 日志放在临时目录里面,放在dist-packages里面算怎么回事。

有官方Docker支持吗

请简要描述下该功能

请描述下要注意的细节

请描述下最终实现效果

请提供一份想法说明~
想法成因,如 在听歌时发现比较迷茫,于是想要个推荐系统/看手气听随机歌曲的功能。

其他补充
截图,或其他相关资料。

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.