Opened 11 years ago

Closed 9 years ago

# TracForge uses os.fork which do not exists on Windows

Reported by: Owned by: Leandro Conde Noah Kantrowitz normal TracForgePlugin blocker Leandro Conde 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)
path_info)
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?

### comment:1 follow-up:  2 Changed 11 years ago by Noah Kantrowitz

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

### comment:2 in reply to:  1 Changed 11 years ago by Leandro Conde

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.

### comment:3 follow-up:  4 Changed 11 years ago by Noah Kantrowitz

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.

### comment:4 in reply to:  3 Changed 11 years ago by Leandro Conde

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.

### comment:5 Changed 11 years ago by Noah Kantrowitz

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

### comment:6 Changed 11 years ago by Leandro Conde

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

Best regards!

### comment:7 Changed 11 years ago by Noah Kantrowitz

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.

### comment:8 Changed 9 years ago by Pedro Algarvio, aka, s0undt3ch

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

### comment:9 Changed 9 years ago by Noah Kantrowitz

Yep, this system now actually exists.

### comment:10 Changed 9 years ago by Noah Kantrowitz

Resolution: → fixed new → closed

### Modify Ticket

Change Properties