Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76546
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <furqan@geekschicago.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.028 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; '(python': 0.07; 'subject:file': 0.07; 'subject:skip:s 10': 0.07; 'except:': 0.09; 'lawrence': 0.09; "people's": 0.09; 'cc:addr:python-list': 0.11; 'language.': 0.14; 'i.e': 0.16; 'party)': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'all,': 0.19; 'ticket': 0.19; '>>>': 0.22; 'example': 0.22; 'aug': 0.22; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'exists': 0.24; 'rid': 0.24; 'helpful': 0.24; 'cc:2**0': 0.24; 'handling': 0.26; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'character': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'didnt': 0.31; 'exceptions': 0.31; 'file': 0.32; 'url:python': 0.33; 'third': 0.33; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; '8bit%:17': 0.36; '8bit%:9': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'skip:o 20': 0.38; 'needed': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'how': 0.40; 'read': 0.60; 'skip:\xc2 10': 0.60; 'skip:t 30': 0.61; 'mentioned': 0.61; 'first': 0.61; "you've": 0.63; 'information': 0.63; 'name': 0.63; 'our': 0.64; 'more': 0.64; 'believe': 0.68; '8bit%:21': 0.69; 'special': 0.74; 'bare': 0.84; 'replay': 0.84; 'to:addr:yahoo.co.uk': 0.84; '*best': 0.91; '*thanks': 0.91; 'regards*': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=geekschicago.com; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=+nya23f6a4KoGzQen+zob3SSoyeJgf9GtNF2anFQm7w=; b=qRnXot+o8JrwyECcTz9q2lY+CBFdlfV1ISeIg6ABrmMKcSvLe8s0eaT2WI15u9VWYI +N0MWm13Sq+Exi8xGKnWMNvEF/Rt/zuuTZSYdGkm7G5YnchZZcmBdcZ4/aYa8c/tVejZ /98rn7Pxc19DGcYSJ+82UgJGmo59Rw0EvODak= |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=+nya23f6a4KoGzQen+zob3SSoyeJgf9GtNF2anFQm7w=; b=VWsPOiV7c302Y3nPZoETpxKnq7aneGdjUthSTVsDqtg887h0X88VPsGDlQEBxB39wK cjYue2xiVDwI8RuTjeLdtUxvzk3k2szMKtkC2fJSBkvqdj6GJ+V8NPZyXdyxrevUyiiz 8c04HNuYYTidtngOP8XwD3j5LS2J4ZrwgzL+3dDBQxzU6gzQOZUQc9uOOo0DVCUUCog/ IHqfbi6vGYsIjx3noIGWOTWJaVyMCkggjCgBB3QTRlheyPCUJ1mcWBTjkf2Dy/piyKxg 0Xg1N8cz2XTXm66oHVqRvF8F+ECe+5lpwrp0iDpDvYoZ6ohNUe49oNv44jXlE3areJ1s 2nww== |
| X-Gm-Message-State | ALoCoQkaFxLOMdFJPlMuwV68TnWdhwaJiqb6RIl6RXo4R080hsZ1B8gdYCcU99PrDbJk4K28KDCp |
| X-Received | by 10.224.69.136 with SMTP id z8mr63374743qai.60.1408435574341; Tue, 19 Aug 2014 01:06:14 -0700 (PDT) |
| MIME-Version | 1.0 |
| Sender | furqan@geekschicago.com |
| X-Originating-IP | [202.166.163.98] |
| In-Reply-To | <lsuvu9$gjh$1@ger.gmane.org> |
| References | <CABy8q84h2Cs9o9byiPC6wsOu_=E49tRagxrVerrKCBBxFv73+g@mail.gmail.com> <CAPTjJmrcmBLeBY9Wo-twvT1KVq0MP5LnLPAE8kKrnaN8W8Bg7g@mail.gmail.com> <lsuvu9$gjh$1@ger.gmane.org> |
| From | Furqan wasi <furqan@avpreserve.com> |
| Date | Tue, 19 Aug 2014 13:05:34 +0500 |
| X-Google-Sender-Auth | lfXYoMChmHCeF0AjSa2PhzMwyP0 |
| Subject | Re: python scikits.audiolab Sndfile special chars in file name |
| To | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Content-Type | multipart/alternative; boundary=001a11c28f221939460500f6f698 |
| X-Mailman-Approved-At | Tue, 19 Aug 2014 10:45:57 +0200 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13134.1408437958.18130.python-list@python.org> (permalink) |
| Lines | 151 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1408437958 news.xs4all.nl 2889 [2001:888:2000:d::a6]:37688 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:76546 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
*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 (python third party) is
not reading file with special character in its 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
let me know if you need more information about this ticket
*Thanks *
On Tue, Aug 19, 2014 at 12:55 PM, Mark Lawrence <breamoreboy@yahoo.co.uk>
wrote:
> On 19/08/2014 02:42, Chris Angelico wrote:
>
>> On Tue, Aug 19, 2014 at 1:34 AM, Furqan wasi <furqan@avpreserve.com>
>> 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 you've got rid of your coding errors, add the ones you do need
> to catch, for example FileNotFoundError is often needed in people's code.
>
> --
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
>
> Mark Lawrence
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
*Best Regards*
Furqan Wasi
*AVPreserve *
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python scikits.audiolab Sndfile special chars in file name Furqan wasi <furqan@avpreserve.com> - 2014-08-19 13:05 +0500
csiph-web