Sorry for the last reply, but I was wrong, it's true that from VenueClient, 
Manage Certificates works perfectly... but, now, CertificateManager3.py doesn't 
work...  shows the same error that previosly shows from VenueClient. It's like 
if they swap :P.

Sorry for the inconvenience and confirm some that, really, don't fix the 
problem.

Regards!


El dia 15 mar 2010 01:05, Christoph Willing <c.will...@uq.edu.au> escribió:

   On 15/03/2010, at 9:06 AM, Christoph Willing wrote:

      Jesus,

      We have seen this problem previously and have already implemented a fix 
(similar to the one suggested by Marcelino below) but its obviously an 
incomplete fix - so thanks for reporting the problem.

      I've changed my system language setting to Spanish and I can replicate 
your problem. I found that I can manage my certificates by running 
CertificateManager3.py from a shell - maybe you could do that until a proper 
fix is implemented


   Could you try the following fix and report the result please? If successful 
(it works here) it can be applied to the AG svn repository so that future 
package releases will include it.

   In the file /usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/ Toolkit.py, 
find the line
   os.environ['LANG'] = "C"
   and replace it with
   locale.setlocale(locale.LC_ALL, 'C')

   Please ensure that the indentation of the new line is the same as the 
deleted line.

   At the beginning of this same file, just after:
   import socket
   please add a new line with:
   import locale


   Thanks to Marcelino for the suggested fix.


   chris




      On 15/03/2010, at 6:41 AM, <marcolino.pi...@ac-paris.fr> wrote:

         Hi

         I have front several times this problem, the solution is to add 
somthing like this in the AccessGrid python file causing the problem

         import locale
         ...
         locale.setlocale(locale.LC_ALL, 'C')
         ...

         I can't tell you the exact file because I do not access an AccessGrid 
client right now

         Best regards

         --

         Marcolino PIRES
         Téléphone : 01 44 62 45 73

         Rectorat de l'académie de Paris
         CAPTI - Bureau 382
         94, avenue Gambetta
         75984 PARIS CEDEX 20

         ----- Message d'origine -----
         De: Jesus Cea Oliva <jesus....@uca.es>
         Date: Dimanche, Mars 14, 2010 5:31 pm
         Objet: [AG-TECH] Manage Certificates from VenueClient problems on 
Ubuntu Karmic (Time data doesn't match format), and Control Access
         À: ag-t...@mcs.anl.gov

            Hi list.

            I've a problem on Venue Client, on Ubuntu machines, when I click on
            "Tools->Manage Certificates ...". No appears any screen, so, on 
Debug
            Mode, I see this error:

            "ValueError: time data 'Apr 21 00:52:18 2007 GMT' does not match
            format '%b %d %H:%M:%S %Y %Z'"

            This is the traceback:



            /usr/lib/python2.6/dist-packages/twisted/internet/_sslverify.py:5:
            DeprecationWarning: the md5 module is deprecated; use hashlib 
instead
            import itertools, md5
            /usr/lib/pymodules/python2.6/ZSI/resolvers.py:6: DeprecationWarning:
            the multifile module has been deprecated since Python 2.5
            import multifile, mimetools, urllib
            Traceback (most recent call last):
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
wxgui/CertificateManagerWXGUI.py",
            line 176, in <lambda>
            lambda event, win=win, self=self: self.OnShowNew(event, win))
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
wxgui/CertificateManagerWXGUI.py",
            line 237, in OnShowNew
            self.certificateManager, self)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
wxgui/CertificateManagerDialog.py",
            line 25, in __init__
            self.identBrowser = IdentityBrowser(self.notebook, -1, self.certMgr)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
wxgui/IdentityBrowser.py",
            line 57, in __init__
            CertificateBrowserBase.__init__(self, parent, id, certMgr)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
wxgui/CertificateBrowserBase.py",
            line 27, in __init__
            self.Load()
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
wxgui/CertificateBrowserBase.py",
            line 86, in Load
            data, columnStrings = self._FormatCert(cert)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
wxgui/IdentityBrowser.py",
            line 286, in _FormatCert
            valid = self.certMgr.CheckValidity(cert)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
CertificateManager.py",
            line 375, in CheckValidity
            if self.VerifyCertificatePath(cert):
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
CertificateManager.py",
            line 405, in VerifyCertificatePath
            issuers = filter(lambda x: not x.IsExpired(), issuers)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
CertificateManager.py",
            line 405, in <lambda>
            issuers = filter(lambda x: not x.IsExpired(), issuers)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
CertificateRepository.py",
            line 1340, in IsExpired
            return self.cert.IsExpired()
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
CertificateRepository.py",
            line 1526, in IsExpired
            return IsExpired(self.cert)
            File
            "/usr/lib/pymodules/python2.6/AccessGrid3/AccessGrid/Security/ 
Utilities.py",
            line 52, in IsExpired
            before_tuple = time.strptime(str(before_time),format)
            File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time
            return _strptime(data_string, format)[0]
            File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
            (data_string, format))
            ValueError: time data 'Apr 21 00:52:18 2007 GMT' does not match 
format
            '%b %d %H:%M:%S %Y %Z'


            On Windows I haven't this problem, and, on both systems, I can 
execute
            CertificateManager3.py without problems, only I have this error from
            VenueClient option. What can I do to solve?

            Other question, exists some document about control access? I would
            like to create venues and restrict access. I know that it can do 
using
            Venue Manager, the Security tab in each Venue. But, I don't know how
            add persons, I see a "Distinguish name", but, how I can know the DN 
of
            a Participant? Is necesary that the participant enter on a venue for
            restrict/permit the access?, or exists some solution to
            restrict/permit a Participant without enter on a Venue?.


            Thank you for your time. I apologize for the inconvenience.
            Greetings!

      Christoph Willing +61 7 3365 8316
      QCIF Access Grid Manager
      University of Queensland

   Christoph Willing +61 7 3365 8316
   QCIF Access Grid Manager
   University of Queensland



Reply via email to