Modify

Opened 8 years ago

Closed 7 years ago

#956 closed defect (fixed)

TracForge uses os.fork which do not exists on Windows

Reported by: leeus Owned by: coderanger
Priority: normal Component: TracForgePlugin
Severity: blocker Keywords:
Cc: leandor@… 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 (0)

Change History (10)

comment:1 follow-up: Changed 8 years ago by coderanger

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 8 years ago 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.

comment:3 follow-up: Changed 8 years ago 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.

comment:4 in reply to: ↑ 3 Changed 8 years ago 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.

comment:5 Changed 8 years ago by coderanger

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

comment:6 Changed 8 years ago 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!

comment:7 Changed 8 years ago 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.

comment:8 Changed 7 years ago by s0undt3ch

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

comment:9 Changed 7 years ago by coderanger

Yep, this system now actually exists.

comment:10 Changed 7 years ago by coderanger

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.