InDashPC.org Forum Index InDashPC.org
In Dash Car PC forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

traceback!!!!

 
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software -> PyMedia Tutorials
View previous topic :: View next topic  
Author Message
sabarish



Joined: 30 Mar 2010
Posts: 2

PostPosted: Sat Jun 19, 2010 10:09 pm    Post subject: traceback!!!! Reply with quote

hi,
this is another error which i encountered while trying to play a mp3 file.. pls give a soln to it..

>>> import pymedia
>>> import time
>>> demuxer = pymedia.muxer.Demuxer('mp3')
>>> f = open(pirates.mp3, 'rb')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'pirates' is not defined
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Jun 20, 2010 7:14 pm    Post subject: Reply with quote

I think you should start with Python syntax first and then see this tutorial:
http://www.pymedia.org/tut/dump_wav.html
Back to top
View user's profile Send private message
sabarish



Joined: 30 Mar 2010
Posts: 2

PostPosted: Tue Jun 22, 2010 10:15 pm    Post subject: got the solution Reply with quote

hi..
i's able to correct tht error.. haha.. i forgot to put invverted commas for the filename.. it should have been ('pirates.mp3')

now i'm able to run tht file..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software -> PyMedia Tutorials All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group