网易云音乐更新至 1.0.0 ,附rpm包

播放音乐有问题 :nauseated_face: ,还是回到 DeadBeef。

装上了,可还是段错误呢 :frowning:

musicbox 很好

如何安装。我在 sofeware.opensuse 上搜,安装不成功。
我按照 github 上的方法使用:
sudo pip install netease-musicbox
报错如下:

Running setup.py install for pycrypto ...error
...
src/_fastmath.c:31:20:fatal error:Python.h: 没有那个文件或目录
#include "Python.h"
                           ^
compilation terminated.
error: command 'gcc' failed with exit status 1
...

Command "/usr/bin/python3 -u -C "import setuptools,tokenize;__file__='/tmp/pip-build-of1_b9ti/pycrypto/setup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('\r\n','\n'),__file__,'exec'))" install --record /tmp/pip-uz56y7ge-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-of1_b9ti/pycrypto/

我是不是少下载什么软件了?这个头文件是直接可以下载吗?

如何安装。我在 sofeware.opensuse 上搜,安装不成功。
我按照 github 上的方法使用:
sudo pip install netease-musicbox
报错如下:

Running setup.py install for pycrypto ...error
...
src/_fastmath.c:31:20:fatal error:Python.h: 没有那个文件或目录
#include "Python.h"
                           ^
compilation terminated.
error: command 'gcc' failed with exit status 1
...

Command "/usr/bin/python3 -u -C "import setuptools,tokenize;__file__='/tmp/pip-build-of1_b9ti/pycrypto/setup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('\r\n','\n'),__file__,'exec'))" install --record /tmp/pip-uz56y7ge-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-of1_b9ti/pycrypto/

我是不是少下载什么软件了?这个头文件是直接可以下载吗?
是的,sudo zypper in gcc, 你再去网站上搜,我昨天晚上刚打包完

原来是安装的 python2.7 这个需要 python3. 多。现在安装之后,又报如下的错:

sudo pip install netease-musicbox
Traceback (most recent call last):
File "/usr/bin/pip", line 7, in <module>
     from pip import main
File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 14, in <module>
     from pip.utils import get_installed_distributions,get_prog
File "/usr/lib/python3.4/site-packages/utils/__init__.py", line 27, in <module>
     from pip._vendor import pkg_resources
File "/usr/lib/python3.4/site-packages/_vendor/pkg_resources/__init__.py", line 34, in <module>
     import plistlib
File "/usr/lib64/python3.4/plistlib.py", line 65, in <module>
     from xml.parsers.expat import ParserCreate
File "/usr/lib64/python3.4/xml/parsers/expat.py", line 4,in<module>
     from pyexpat import *
ImportError:/usr/lib64/python3.4/lib-dynload/pyexpat.cpython-34m.so:undefine symbol:_PyTraceback_Add

sudo zypper in gcc
sudo zypper addrepo download.opensuse.org/repositories/home:huangshun/openSUSE_Leap_42.1/home:huangshun.repo
sudo zypper refresh
sudo zypper install musicbox

这个链接是做什么用的? 我肯定安装了 gcc 了呀. 开发用的机器. 已经安装了的.
现在我更新一下系统, 安装成功了, 但是起不来:

Collecting netease-musicbox
  Using cached NetEase-MusicBox-0.2.2.10.tar.gz
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python3.4/site-packages (from netease-musicbox)
Requirement already satisfied (use --upgrade to upgrade): BeautifulSoup4 in /usr/lib64/python3.4/site-packages (from netease-musicbox)
Collecting pycrypto (from netease-musicbox)
  Using cached pycrypto-2.6.1.tar.gz
Installing collected packages: pycrypto, netease-musicbox
  Running setup.py install for pycrypto ... done
  Running setup.py install for netease-musicbox ... done
Successfully installed netease-musicbox-0.2.2.10 pycrypto-2.6.1

sdk@linux-bpkw:~> musicbox 
Traceback (most recent call last):
  File "/usr/bin/musicbox", line 9, in <module>
    load_entry_point('NetEase-MusicBox==0.2.2.10', 'console_scripts', 'musicbox')()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist='__name__'], level=0)
  File "/usr/lib/python3.4/site-packages/NEMbox/__init__.py", line 42
    print 'NetEase-MusicBox installed version:' + version
                                              ^
SyntaxError: Missing parentheses in call to 'print'

leap 42.1 安装成功后,可以播放视频,在线的、本地的 mp3 都不能播放。也没有报错。

奇怪,我测试过,正常运行啊,我是在 42.1 上测试的,难道你用的 tumbleweed?

运行正常,不能播放在线和本地音乐。

目前只测试了 Tumbleweed,Leap 可能会有问题。

目测你的 python 是 Python3。手动把 musicbox 的 shebang 改成 Python2 的试试。

我使用的是 Leap 42.1,非风滚草。肯定是哪儿不对

不懂为什么这个包都出来这么久了你们还是无法正常播放 :joy:
我都重新安装了一次 42.1 了,无论在线还是本地播放都是没有问题的。
我所做的只是常规安装了 packman 里面的解码包,外加安装了 Non-Oss 源里的 *-fluendo-mp3 包。之后就是常规安装 zh 源里的网易云音乐了,貌似源里的脚本有问题,我这无法下载到 deb 包,手动下载回来扔 /tmp 里就可以安装完成,不过完成后 /usr/bin/netease-cloud-music 的软链接位置有问题,自己重新链接到 /usr/lib64/netease-cloud-music/netease-cloud-music 就可以了 (貌似是脚本解压 deb 包的时候目录重复了?)

我明天换台机子再测试一下看看

可能我的依赖没有写全吧,我回头再改一下 spec 重新打包一下。

升级到滚动版,莫名其妙的可以播放了。

我的风滚草装了以后只能播放 mv。。。是什么情况。歌曲本地和在线都不能播放

Recommends:      gstreamer-plugins-bad-orig-addon
Recommends:      gstreamer-plugins-good-extra
Recommends:      gstreamer-plugins-ugly-orig-addon
Recommends:      gstreamer-plugins-libav

把这几个包装上,用 packman 的版本。