| |
| |
| |
|
Comments:
<0> even the quality of the trolls has gone down ... <1> Good trolls are very rare <2> Hey guys. I'm trying to use mach (which is an open source chrooted build manager). I'm getting an error when I run it -- AttributeError: 'module' object has no attribute 'sep'. I'm using Python 2.2.3. Was the "sep" method something introduced in a newer version of python? <2> Here's the line causing the error -- pieces = dir.split (os.path.sep) <0> shouldn't be a problem, it's possible your Python installation is broken <2> This is CentOS 3.6 (RHES3).
<2> Any suggestions on how to check whether the Python install is fubar? <0> try running it manually <0> python -c 'import os; print os.path.sep' <2> AttributeError: 'module' object has no attribute 'sep' <0> hmm <0> ah, the problem is you want os.sep, not os.path.sep <2> Yes <0> that there's an os.path.sep is really coincidence and not something to rely on <2> Apparently this code is working somewhere. <0> yes, in some versions of Python it will work <2> Not mine, an opensource project -- mach.sf.net. <0> so submit a bug <2> What would be the more correct way to handle this? <2> I'll probably be shot for this here, but I'm a perl guy, completely lost in the python world. ;) <0> I just told you how to fix it: change references to os.path.sep to os.sep <2> xihr: Great, that worked. Thanks. <3> argh, this oop stuff is starting to get confusing now <0> OOP in general or Python's OOP <0> Python's OOP is among the cleanest and simplest to understand, so at least that's a plus for people learning OOP with Python <3> yeah, python's oop, im just having problems understanding inheritance <3> ehehe
<3> reading around the web, looking at examples sure helps though <4> ho hum. I'm running a process using os.system which gets some information from another process. I then need that information in a string. <4> how can I do that? <5> you should probably be using the subprocess module <5> or maybe not..are you on a linux system? <5> actually popen's probably the easiest thing <5> http://python.org/doc/2.4.2/lib/os-newstreams.html <4> yep, linux <5> then when you get it working, you might want to check for zombie processes; I'm not sure in what situations those appear :/ <6> anyone know of a method, or module, to convert a string into httpd compliant string <6> ie, a space becomes %20 <6> a tilde (~) becomes %5a or whatever <4> urm <4> urllib.quote <4> should do you quite nicely <6> Thanks! <4> you're welcome <7> blh! <7> hvorfor er det bare engelske kanaler p en norsk server??? <8> ... <9> Yeah, soz. <9> Didn't know about the EFNET 8-character nick limitations. <10> hello <11> hi motohead2
Return to
#python or Go to some related
logs:
can i know what is my motherbord name and model myspace/jenn tcl leap year Reginald Newell NSF funding #computers #winxp #unixhelp #windows #nintendo sensimellia street
|
|