Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error accessing trac for the first time
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BA  
View profile  
 More options Mar 31 2009, 7:44 am
From: BA <brend...@gmail.com>
Date: Tue, 31 Mar 2009 04:44:59 -0700 (PDT)
Local: Tues, Mar 31 2009 7:44 am
Subject: Error accessing trac for the first time
Hello:

I am receiving this error in the Apache log file when I try to access
http://localhost/trac/

mod_wsgi (pid=1212): Target WSGI script 'C:/projects/cbs/wsgi/
cbs.wsgi' cannot be loaded as Python module.
mod_wsgi (pid=1212): Exception occurred processing WSGI script 'C:/
projects/cbs/wsgi/cbs.wsgi'.
Traceback (most recent call last):
  File "C:/projects/cbs/wsgi/cbs.wsgi", line 6, in <module>
    import trac.web.main
  File "c:\\python\\python26\\lib\\site-packages\\Trac-0.11.3-py2.6.egg
\\trac\\web\\__init__.py", line 12, in <module>
    from trac.web.api import *
  File "c:\\python\\python26\\lib\\site-packages\\Trac-0.11.3-py2.6.egg
\\trac\\web\\api.py", line 17, in <module>
    from BaseHTTPServer import BaseHTTPRequestHandler
  File "C:\\python\\python26\\lib\\BaseHTTPServer.py", line 75, in
<module>
    import socket # For gethostbyaddr()
  File "C:\\python\\python26\\lib\\socket.py", line 46, in <module>
    import _socket
ImportError: DLL load failed: The specified module could not be found.

Trac works when I use the standalone server (tracd).
I'm using:
Python 2.6 (latest)
PostgreSQL 8.3 (latest)
psycopg2
mod_wsgi (which seems to work when I use the example script, apache
seems to be configured correctly)
Apache 2.2 (latest)

Can anybody give me a hand?

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Mar 31 2009, 6:47 pm
From: Graham Dumpleton <Graham.Dumple...@gmail.com>
Date: Tue, 31 Mar 2009 15:47:17 -0700 (PDT)
Local: Tues, Mar 31 2009 6:47 pm
Subject: Re: Error accessing trac for the first time

On Mar 31, 10:44 pm, BA <brend...@gmail.com> wrote:

In your WSGI hello world example script add:

  import socket

Then you will find it probably fails.

Then replace that with:

  import sys
  print >> sys.stderr, sys.path

Look in the Apache error log for what sys.path is dumped out as.

Then search your system for file called '_socket.so'. Presuming that
is Python modules still have .so extension on Windows, can't remember.

If that directory isn't in sys.path, then likely that your Python
module search path is screwed, possibly because of broken Windows
registry entries.

Post results of what you get for sys.path and where the _socket
extension module is located.

Graham


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BA  
View profile  
 More options Apr 1 2009, 3:12 pm
From: BA <brend...@gmail.com>
Date: Wed, 1 Apr 2009 12:12:14 -0700 (PDT)
Local: Wed, Apr 1 2009 3:12 pm
Subject: Re: Error accessing trac for the first time
Hello Graham:

Thank you for your response.

You are correct, adding "import socket" causes an error.

This is what I get from  printing the sys.path (formatted for easier
reading):
['C:\\\\python\\\\python26\\\\lib\\\\site-packages\\\\genshi-0.5.1-
py2.6.egg',
'C:\\\\WINDOWS\\\\system32\\\\python26.zip',
'C:\\\\python\\\\python26\\\\Lib',
'C:\\\\python\\\\python26\\\\DLLs',
'C:\\\\python\\\\python26\\\\Lib\\\\lib-tk',
'C:\\\\Program Files\\\\Apache Software Foundation\\\\Apache2.2',
'C:\\\\Program Files\\\\Apache Software Foundation\\\\Apache2.2\\\
\bin',
'C:\\\\python\\\\python26',
'C:\\\\python\\\\python26\\\\lib\\\\site-packages']

I found _socket.pyd in the c:\python\python26\dlls folder.

I looked in the registry and in the PythonPath it includes the same
folders except for the Apache folders.

Any more ideas?

I'm thinking of starting over with Python 2.5...

On Mar 31, 5:47 pm, Graham Dumpleton <Graham.Dumple...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Adding custom field to tickets" by Sajjad Akhter
Sajjad Akhter  
View profile  
 More options Apr 1 2009, 7:06 pm
From: "Sajjad Akhter" <sajjadakh...@gmail.com>
Date: Wed, 1 Apr 2009 16:06:34 -0700
Local: Wed, Apr 1 2009 7:06 pm
Subject: Adding custom field to tickets
Hi,

How can I add custom field like "Deadline" for tickets.

Thanks,
Sajjad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pacôme MASSOL  
View profile  
 More options Apr 2 2009, 4:07 am
From: Pacôme MASSOL <pacome.mas...@crdp-aix-marseille.fr>
Date: Thu, 02 Apr 2009 10:07:55 +0200
Local: Thurs, Apr 2 2009 4:07 am
Subject: Re: [Trac] Adding custom field to tickets
http://trac.edgewall.org/wiki/TracTicketsCustomFields

PM

Sajjad Akhter a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Boos  
View profile  
 More options Apr 2 2009, 5:23 am
From: Christian Boos <cb...@neuf.fr>
Date: Thu, 02 Apr 2009 11:23:01 +0200
Local: Thurs, Apr 2 2009 5:23 am
Subject: Re: [Trac] Re: Adding custom field to tickets

... with the caveat that there's not yet a "date" type for custom fields
(http://trac.edgewall.org/ticket/1942),
so in the meantime one should take care of specifying a date string in a
consistent way, like in the ISO 8601 format.

-- Christian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Nelson  
View profile  
 More options Apr 2 2009, 7:48 am
From: "Chris Nelson" <Chr...@sixnetio.com>
Date: Thu, 2 Apr 2009 07:48:04 -0400
Local: Thurs, Apr 2 2009 7:48 am
Subject: RE: [Trac] Re: Adding custom field to tickets

Pacôme MASSOL wrote:
> Sajjad Akhter a écrit :
>> Hi,

>> How can I add custom field like "Deadline" for tickets.

> http://trac.edgewall.org/wiki/TracTicketsCustomFields

Yes.  But isn't the "deadline" for a ticket the due date of its milestone?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »