Ticket #956 (closed defect: fixed)

Opened 2 years ago

Last modified 2 months ago

TracForge uses os.fork which do not exists on Windows

Reported by: leeus Assigned to: coderanger
Priority: normal Component: TracForgePlugin
Severity: blocker Keywords:
Cc: leandor@gmail.com Trac Release: 0.10

Description

I've managed to setup this plugin and to configure ir, but, when I try to create one subproject, it fails with this Traceback:

Traceback (most recent call last):
  File "C:\SOFT\Python24\Lib\site-packages\trac\web\main.py", line 379, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\SOFT\Python24\Lib\site-packages\trac\web\main.py", line 230, in dispatch
    resp = chosen_handler.process_request(req)
  File "c:\soft\python24\lib\site-packages\TracWebAdmin-0.1.2dev_c1_r4152-py2.4.egg\webadmin\web_ui.py", line 109, in process_request
    path_info)
  File "c:\soft\python24\lib\site-packages\tracforge-1.0-py2.4.egg\tracforge\admin\admin.py", line 38, in process_admin_request
    proto.apply(req, proj)
  File "c:\soft\python24\lib\site-packages\tracforge-1.0-py2.4.egg\tracforge\admin\model.py", line 255, in apply
    pid = os.fork()
AttributeError: 'module' object has no attribute 'fork'

This is a showstopper for me because in my work site I do not have a Linux server available for installing Apache+Trac, so I do have a Windows server which I managed to setup and it has been working now for months.

Is there are any patch for this issue?? Can I manage to change this on my own?

Thanks for any reply.

Attachments

Change History

(follow-up: ↓ 2 ) 11/30/06 21:07:58 changed by coderanger

That feature is still under development. I will deal with Windows compatibility once I get it working correctly under Linux.

(in reply to: ↑ 1 ) 11/30/06 21:22:56 changed by leeus

Replying to coderanger:

That feature is still under development. I will deal with Windows compatibility once I get it working correctly under Linux.

Thanks for the quick reply ...

Please, let me know if I can be of any help ... I'm eager to have this working ... but no rush at all :)

Are there any other way in which I could add the subprojects to TracForge? bypassing this part of the code??

I have already created the child projects via the normal trac-admin way ...

I was interested in the subscription features and centralized user permissions ...

Kind regards, Leandro.

(follow-up: ↓ 4 ) 11/30/06 21:26:08 changed by coderanger

Just make a prototype with nothing in it. This will add the project to the tracforge database without trying to do any of the funky (and broken) stuff.

(in reply to: ↑ 3 ) 11/30/06 21:44:44 changed by leeus

Replying to coderanger:

Just make a prototype with nothing in it. This will add the project to the tracforge database without trying to do any of the funky (and broken) stuff.

Thanks for the tip. I did try and get this:

You must have at least one step in a prototype

Thanks again.

11/30/06 21:50:07 changed by coderanger

Ahh, good point. I just uploaded a new copy of prototypes.py that has a DoNothingAction. That should do it methinks.

11/30/06 22:21:18 changed by leeus

Thanks very much. It worked! But, before that I didn't have seen that it added the projects to the list, nevertheless.

Best regards!

11/30/06 22:26:55 changed by coderanger

Normally if a build step fails you wouldn't want it to add the project. I'll add some kind of disclaimer to the wiki page about this. Thanks for trying out tracforge.

05/17/08 05:27:44 changed by s0undt3ch

This appears to be fixed on the 0.11 branch of TracForgePlugin.

05/17/08 05:30:40 changed by coderanger

Yep, this system now actually exists.

05/17/08 05:30:45 changed by coderanger

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #956 (TracForge uses os.fork which do not exists on Windows)




Change Properties
Action