[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    [Trac] Re: Perforce plugin
From:       Thomas Tressieres <thomas.tressieres () calyon ! com>
Date:       2007-01-31 8:43:54
Message-ID: 89EA384E0045D54D8BB60592E05732B10120EB6F () MXCU00MX1 ! MSX ! CIB
[Download RAW message or body]

This is a multi-part message in MIME format.


Hi,

The name of the egg is correct...

Try to change the get_supported_types method in PerforceConnector, file api.py line 46-59 with this ones
    def get_supported_types(self):
        """Generate tuples of (name, priority)"""

        hasPerforce = False
        self.log.debug('trying to import PyPerforce')
        try:
            import perforce
            hasPerforce = True
        except ImportError, e:
            self.log.warning('Failed to import PyPerforce: ' + str(e))

        if hasPerforce:
            yield ('perforce', 4)

I added a debug log to know if the egg is correctly loaded.


Turn on logging in Trac with these options in trac.ini
[logging]
log_file = trac.log
log_level = DEBUG
log_type = file

And try to see the log....


> -----Original Message-----
> From: trac-users@googlegroups.com 
> [mailto:trac-users@googlegroups.com] On Behalf Of 
> jesselachapelle@gmail.com
> Sent: mardi 30 janvier 2007 22:05
> To: Trac Users
> Subject: [Trac] Re: Perforce plugin
> 
> 
> 
> Thanks again for your continued effort to resolve our issue.
> 
> I followed the link you suggested, but it built an .egg that called 
> itself TracPerforce-0.4.4-py2.4.egg. None the less I tried both a 
> global, and local install of this egg and had a similar issue 
> presented to me when tried to use the wiki....
> 
> 
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 
> 387, in dispatch_request
>     dispatcher.dispatch(req)
>   File 
> "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 
> 191, in dispatch
>     chosen_handler = self._pre_process_request(req, chosen_handler)
>   File 
> "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 
> 263, in _pre_process_request
>     chosen_handler = f.pre_process_request(req, chosen_handler)
>   File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/
> api.py", line 73, in pre_process_request
>     self.get_repository(req.authname) # triggers a sync if applicable
>   File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/
> api.py", line 91, in get_repository
>     raise TracError('Unsupported version control system "%s"'
> TracError: Unsupported version control system "perforce"
> 
> 
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the 
> Google Groups "Trac Users" group. To post to this group, send 
> email to trac-users@googlegroups.com To unsubscribe from this 
> group, send email to trac-users-unsubscribe@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/trac-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
> 


Ce message et ses pi=E8ces jointes (le "message") est destin=E9 à l'usage    
exclusif de son destinataire.                                            
Si vous recevez ce message par erreur, merci d'en aviser imm=E9diatement   
l'exp=E9diteur  et de le d=E9truire ensuite. Le pr=E9sent message  pouvant  
=EAtre alt=E9r=E9 =E0 notre insu,  CALYON Corporate and Investment Bank               \
 ne peut pas =EAtre engag=E9 par son contenu. Tous droits r=E9serv=E9s. 
          
This message and/or any  attachments (the "message") is intended for     
the sole use of its addressee.                                            
If you are not the addressee, please immediately notify the sender and    
then destroy the message.  As this message and/or any attachments may 
have been altered without our knowledge,  its content  is not legally 
binding on CALYON Corporate and Investment Bank. All rights reserved.                 \




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic