On 8/19/2014 4:05 AM, Furqan wasi wrote:
Please post plain text instead of html.
path and name , i need some help to in how to make library
libsndfile/Sndfile to read file with special character in it i.e
C:\Users\Furqan\Desktop\test\查找問題daw\查找問題d.wav, as i mentioned
in my first email
Use 3.
*with code *
# -*- coding: UTF-8 -*-
import numpy, os
from scikits.audiolab import Sndfile
from os import walk, path, stat
file = u"C:/Users/Furqan/Desktop/查找問題Reference/1.wav"
track1 = file
track_one_file_obj = Sndfile(track1, 'r')
Getting this
Traceback (most recent call last):
File "D:/pyt
On 2014-08-19 13:14, Furqan wasi wrote:
Getting this
file = ur"C:\Users\Furqan\Desktop\查找問題Reference\1.wav"
SyntaxError: (unicode error) 'rawunicodeescape' codec can't decode
bytes in position 2-3: truncated \u
Ouch! That's Python 2 treating \U as the start of a Unicode escape, even
th
Getting this
file = ur"C:\Users\Furqan\Desktop\查找問題Reference\1.wav"
SyntaxError: (unicode error) 'rawunicodeescape' codec can't decode bytes in
position 2-3: truncated \u
On Tue, Aug 19, 2014 at 4:05 PM, MRAB wrote:
> On 2014-08-19 09:05, Furqan wasi wrote:
>
>> *Hi Mark and all, *
>>
>>
>
On 2014-08-19 09:05, Furqan wasi wrote:
*Hi Mark and all, *
Thanks for the replay i appreciate your help but the problem i
have is not with the FileNotFoundError exception handling because the
file exists but the problem is that the library libsndfile/Sndfile
(python third party) which
*Hi Mark and all, *
Thanks for the replay i appreciate your help but the problem i
have is not with the FileNotFoundError exception handling because the file
exists but the problem is that the library libsndfile/Sndfile (python third
party) which is child class/module of scikits.audiolab
*yes you are right , it through's this exception that "The system cannot
find the path specified." but in fact it exists , so thats why i tried to
pass the file name by handling file name by applying different non utf
character solution but no of those work *
*track_one_file_obj = Sndfile(track1,
On 19/08/2014 02:42, Chris Angelico wrote:
On Tue, Aug 19, 2014 at 1:34 AM, Furqan wasi wrote:
except:
print('Simple didnt work')
pass
Drop all of these bare excepts. Let the exceptions get printed.
Believe you me, they are a LOT more helpful than "didnt work".
ChrisA
Then once
On Tue, Aug 19, 2014 at 1:34 AM, Furqan wasi wrote:
> except:
> print('Simple didnt work')
> pass
Drop all of these bare excepts. Let the exceptions get printed.
Believe you me, they are a LOT more helpful than "didnt work".
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On 2014-08-18 16:34, Furqan wasi wrote:
Hi ,
Could you help me out on this , or guide me to some how can thanks
I am trying to get a wav file information but Sndfile is unable to read
file with special characters in path and file name(查找問題daw.wav) and
i am unable to get information in any way ,
10 matches
Mail list logo