Python help
Author |
Message |
Amailer

|
Posted: Fri Oct 22, 2004 5:59 pm Post subject: Python help |
|
|
code: |
Python Exception Occurred
Traceback (most recent call last):
File "../lib\viewcvs.py", line 2625, in run_cgi
main()
File "../lib\viewcvs.py", line 2578, in main
view_directory(request)
File "../lib\viewcvs.py", line 1115, in view_directory
file_data = get_file_data(full_name)
File "../lib\viewcvs.py", line 682, in get_file_data
return get_file_tests(full_name,files)
File "../lib\viewcvs.py", line 687, in get_file_tests
uid = os.getuid()
AttributeError: 'module' object has no attribute 'getuid'
|
Im getting this error and since I don't know anything in Python, can anyone help me? its for the viewcvs-- i installed pythin 2.3 or w/e with apache as a module, the script was working until I did the update (from 7.0 something to 9.2 :S).
Anyone know what's wrong?
http://cvs2.gfx-pro.ath.cx |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Amailer

|
Posted: Fri Oct 22, 2004 6:03 pm Post subject: (No subject) |
|
|
OH yeah, I got a an error just like this one but that was before I had installed Python correctly or atleast I think its installed correctly seems to be.
code: |
LoadModule python_module modules/mod_python.so
|
loaded it as a module
Apache sig wrote:
Apache/2.0.49 mod_python/3.1.3 Python/2.3.4 Server at www.gfx-pro.ath.cx Port 80
seems to be installed right?
Anyway, as i said after I upgraded the viewcvs script, it stopped working and I returned to what I was about 2 weeks ago And im trying to remember what I did to make it work
hehe. |
|
|
|
|
 |
wtd
|
Posted: Fri Oct 22, 2004 7:00 pm Post subject: (No subject) |
|
|
The getuid() method in the os module is only available on *nix platforms.
There may be another fix, but I can't say without seeing the whole script, and I can't even then guarantee changes won't affect the program in ways I can't foresee. |
|
|
|
|
 |
Amailer

|
Posted: Fri Oct 22, 2004 7:05 pm Post subject: (No subject) |
|
|
wtd wrote: The getuid() method in the os module is only available on *nix platforms.
There may be another fix, but I can't say without seeing the whole script, and I can't even then guarantee changes won't affect the program in ways I can't foresee.
You can download the whole script at http://viewcvs.sourceforge.net/#Download
and um, yeah i have no idea what the getuid() method is and how to enable it. If you could tell me ill try. |
|
|
|
|
 |
wtd
|
Posted: Fri Oct 22, 2004 7:13 pm Post subject: (No subject) |
|
|
Amailer wrote: wtd wrote: The getuid() method in the os module is only available on *nix platforms.
There may be another fix, but I can't say without seeing the whole script, and I can't even then guarantee changes won't affect the program in ways I can't foresee.
You can download the whole script at http://viewcvs.sourceforge.net/#Download
and um, yeah i have no idea what the getuid() method is and how to enable it. If you could tell me ill try.
os.getuid.__doc__ wrote: getuid() -> uid
Return the current process's user id.
There's no way to enable it. Bitch at Microsoft about that. |
|
|
|
|
 |
Amailer

|
Posted: Fri Oct 22, 2004 10:56 pm Post subject: (No subject) |
|
|
wtd wrote: Amailer wrote: wtd wrote: The getuid() method in the os module is only available on *nix platforms.
There may be another fix, but I can't say without seeing the whole script, and I can't even then guarantee changes won't affect the program in ways I can't foresee.
You can download the whole script at http://viewcvs.sourceforge.net/#Download
and um, yeah i have no idea what the getuid() method is and how to enable it. If you could tell me ill try.
os.getuid.__doc__ wrote: getuid() -> uid
Return the current process's user id.
There's no way to enable it. Bitch at Microsoft about that.
Agr, not another M$ thing -.-.
But this has to be fixed because it worked before, unless they added something new in this version (but the error looks the same).
Oh well, thanks anyways.
EDIT: I am positive now that I had the same error before, I posted it on SF.net (their support page, no reply) and after I installed Python as a module with Apache it suddenly worked now after I upgraded it doesn't work anymore :S I must have done some editing which I can't remember |
|
|
|
|
 |
Amailer

|
Posted: Sat Oct 23, 2004 12:48 am Post subject: (No subject) |
|
|
Ahh, their new version fixed it!
Well their new under developement version.
http://cvs.gfx-pro.ath.cx/viewcvs.cgi/
do you know what chora is? |
|
|
|
|
 |
wtd
|
Posted: Sat Oct 23, 2004 3:31 am Post subject: (No subject) |
|
|
Amailer wrote: Ahh, their new version fixed it!
Well their new under developement version.
http://cvs.gfx-pro.ath.cx/viewcvs.cgi/
 do you know what chora is?
Nope.
Glad you got it resolved. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
|
|