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

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
Xusually
帖子: 242
注册时间: 2006-11-03 21:20
来自: 上海
联系:

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

#1

帖子 Xusually » 2009-04-04 12:20

按照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。。。后患无穷
Never had a dream come ture!
============================
Lenovo E42LT2390
CPU:T2390
RAM:1G DDRII 667*2
VGA:X3100
HD:Seagate 160G SataII
CD:Combo
Wireless:Intell 3945abg
头像
Xusually
帖子: 242
注册时间: 2006-11-03 21:20
来自: 上海
联系:

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

#2

帖子 Xusually » 2009-04-04 12:21

不知道下载源码自己编译安装会不会解决python版本依赖的问题。还没来得及实验,在看火箭Vs湖人。
Never had a dream come ture!
============================
Lenovo E42LT2390
CPU:T2390
RAM:1G DDRII 667*2
VGA:X3100
HD:Seagate 160G SataII
CD:Combo
Wireless:Intell 3945abg
头像
Xusually
帖子: 242
注册时间: 2006-11-03 21:20
来自: 上海
联系:

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

#3

帖子 Xusually » 2009-04-04 16:33

放弃了,不搞了,python的问题太难办

重装了8.10,python版本2。5

装好直接就可以看了
Never had a dream come ture!
============================
Lenovo E42LT2390
CPU:T2390
RAM:1G DDRII 667*2
VGA:X3100
HD:Seagate 160G SataII
CD:Combo
Wireless:Intell 3945abg
tear086
帖子: 5
注册时间: 2008-09-20 14:25

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

#4

帖子 tear086 » 2009-04-05 10:12

代码: 全选

sudo apt-get install python2.5
哦卡!
openshcn
帖子: 40
注册时间: 2008-10-30 10:47

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

#5

帖子 openshcn » 2009-04-30 14:07

代码: 全选

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
头像
istartagain
帖子: 1394
注册时间: 2009-05-27 21:55

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

#6

帖子 istartagain » 2009-05-28 10:31

我正在sudo apt-get install python2.5 14k/s
谁给个源
头像
istartagain
帖子: 1394
注册时间: 2009-05-27 21:55

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

#7

帖子 istartagain » 2009-05-28 10:39

:em20 sudo apt-get install python2.5是不行的
头像
istartagain
帖子: 1394
注册时间: 2009-05-27 21:55

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

#8

帖子 istartagain » 2009-05-28 10:42

sudo apt-get install python2.5
/usr/bin/python2.5 /usr/share/sopcast-player/lib/sopcast-player.py $@
ok ok ok :em05 :em11
头像
istartagain
帖子: 1394
注册时间: 2009-05-27 21:55

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

#9

帖子 istartagain » 2009-05-28 10:43

Inbound Port: 3616
Outbound Port: 32595
段错误
3分钟后 :em20
dvdface
帖子: 152
注册时间: 2006-08-16 22:19
来自: 湖北武汉
联系:

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

#10

帖子 dvdface » 2009-08-01 14:57

安装一下python.25,把/usr/bin/sopcast-player中的/usr/bin/python改成/usr/bin/python2.5不就好了,我就是这么改的,好了
笔记本: Acer 3810T
OS : Ubuntu9.04
CPU:SU3500
RAM:DDR3 1G
硬盘:250G
显卡:GMA4500
显示器:13寸LED
回复