Jump to content

P4Python undefined symbol SSL_library_init

  • Please log in to reply
4 replies to this topic

#1 p4user101



  • Members
  • Pip
  • 1 posts

Posted 03 January 2019 - 11:21 PM

I've recently installed P4Python on Ubuntu 18.04, which uses libssl-1.1. This version of libssl has deprecated SSL_library_init (https://www.openssl....brary_init.html).

$ aptitude show libssl-dev
some code
Package: libssl-dev
Version: 1.1.0g-2ubuntu4.3
State: installed
Automatically installed: no
Multi-Arch: same
Priority: optional
Section: libdevel
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 6870 k
Depends: libssl1.1 (= 1.1.0g-2ubuntu4.3)
Recommends: libssl-doc
Conflicts: libssl1.0-dev
Description: Secure Sockets Layer toolkit - development files
This package is part of the OpenSSL project's implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet.

It contains development libraries, header files, and manpages for libssl and libcrypto.
Homepage: [url="https://www.openssl.org/"]https://www.openssl.org/[/url]

$ pip3 show p4python
Name: p4python
Version: 2018.2.1743033
Summary: P4Python - Python interface to Perforce API
Home-page: http://www.perforce.com
Author: Perforce Software Inc
Author-email: sknop@perforce.com
License: LICENSE.txt
Location: /home/.../.local/lib/python3.6/site-packages
$ python3 -c '
>	from P4 import P4
>except Exception as e:
>	print(e)'
/home/.../.local/lib/python3.6/site-packages/P4API.cpython-36m-x86_64-linux-gnu.so: undefined symbol: SSL_library_init

#2 P4Jen


    Advanced Member

  • Staff Moderators
  • 152 posts

Posted 07 January 2019 - 04:49 PM


Thanks for bringing this to our attention.

I have tested here with Ubuntu 18.04 and have reproduced the behaviour you describe.

I have also had a look through the latest P4Python release notes, and do not see any mention of
Ubuntu 18.04 not being a supported Linux flavour.

I will check to see if we have an existing report of this issue.

If we do I will add details of your post to it.

If not I will log one and add details of the post to it.

Thanks again,

#3 bdurbin



  • Members
  • Pip
  • 2 posts

Posted 21 February 2019 - 06:31 PM

I also get this ImportError when I try to use p4python. Is there any work around or plan for an update to fix this?

#4 PompeyPaul



  • Members
  • Pip
  • 4 posts

Posted 12 March 2019 - 06:50 PM

I solved this under Fedora Core 29 as I describe here: https://forums.perfo...fedora-core-29/

#5 TTimoT



  • Members
  • Pip
  • 1 posts

Posted 03 April 2019 - 06:47 PM

There are several fixes and workarounds floating out there by now, but it would be really useful to get an official fix from Perforce to support newer libssl releases.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users