Re: Varable parsing error with python

2015-02-10 Thread Steven D'Aprano
OmPs wrote: > On 10 Feb 2015 13:59, "OmPs" wrote: >> Tried that as well getting the same error. > > I feel its something to do with variable substitution. Python doesn't do variable substitution. At least not the way I think of it. What do you mean by "variable substitution"? Instead of "feel

Re: Varable parsing error with python

2015-02-10 Thread Dave Angel
On 02/10/2015 01:24 PM, Denis McMahon wrote: On Tue, 10 Feb 2015 18:39:42 +1100, Chris Angelico wrote: On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: def _getPackgeVersion(xmlfile, p): package = str(p) if isinstance(fpmdict["application"]["package"], list): f

Re: Varable parsing error with python

2015-02-10 Thread Denis McMahon
On Tue, 10 Feb 2015 18:39:42 +1100, Chris Angelico wrote: > On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: >> def _getPackgeVersion(xmlfile, p): >> package = str(p) >> if isinstance(fpmdict["application"]["package"], list): >> for i in fpmdict["application"]["package

Re: Varable parsing error with python

2015-02-10 Thread Dave Angel
On 02/10/2015 03:29 AM, OmPs wrote: On 10 Feb 2015 13:12, "Chris Angelico" wrote: On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: def _getPackgeVersion(xmlfile, p): package = str(p) if isinstance(fpmdict["application"]["package"], list): for i in fpmdict["app

Re: Varable parsing error with python

2015-02-10 Thread OmPs
On 10 Feb 2015 13:59, "OmPs" wrote: > > > On 10 Feb 2015 13:12, "Chris Angelico" wrote: > > > > On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: > > > def _getPackgeVersion(xmlfile, p): > > > package = str(p) > > > if isinstance(fpmdict["application"]["package"], list): > > >

Re: Varable parsing error with python

2015-02-10 Thread OmPs
On 10 Feb 2015 13:12, "Chris Angelico" wrote: > > On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: > > def _getPackgeVersion(xmlfile, p): > > package = str(p) > > if isinstance(fpmdict["application"]["package"], list): > > for i in fpmdict["application"]["package"]: >

Re: Varable parsing error with python

2015-02-09 Thread Chris Angelico
On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: > def _getPackgeVersion(xmlfile, p): > package = str(p) > if isinstance(fpmdict["application"]["package"], list): > for i in fpmdict["application"]["package"]: > if i["@name"] == p: > _

Varable parsing error with python

2015-02-09 Thread OmPs
In an XML file which contain a tag and then these tags contain properties, which later are being called in anoter tag where these properties are expanded as variables. For eg. 1.0 1.2 Red Hat Enterprise Linux Serv

Re: Error with python 3.3.2 and https

2013-05-24 Thread asianavatar
So apparently switching the http to https in the proxyHandler call did the trick. Thanks for all the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with python 3.3.2 and https

2013-05-23 Thread Chris Angelico
On Fri, May 24, 2013 at 3:49 AM, wrote: > > Yeah that is the case. Once I change the f = opener.open('website') line to a > link that has a https I get that socket error. Nothing else changes. I was > reading online and came across this site which shows you how if the version > of python insta

Re: Error with python 3.3.2 and https

2013-05-23 Thread asianavatar
Yeah that is the case. Once I change the f = opener.open('website') line to a link that has a https I get that socket error. Nothing else changes. I was reading online and came across this site which shows you how if the version of python installed supports ssl. http://morlockhq.blogspot.ca/20

Re: Error with python 3.3.2 and https

2013-05-23 Thread Chris Angelico
On Fri, May 24, 2013 at 2:12 AM, wrote: > I only have the http of the proxy. I guess I could find out the ip of it. > However, even if I use the http proxy address, why would it work for a http > site and not a https site if its the proxy that can't resolve. Can you post working code for HTTP

Re: Error with python 3.3.2 and https

2013-05-23 Thread asianavatar
I only have the http of the proxy. I guess I could find out the ip of it. However, even if I use the http proxy address, why would it work for a http site and not a https site if its the proxy that can't resolve. -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with python 3.3.2 and https

2013-05-23 Thread Chris Angelico
On Fri, May 24, 2013 at 1:48 AM, wrote: > I am trying to write a program that requires me hitting a https web link. > However, I can't seem to get it to work. The program works fine when dealing > with http sites, however, when I try it with a https site I get > > socket.gaierror: [Errno 11001]

Error with python 3.3.2 and https

2013-05-23 Thread asianavatar
I am trying to write a program that requires me hitting a https web link. However, I can't seem to get it to work. The program works fine when dealing with http sites, however, when I try it with a https site I get socket.gaierror: [Errno 11001] getaddrinfo failed It seems like it has something

Re: weird error with python 2.7 installer under windows 7

2010-09-22 Thread Martin v. Loewis
> Any ideas? Try running the postinstall script by hand. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

weird error with python 2.7 installer under windows 7

2010-09-21 Thread Robin Becker
A colleague gets this error while testing a bdist wininst installer under windows 7 professional. This is on the page where the Post install script output appears. In the upper part I see "Postinstall script finished. Click the Finish button to exit the setup wizard." In the bottom panel whe

Re: chronic error with python on mac os/x 10.5

2008-03-28 Thread martin . laloux
I don't known pjsip but this problem generally occurs when the library (dylib) on which the file (.so) depends is not the good one > Googling this issue show that it is happening to many > libraries in python on mac. ?? I am working in python on mac since a lot of time I seldom have such prob

chronic error with python on mac os/x 10.5

2008-03-28 Thread Tzury Bar Yochay
Although I am experiencing this problem using a specific domain library (pjsip). Googling this issue show that it is happening to many libraries in python on mac. I was wondering whether anyone solved this or alike in the past and might share what steps were taken. Note: this python lib works fine

Re: rare error with python at execution

2006-07-14 Thread Steve Holden
Fredrik Lundh wrote: > Luis Morales wrote: > > >>But now I get this error everytime I run a script and I have no idea. It can >>be a simple print 'hello' that it wont work >> >>This is the error I get >> >>'import site' failed; use -v for traceback >> >>Traceback (most recent call last): >> >> Fi

Re: rare error with python at execution

2006-07-06 Thread Fredrik Lundh
Luis Morales wrote: > But now I get this error everytime I run a script and I have no idea. It can > be a simple print 'hello' that it wont work > > This is the error I get > > 'import site' failed; use -v for traceback > > Traceback (most recent call last): > > File "D:\Archivos de programa\Acti

rare error with python at execution

2006-07-06 Thread Luis Morales
I was trying the win32api to gather some system information.   But now I get this error everytime I run a script and I have no idea. It can be a simple print ‘hello’ that it wont work   This is the error I get   'import site' failed; use -v for traceback Traceback (most recent call l

Re: strange import error with Python-2.4.1

2005-10-11 Thread Robin Becker
Fredrik Lundh wrote: > Steve Holden wrote: > > >>Can I ask if you are specifying a source encoding in your file with a >>pragma (?) like >> >># -*- coding: iso-8859-15 -*- >> >>I've noticed what appear to be spurious syntax errors from time to time >>on such files, and have been attempting to deb

Re: strange import error with Python-2.4.1

2005-10-11 Thread Steve Holden
Fredrik Lundh wrote: > Steve Holden wrote: > > >>Can I ask if you are specifying a source encoding in your file with a >>pragma (?) like >> >># -*- coding: iso-8859-15 -*- >> >>I've noticed what appear to be spurious syntax errors from time to time >>on such files, and have been attempting to deb

Re: strange import error with Python-2.4.1

2005-10-11 Thread Richard Brodie
"Robin Becker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This behaviour doesn't occur with 2.4.2 or 2.4 only with 2.4.1. I looked for > some bug fix in the recently released 2.4.2 that related, but couldn't find > anything obvious. One of the various codecs fixes, I think. Bu

Re: strange import error with Python-2.4.1

2005-10-11 Thread Fredrik Lundh
Steve Holden wrote: > Can I ask if you are specifying a source encoding in your file with a > pragma (?) like > > # -*- coding: iso-8859-15 -*- > > I've noticed what appear to be spurious syntax errors from time to time > on such files, and have been attempting to debug the problem for some > time

Re: strange import error with Python-2.4.1

2005-10-11 Thread Steve Holden
Robin Becker wrote: > Whilst testing the excellent xlrd http://www.python.org/pypi/xlrd/0.3a1 > I came across the following strangeness when trying to add an import of os to > assist with debugging/tracing. > > > At line 66 I replaced > > import sys > > with import sys, os > > and then ran py

strange import error with Python-2.4.1

2005-10-11 Thread Robin Becker
Whilst testing the excellent xlrd http://www.python.org/pypi/xlrd/0.3a1 I came across the following strangeness when trying to add an import of os to assist with debugging/tracing. At line 66 I replaced import sys with import sys, os and then ran python runxlrd.py --help and got this error wh

Re: Error with Python

2005-08-22 Thread Scott David Daniels
Robert wrote: > Hello > > I have created a tool in Python 2.3 under WinXP > Now I extended this tool and now my tool makes Python crash. I see Dr Watson > showing a stacktrace. > This tool also uses wxPython. > > Dr Watson says: > AppName: python.exe > AppVer: 0.0.0.0 > ModName: python23.dll > Mo

Error with Python

2005-08-22 Thread Robert
Hello I have created a tool in Python 2.3 under WinXP Now I extended this tool and now my tool makes Python crash. I see Dr Watson showing a stacktrace. This tool also uses wxPython. Dr Watson says: AppName: python.exe AppVer: 0.0.0.0 ModName: python23.dll ModVer: 2.3.5150.1012 Offset: 0003736a