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


Groups > comp.lang.python > #30457 > unrolled thread

Missing library path (WIndows)

Started byFPEFPE <fpesposito@gmail.com>
First post2012-09-28 19:39 -0700
Last post2012-09-29 13:32 -0700
Articles 5 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Missing library path (WIndows) FPEFPE <fpesposito@gmail.com> - 2012-09-28 19:39 -0700
    Re: Missing library path (WIndows) Kwpolska <kwpolska@gmail.com> - 2012-09-29 10:01 +0200
      Re: Missing library path (WIndows) FPEFPE <fpesposito@gmail.com> - 2012-09-29 13:32 -0700
        Re: Missing library path (WIndows) Kwpolska <kwpolska@gmail.com> - 2012-09-30 14:04 +0200
      Re: Missing library path (WIndows) FPEFPE <fpesposito@gmail.com> - 2012-09-29 13:32 -0700

#30457 — Missing library path (WIndows)

FromFPEFPE <fpesposito@gmail.com>
Date2012-09-28 19:39 -0700
SubjectMissing library path (WIndows)
Message-ID<8cab2c34-7594-471a-80e9-47206bd3ea32@googlegroups.com>
Hello -- I am running python from an application, starting it with a call to the python31.dll

I think I am missing something in my path -- any help would be appreciated -- thanks

Here is the script and the output ---

# this is a test

import sys

print('hello from python')

print('Number of arguments:', len(sys.argv), 'arguments.')

print('Argument List:', str(sys.argv))

#--------------------------------------------------#
#  o u t p u t                                     #
#--------------------------------------------------#

Argument List: hello from python

Number of arguments: 5 arguments.

Traceback (most recent call last):

File "", line 1, in

File "C:/DOCUME~1/Frank/LOCALS~1/Temp/foo.py", line 10, in

print('Argument List:', str(sys.argv))

File "C:\Python32\Lib\encodings\cp437.py", line 19, in encode

return codecs.charmap_encode(input,self.errors,encoding_map)[0]

UnicodeEncodeError: 'charmap' codec can't encode characters in position 2-18: character maps to

[toc] | [next] | [standalone]


#30468

FromKwpolska <kwpolska@gmail.com>
Date2012-09-29 10:01 +0200
Message-ID<mailman.1608.1348905689.27098.python-list@python.org>
In reply to#30457
On Sat, Sep 29, 2012 at 4:39 AM, FPEFPE <fpesposito@gmail.com> wrote:
> Hello -- I am running python from an application, starting it with a call to the python31.dll
>
> I think I am missing something in my path -- any help would be appreciated -- thanks

Nope, you are not.

> File "C:\Python32\Lib\encodings\cp437.py", line 19, in encode
>
> return codecs.charmap_encode(input,self.errors,encoding_map)[0]
>
> UnicodeEncodeError: 'charmap' codec can't encode characters in position 2-18: character maps to
> --
> http://mail.python.org/mailman/listinfo/python-list

Python has problems with encoding the arguments to look properly with
the crappy Windows cmd.exe encodings. They cannot be encoded for some
reason.  You may need magic, but I’m not quite sure what in Py3k
(bytestrings?)

-- 
Kwpolska <http://kwpolska.tk>
stop html mail      | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
GPG KEY: 5EAAEA16

[toc] | [prev] | [next] | [standalone]


#30528

