分页: 1 / 1

sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-04-04 12:20
Xusually
按照wiki做的,装完了,可是启动的时候命令行提示RuntimeError: Bad magic number in .pyc file
初步认定是python版本的问题,作者用的可能是2.5,我的9.04用的是2.6
修改/usr/bin/sopcast-player

/usr/bin/python /usr/share/sopcast-player/lib/sopcast-player.pyc $@

改成
/usr/bin/python2.5 /usr/share/sopcast-player/lib/sopcast-player.pyc $@
没用的,改成python2.6也没有用。我的usr/bin/下面只有python2.6

昨晚上去官网去提交issue了,希望可以早点解决

得出结论了,没事千万别乱升级python。。。后患无穷

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-04-04 12:21
Xusually
不知道下载源码自己编译安装会不会解决python版本依赖的问题。还没来得及实验,在看火箭Vs湖人。

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-04-04 16:33
Xusually
放弃了,不搞了,python的问题太难办

重装了8.10,python版本2。5

装好直接就可以看了

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-04-05 10:12
tear086

代码: 全选

sudo apt-get install python2.5
哦卡!

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-04-30 14:07
openshcn

代码: 全选

sudo apt-get install python2.5
/usr/bin/python2.5 /usr/share/sopcast-player/lib/sopcast-player.py $@
桌面快捷方式的命令修改为:/usr/bin/python2.5 /usr/share/sopcast-player/lib/sopcast-player.py

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-05-28 10:31
istartagain
我正在sudo apt-get install python2.5 14k/s
谁给个源

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-05-28 10:39
istartagain
:em20 sudo apt-get install python2.5是不行的

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-05-28 10:42
istartagain
sudo apt-get install python2.5
/usr/bin/python2.5 /usr/share/sopcast-player/lib/sopcast-player.py $@
ok ok ok :em05 :em11

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-05-28 10:43
istartagain
Inbound Port: 3616
Outbound Port: 32595
段错误
3分钟后 :em20

Re: sopcast-player出现RuntimeError: Bad magic number in .pyc file

发表于 : 2009-08-01 14:57
dvdface
安装一下python.25,把/usr/bin/sopcast-player中的/usr/bin/python改成/usr/bin/python2.5不就好了,我就是这么改的,好了