Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19814

Re: Python embeded in c++ application. Can't load python module if application is placed in folder with unicode chars.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:module': 0.04; 'subject:Python': 0.05; 'correspond': 0.07; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; '5.3.': 0.09; 'path.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:python': 0.10; 'subject:application': 0.15; '(system': 0.16; '2.7.2': 0.16; 'language)': 0.16; 'mismatch': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'subject:folder': 0.16; 'subject:load': 0.16; 'subject:unicode': 0.16; 'wrote:': 0.16; 'language': 0.17; 'jan': 0.19; 'header:In-Reply-To:1': 0.22; 'settings': 0.24; 'module': 0.26; 'pm,': 0.26; 'load': 0.26; 'import': 0.27; 'tried': 0.27; 'example': 0.28; 'error': 0.30; 'sort': 0.32; 'header:User- Agent:1': 0.33; 'to:addr:python-list': 0.33; 'header:X-Complaints- To:1': 0.34; 'folder': 0.35; 'problem.': 0.36; 'url:python': 0.36; 'but': 0.37; 'received:org': 0.37; 'easiest': 0.38; 'subject:with': 0.38; 'url:docs': 0.39; 'url:org': 0.39; 'help': 0.39; 'subject:: ': 0.39; 'change': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'link': 0.63; 'subject:. ': 0.64; '8bit%:100': 0.69; 'skip:\xd0 20': 0.77; 'ascii.': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Python embeded in c++ application. Can't load python module if application is placed in folder with unicode chars.
Date Thu, 02 Feb 2012 19:26:27 -0500
References <CAF4f3cPTB7+KQ+p3yzuzDyPFKpaX4aAE9Hnr+pRXa8BXP7rUAA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <CAF4f3cPTB7+KQ+p3yzuzDyPFKpaX4aAE9Hnr+pRXa8BXP7rUAA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5381.1328228805.27778.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1328228805 news.xs4all.nl 6866 [2001:888:2000:d::a6]:55732
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19814

Show key headers only | View raw


On 2/2/2012 6:37 PM, Сергей Владимирович wrote:
> Hello. Please help me to import python module in my application that
> has python 2.7.2 embeded.
> I tried example from this link
> http://docs.python.org/extending/embedding.html#embedding-python-in-c
> paragraph 5.3.
> If i place program in folder D:\temp\test_python\test_pythonævnes
> på\Debug I will get error - Failed to load "multiply".
> My localization settings (system language) don't correspond the chars'
> language used in path.

Easiest is to change your folder name to all ascii. This sort of thing 
will work better in future 3.x, but even then, a mismatch between 
encodings is a problem.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python embeded in c++ application. Can't load python module if application is placed in folder with unicode chars. Terry Reedy <tjreedy@udel.edu> - 2012-02-02 19:26 -0500

csiph-web