FromFPEFPE <fpesposito@gmail.com>
Date2012-09-29 13:32 -0700
Message-ID<21e6fb32-ee1e-429d-ba6f-276c8208ca78@googlegroups.com>
In reply to#30468
On Saturday, September 29, 2012 4:02:13 AM UTC-4, Kwpolska wrote:
> On Sat, Sep 29, 2012 at 4:39 AM, FPEFPE  wrote:
> 
> > Hello -- I am running python from an application, starting it with a call to the python31.dll
> 
> >
> 
> > I think I am missing something in my path -- any help would be appreciated -- thanks
> 
> 
> 
> Nope, you are not.
> 
> 
> 
> > File "C:\Python32\Lib\encodings\cp437.py", line 19, in encode
> 
> >
> 
> > return codecs.charmap_encode(input,self.errors,encoding_map)[0]
> 
> >
> 
> > UnicodeEncodeError: 'charmap' codec can't encode characters in position 2-18: character maps to
> 
> > --
> 
> > http://mail.python.org/mailman/listinfo/python-list
> 
> 
> 
> Python has problems with encoding the arguments to look properly with
> 
> the crappy Windows cmd.exe encodings. They cannot be encoded for some
> 
> reason.  You may need magic, but I’m not quite sure what in Py3k
> 
> (bytestrings?)
> 
> 
> 
> -- 
> 
> Kwpolska <http://kwpolska.tk>
> 
> stop html mail      | always bottom-post
> 
> www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
> 
> GPG KEY: 5EAAEA16

Hello -- thanks for the reply ... is "magic" a debugging tool?

[toc] | [prev] | [next] | [standalone]


#30549

FromKwpolska <kwpolska@gmail.com>
Date2012-09-30 14:04 +0200
Message-ID<mailman.1669.1349006698.27098.python-list@python.org>
In reply to#30528
On Sat, Sep 29, 2012 at 10:32 PM, FPEFPE <fpesposito@gmail.com> wrote:
> On Saturday, September 29, 2012 4:02:13 AM UTC-4, Kwpolska wrote:
>>
>> Python has problems with encoding the arguments to look properly with
>>
>> the crappy Windows cmd.exe encodings. They cannot be encoded for some
>>
>> reason.  You may need magic, but I’m not quite sure what in Py3k
>>
>> (bytestrings?)
>>
>>
>>
>> --
>>
>> Kwpolska <http://kwpolska.tk>
>>
>> stop html mail      | always bottom-post
>>
>> www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
>>
>> GPG KEY: 5EAAEA16
>
> Hello -- thanks for the reply ... is "magic" a debugging tool?
> --
> http://mail.python.org/mailman/listinfo/python-list

No, no, no!  I meant “do some magic with the string”.  In Py2k, it
would be str.decode(), but I don’t know what to do in Py3k.

-- 
Kwpolska <http://kwpolska.tk>
stop html mail      | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
GPG KEY: 5EAAEA16

[toc] | [prev] | [next] | [standalone]


#30529

FromFPEFPE <fpesposito@gmail.com>
Date2012-09-29 13:32 -0700
Message-ID<mailman.1654.1348950756.27098.python-list@python.org>
In reply to#30468
On Saturday, September 29, 2012 4:02:13 AM UTC-4, Kwpolska wrote:
> On Sat, Sep 29, 2012 at 4:39 AM, FPEFPE  wrote:
> 
> > Hello -- I am running python from an application, starting it with a call to the python31.dll
> 
> >
> 
> > I think I am missing something in my path -- any help would be appreciated -- thanks
> 
> 
> 
> Nope, you are not.
> 
> 
> 
> > File "C:\Python32\Lib\encodings\cp437.py", line 19, in encode
> 
> >
> 
> > return codecs.charmap_encode(input,self.errors,encoding_map)[0]
> 
> >
> 
> > UnicodeEncodeError: 'charmap' codec can't encode characters in position 2-18: character maps to
> 
> > --
> 
> > http://mail.python.org/mailman/listinfo/python-list
> 
> 
> 
> Python has problems with encoding the arguments to look properly with
> 
> the crappy Windows cmd.exe encodings. They cannot be encoded for some
> 
> reason.  You may need magic, but I’m not quite sure what in Py3k
> 
> (bytestrings?)
> 
> 
> 
> -- 
> 
> Kwpolska <http://kwpolska.tk>
> 
> stop html mail      | always bottom-post
> 
> www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
> 
> GPG KEY: 5EAAEA16

Hello -- thanks for the reply ... is "magic" a debugging tool?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web