Error 1 during install of python 2.5 on CentOS
Hi guys, I'm running CentOS 4.4 and the current version on my system is Python 2.3.4. Ideally I wanted to use an RPM to update the system python but a lot of dependencies failed and since I need to run the latest Python for a particular script, I read on this group somewhere a suggestion to run both on the same server and use: "make altinstall" So I downloaded the 2.5 tarball and ran ./configure and then 'make altinstall' Somewhere during the make it gave these errors. It continued after the first error below but then that "Error 1" error is the last line and it stopped there. These are the errors: Sorry: UnicodeError: ("\\N escapes not supported (can't load unicodedata module)",) make: *** [libinstall] Error 1 I can't find any information about this error. I'm kind of new to compiling from sources so I don't what to do from here. /usr/bin has no phython2.5 in it, so I take it the install didn't complete. Any ideas what to do from here? Thanks Nat -- http://mail.python.org/mailman/listinfo/python-list
Regarding an exciting opportunity in PYTHON at Hyderabad
We have been looking for Senior Professional based at Hyderabad for one of our clients which an upcoming Product development company based out of hyderabad . I would appreciate if you can repond back with your profile at [EMAIL PROTECTED] would get back to you with complete details and accordingly we can go ahead. Job Description: Need to have 2-4 years of experience. Should have strong understanding of Project management and SDLC. Technology is flexible. Can have experience in either of python(C, C+ +),Java or .NET. Thanks and Regards Natraj.J Möbius Consulting Pvt. Ltd. -- http://mail.python.org/mailman/listinfo/python-list
Re: HTTP server + SQLite?
interesting natalie5...@hotmail.co.jp natalie53...@yahoo.co.jp natalie5...@gmail.com wlipgf...@jupiter.ocn.ne.jp natalie5...@mbr.nifty.com natalie5...@xqg.biglobe.ne.jp natalie5...@zpost.plala.or.jp -- http://mail.python.org/mailman/listinfo/python-list
how can I disable tkinter install?
I am building Python 2.7.2 with a standard set of options as part of a nightly build system. Some of our machines apparently have the tk headers installed, so Python automatically builds Tkinter on those platforms. Unfortunately, this now breaks matplotlib. Is there a way to turn of tkinter altogether? I am using wxPython anyway and do not want or need another set of GUI libraries, especially not if they're breaking other software. thanks, Nat -- http://mail.python.org/mailman/listinfo/python-list
symlinks with python3 http.server.CGIHTTPRequestHandler
Is it possible to get http.server.CGIHTTPRequestHandler to run a symlink-ed script? In the example below, GET /cgi-bin/test.py results in a 404 because it is a symlink. % mkdir -p test/cgi-bin % cd test % vi test.py % chmod +x test.py % ln -s test.py cgi-bin % cp test.py cgi-bin/test2.py % chmod +x cgi-bin/test2.py % python3 -m http.server --cgi 8090 Serving HTTP on :: port 8090 (http://[::]:8090/) ... ::1 - - [06/Jan/2022 09:21:48] code 404, message No such CGI script ('/cgi-bin/test.py') ::1 - - [06/Jan/2022 09:21:48] "GET /cgi-bin/test.py HTTP/1.1" 404 - ::1 - - [06/Jan/2022 09:21:59] "GET /cgi-bin/test2.py HTTP/1.1" 200 - -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I install libxml2 and libxslt?
On Mon, Nov 2, 2009 at 9:41 AM, Kevin Ar18 wrote: > I want to use the lxml library, but can't get it to work on Windows. > > The following will not work: > * import libxml2 > * import libxslt > * from lxml import etree > > Here's the instructions: > http://codespeak.net/lxml/installation.html > > * So, I run "easy_install lxml" -- that works! > * Now, it says I need to install libxml2 and libxslt... how do I do that? > ...so, I download the libxml2 and libxslt pre-built Windows binaries here: > http://www.zlatkovic.com/pub/libxml/ > Now what do I do with them? > I opened the zip files and copied the bin directories to Python\Lib ... > like this: Python\Lib\libxml2\libxml2.dll ... that doesn't work. I copy just > dll to Python\DLLs ... that doesn't work. > > What now? > According to the lxml installation instructions you linked, the windows lxml binary is statically linked and you do not need to install the libraries separately. If 'from lxml import etree' works, then you're done. libxml2 and libxslt are C libraries, not things that you can or would import. The joy of lxml is not having to deal with those libraries on your own. Nat -- http://mail.python.org/mailman/listinfo/python-list
Re: Newbie Question regarding __init__()
As MRAB described, ALL instance methods need to accept 'self' as a first parameter, as that will be passed to them implicitly when they are called. This includes __init__. The name 'self' is just a commonly accepted convention for the name of the instance object passed to methods. You don't have to call it that, but you really should. Take a look at http://docs.python.org/tutorial/classes.html#class-objects It might help shed some light on how methods and instances work. One other thing. I'm a little confused by the first line of dcObject.__init__: self.init_Pre() and self.init_Exec() I suspect this does not do what you think it does. init_Pre and init_Exec will both be called by this expression (unless init_Pre throws an exception, of course). You're not getting anything here that you wouldn't by just calling each method on a separate line, except just making it harder to read. Nat On Fri, Jul 31, 2009 at 8:53 PM, Simon wrote: > Hi > > So should the dcObject class include the "self" as well since I have > not defined an __init__ method in dcCursor? > > Simon > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
Re: Inheriting dictionary
On Tue, Aug 18, 2009 at 2:44 PM, Pavel Panchekha wrote: > I want a dictionary that will transparently "inherit" from a parent > dictionary. So, for example: > > """ > a = InheritDict({1: "one", 2: "two", 4: "four"}) > b = InheritDict({3: "three", 4: "foobar"}, inherit_from=a) > > a[1] # "one" > a[4] # "four" > b[1] # "one" > b[3] # "three" > b[4] # "foobar" > """ > > I've written something like this in Python already, but I'm wondering > if something like this already exists, preferably written in C, for > speed. Why complicate this with a custom object? Just use regular dicts and make b a copy of a. a = {1: 'one', 2: 'two', 4: 'four'} b = dict(a) b[3] = 'three' b[4] = 'foobar' -- http://mail.python.org/mailman/listinfo/python-list