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: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> 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 [email protected] To unsubscribe from this 
> group, send email to [EMAIL PROTECTED]
> For more options, visit this group at 
> http://groups.google.com/group/trac-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
> 
Ce message et ses pièces jointes (le "message") est destiné à l'usage
exclusif de son destinataire.
Si vous recevez ce message par erreur, merci d'en aviser immédiatement
l'expéditeur  et de le détruire ensuite. Le présent message  pouvant
être altéré à notre insu,  CALYON Corporate and Investment Bank
ne peut pas être engagé par son contenu. Tous droits réservés.

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.

Reply via email to