WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Python SSL issues, no easy_install or PIP  (Read 14606 times)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Python SSL issues, no easy_install or PIP
« Reply #15 on: September 12, 2015, 06:52:20 AM »
openssl-1.0.1 was not loaded.
I have re-downloaded openssl.tcz and python.tcz, then rebooted. Error message persists.
Same if I boot with "base norestore".

262203f41e4b60b0ac6fffafe503fb1d  python.tcz
cd5d7fb1b0bacecd0ac120de33ac706d  openssl.tcz
Download a copy and keep it handy: Core book ;)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: Python SSL issues, no easy_install or PIP
« Reply #16 on: September 12, 2015, 07:06:14 AM »
Code: [Select]
$ cat /mnt/sdb1/tce/optional/openssl.tcz.md5.txt
cd5d7fb1b0bacecd0ac120de33ac706d  openssl.tcz
$ cat /mnt/sdb1/tce/optional/python.tcz.md5.txt
262203f41e4b60b0ac6fffafe503fb1d  python.tcz
$ python
Python 2.7.10 (default, Sep  4 2015, 16:16:17)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>>

very odd  :o

gordon64

  • Guest
Re: Python SSL issues, no easy_install or PIP
« Reply #17 on: September 12, 2015, 07:33:44 AM »
Hi

On x86 youtube works for me with similar md5s as Juanito. Maybe Misalf could ensure python is not in his "boot" list, reboot  and show his manual loading to see if that is normal? However I still had two deps loading in my boot list...due to mc and lxterminal. My python dep contents
Quote
sqlite3.tcz
bzip2-lib.tcz
openssl.tcz
gdbm.tcz
ncurses.tcz
readline.tcz

eg mine is
Code: [Select]
tce-load -i python
readline.tcz: OK
gdbm.tcz: OK
openssl.tcz: OK
sqlite3.tcz: OK
python.tcz: OK

possible redudant dep of ncurses as its a dep of readline?

good luck
« Last Edit: September 12, 2015, 07:40:41 AM by gordon64 »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Python SSL issues, no easy_install or PIP
« Reply #18 on: September 12, 2015, 08:03:31 AM »
gordon64, shouldn't you have  libffi.tcz  in your python.tcz.dep?

Without having python in onboot.lst:
Code: [Select]
16:57:53 tc;box:~/$> youtube-dl
env: can't execute 'python': No such file or directory
16:57:56!tc;box:~/$> tcz python
gdbm.tcz: OK
python.tcz: OK
16:58:02 tc;box:~/$> youtube-dl
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/tc/.local/bin/youtube-dl/__main__.py", line 16, in <module>
  File "/home/tc/.local/bin/youtube-dl/youtube_dl/__init__.py", line 15, in <module>
  File "/home/tc/.local/bin/youtube-dl/youtube_dl/options.py", line 7, in <module>
  File "/home/tc/.local/bin/youtube-dl/youtube_dl/downloader/__init__.py", line 3, in <module>
  File "/home/tc/.local/bin/youtube-dl/youtube_dl/downloader/common.py", line 9, in <module>
  File "/home/tc/.local/bin/youtube-dl/youtube_dl/utils.py", line 25, in <module>
  File "/usr/local/lib/python2.7/ssl.py", line 97, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: /usr/local/lib/python2.7/lib-dynload/_ssl.so: undefined symbol: SSL_CTX_set_alpn_protos
16:58:07!tc;box:~/$>

PS: The command  tcz  is just a wrapper script for  tce-load -i .
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Python SSL issues, no easy_install or PIP
« Reply #19 on: September 12, 2015, 09:02:52 AM »
Sorry guys! Entirely my fault.
I have some custom initrds and my boot stanza for a clean boot was not correct.

Everything works as expected.
Download a copy and keep it handy: Core book ;)

gordon64

  • Guest
Re: Python SSL issues, no easy_install or PIP
« Reply #20 on: September 12, 2015, 05:00:38 PM »
Misalf

Quote
shouldn't you have  libffi.tcz  in your python.tcz.dep?

thanks fixed, but youtube worked without it.