Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  pycurl module

    Posted Tue October 21, 2025 09:42 AM

    Hello,

    I recently have an issue on AIX hosts that pycurl module failed to run and throw error pointing to certificate file.

    $ python2

    >>> import pycurl
    >>> c = pycurl.Curl()
    >>> c.setopt(c.URL, 'https://artifactory.company.com')
    >>> c.setopt(c.CAINFO, '/etc/certs/cert.pem')
    >>> c.perform()
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    pycurl.error: (77, 'error setting certificate file: /etc/certs/cert.pem')

    What could be the root cause of this error ?

    How to remediate it ?   If I run curl command with --cacert argument I am able to get the html data.from the url.

    Is there any issue on rpm package(s) or librari(es) caused the error ? 



    ------------------------------
    Alianto Alianto
    ------------------------------


  • 2.  RE: pycurl module

    Posted Tue October 21, 2025 07:23 PM

    Hello,

    The pycurl.error:77 seems to indicates an issue with PycURL's ability to access or interpret the specified CA certificate file. Can you please check if the file exist and the permissions are correct for this ? /etc/certs/cert.pem



    ------------------------------
    Rohit Chauhan
    Senior Technical Specialist
    Norway
    ------------------------------



  • 3.  RE: pycurl module

    Posted Wed October 22, 2025 07:53 PM

    Thanks Rohit
    The file is exist and permissions are correct.

    This thread can be closed.  It seems there is other issue need to be addressed instead of pycurl module.



    ------------------------------
    Alianto Alianto
    ------------------------------