1. tollfeeder's Avatar
    Ok, it goes like this:

    I’m using Term48, then I do ‘python3.2’, then ‘import ssl’ and I get sad:

    ‘unknown symbol: X509_get_signature__nid referenced from _ssl.so
    Traceback (most recent call last):
    File “<stdin>”, line 1, in <module>
    File “stage/armle-v7/usr/lib/python3.2/ssl.py”, line 62, in <module>
    ImportError: Unresolved symbols’

    What I’m actually trying to do is getting youtube-dl to work (which used to and sometime stopped to). By the way, there is no file ssl.py in said path. I’m not sure whether this has something to do with 10.3.3, but is there a way around this beyond autoloading? Thanks for anyone who could help.

    Via Pasta CB10
    04-17-17 01:16 PM
  2. thurask's Avatar
    From this Github issue (https://github.com/rg3/youtube-dl/issues/10370) I think it's the Python version (3.2.2 or something like that) having issues with SSL.
    tollfeeder likes this.
    04-17-17 01:29 PM
  3. tollfeeder's Avatar
    Thanks. I wasn't aware of this issue. So I guess the only solution is to try compiling 3.2.3 or later myself lol?

    Via Pasta CB10
    04-17-17 01:34 PM
  4. thurask's Avatar
    Thanks. I wasn't aware of this issue. So I guess the only solution is to try compiling 3.2.3 or later myself lol?

    Via Pasta CB10
    If you have the time to kill.

    Here's BB's repo for their version of Python 3.2.2 for QNX, FWIW: https://github.com/blackberry/Python

    Even if you end up with 3.2.6 or something built for BB10 overwriting the system Python would be a challenge.

    Doesn't Helium have its own environment?
    tollfeeder and Leyra B10 like this.
    04-17-17 01:43 PM
  5. tollfeeder's Avatar
    Well, who does. Yep, I glimpsed at the abandoned BlackBerry repo. Thought about this 'challenge' as well. Helium is actually a convenient idea, I'll ask the developer. Thanks again thurask.

    Via Pasta CB10
    04-17-17 01:50 PM
  6. tollfeeder's Avatar
    So I had partial success with Python2.6.9. At least I got further than with any other version. Still a lot of work to do, since it's a broken build:

    'Failed to find the necessary bits to build these modules:
    _bsddb _curses_panel _hashlib
    _sqlite3 _ssl _tkinter
    bsddb185 dbm dl
    gdbm linuxaudiodev nis
    ossaudiodev sunaudiodev zlib
    To find the necessary bits, look in setup.py in detect_modules() for the module's name.


    Failed to build these modules:
    _ctypes _locale mmap
    readline spwd syslog'

    Maybe I need a different prefix?!

    On the other hand, I got nano to compile

    Via Pasta CB10
    04-18-17 08:27 AM
  7. tollfeeder's Avatar
    Ok, I compiled readline and libffi, which got me one step further apparently. Now I'd like to build ctypes but it seems I need a working Python to do so which I don't have(yet). Most modules won't be imported. What to do now? I guess, lots of work :/.

    $ make
    unknown symbol: libintl_bindtextdomain referenced from _locale.so
    unknown symbol: libintl_dgettext referenced from _locale.so
    unknown symbol: libintl_gettext referenced from _locale.so
    unknown symbol: libintl_dcgettext referenced from _locale.so
    unknown symbol: libintl_textdomain referenced from _locale.so
    *** WARNING: renaming "_locale" since importing it failed: Unresolved symbols
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:70:33: warning: 'struct spwd' declared inside parameter list [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:70:33: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c: In function 'mkspent':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:80:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:81:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:82:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:83:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:84:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:85:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:86:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:87:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:88:5: error: dereferencing pointer to incomplete type
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c: In function 'spwd_getspnam':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:118:5: warning: implicit declaration of function 'getspnam' [-Wimplicit-function-declaration]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:118:12: warning: assignment makes pointer from integer without a cast [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:122:5: warning: passing argument 1 of 'mkspent' from incompatible pointer type [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:70:18: note: expected 'struct spwd *' but argument is of type 'struct spwd *'
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c: In function 'spwd_getspall':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:142:5: warning: implicit declaration of function 'setspent' [-Wimplicit-function-declaration]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:143:5: warning: implicit declaration of function 'getspent' [-Wimplicit-function-declaration]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:143:15: warning: assignment makes pointer from integer without a cast [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:144:9: warning: passing argument 1 of 'mkspent' from incompatible pointer type [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:70:18: note: expected 'struct spwd *' but argument is of type 'struct spwd *'
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/spwdmodule.c:148:13: warning: implicit declaration of function 'endspent' [-Wimplicit-function-declaration]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/mmapmodule.c: In function 'new_mmap_object':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/mmapmodule.c:1187:9: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/mmapmodule.c:1187:42: error: 'O_RDWR' undeclared (first use in this function)
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/mmapmodule.c:1187:42: note: each undeclared identifier is reported only once for each function it appears in
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/syslogmodule.c:49:20: fatal error: syslog.h: No such file or directory
    compilation terminated.
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/callproc.c: In function '_CallProc':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/callproc.c:1089:20: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/callproc.c:1089:31: warning: incompatible implicit declaration of built-in function 'alloca' [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/callproc.c: In function 'POINTER':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/callproc.c:1790:15: warning: incompatible implicit declaration of built-in function 'alloca' [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/callproc.c:1801:15: warning: incompatible implicit declaration of built-in function 'alloca' [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/stgdict.c: In function 'StructUnionType_update_stgdict':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/stgdict.c:498:13: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/stgdict.c:498:25: warning: incompatible implicit declaration of built-in function 'alloca' [enabled by default]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/cfield.c: In function 'CField_FromDesc':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/cfield.c:45:29: warning: variable 'length' set but not used [-Wunused-but-set-variable]
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/malloc_closure.c: In function 'more_core':
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/malloc_closure.c:74:39: error: 'MAP_ANONYMOUS' undeclared (first use in this function)
    /accounts/1000/shared/misc/work/Python-2.6.9/Modules/_ctypes/malloc_closure.c:74:39: note: each undeclared identifier is reported only once for each function it appears in

    Failed to find the necessary bits to build these modules:
    _bsddb _curses_panel _hashlib
    _sqlite3 _ssl _tkinter
    bsddb185 dbm dl
    gdbm linuxaudiodev nis
    ossaudiodev sunaudiodev zlib
    To find the necessary bits, look in setup.py in detect_modules() for the module's name.


    Failed to build these modules:
    _ctypes _locale mmap
    spwd syslog

    $
    04-19-17 12:14 PM
  8. Uzi's Avatar
    Sometimes long post of text caught in spam filter, just report to us , we will approve as soon as possible
    tollfeeder likes this.
    04-19-17 12:49 PM
  9. tollfeeder's Avatar
    Sometimes long post of text caught in spam filter, just report to us , we will approve as soon as possible
    Thanks, makes sense.

    Via Pasta CB10
    Uzi likes this.
    04-19-17 12:55 PM
  10. tollfeeder's Avatar
    Oh and with 3.xy I ran into problems with PATH_MAX undeclared. Can I define it somehow. Or try editing pythonrun? QNX is so not like Linux.

    Via Pasta CB10
    04-19-17 02:25 PM
  11. thurask's Avatar
    Oh and with 3.xy I ran into problems with PATH_MAX undeclared. Can I define it somehow. Or try editing pythonrun? QNX is so not like Linux.

    Via Pasta CB10
    QNX is weird: http://www.qnx.com/developers/docs/6...de/limits.html
    04-19-17 05:56 PM
  12. tollfeeder's Avatar
    That actually helped. Canadians seem to call it _PC_PATH_MAX. On the other hand I tried a different approach, pulled BlackBerrys repo, applied patches from 3.2.3 https://hg.python.org/cpython/rev/65e7f40fefd4 and started there. Again, nice limits I have yet to overcome:

    $ make
    hg: no-repository, python: not-found! cannot run ./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl
    gcc -c -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Objects/obmalloc.o Objects/obmalloc.c
    Objects/obmalloc.c: In function 'new_arena':
    Objects/obmalloc.c:586:85: error: 'MAP_ANON' undeclared (first use in this function)
    Objects/obmalloc.c:586:85: note: each undeclared identifier is reported only once for each function it appears in
    Objects/obmalloc.c:586:94: error: 'MAP_NOINIT' undeclared (first use in this function)
    Objects/obmalloc.c:586:106: error: 'NOFD' undeclared (first use in this function)
    Objects/obmalloc.c:587:23: warning: comparison between pointer and integer [enabled by default]
    make: *** [Objects/obmalloc.o] Error 1
    $
    04-20-17 10:37 AM
  13. BurningPlatform's Avatar
    I downloaded the latest version of youtube-dl a few days ago

    https://yt-dl.org/downloads/latest/youtube-dl

    and it works perfectly fine from Term48.
    04-29-17 09:03 AM
  14. tollfeeder's Avatar
    I downloaded the latest version of youtube-dl a few days ago

    https://yt-dl.org/downloads/latest/youtube-dl

    and it works perfectly fine from Term48.
    Thanks, but I'm still getting this error. Maybe it's autoloader time...

    I'm on .2163 btw.
    Python Trouble...-img_20170429_151603.png

    Via Pasta CB10
    04-29-17 09:17 AM
  15. BurningPlatform's Avatar
    Hey,

    I'm using it on a 10.3.3.2163 Passport and it works out of the box, i.e. simply

    python3.2 youtube-dl [OPTIONS] [URL]

    Version returned by youtube-dl --version is 2017.04.26
    04-29-17 09:26 AM
  16. tollfeeder's Avatar
    I'm aware how the syntax of youtube-dl works. I used it successfully in the past. Now it doesn't work like it used to. Maybe it really is the case that my install is messed up and I'd better start fresh.

    Via Pasta CB10
    04-29-17 09:29 AM
  17. BurningPlatform's Avatar
    Well, I just wanted to give you the OS and youtube-dl versions which do work for me flawlessly. If you have the same versions and it doesn't work then maybe something's messed up on your device and OS reinstall is indeed the quickest way to fix it.
    04-29-17 09:50 AM

Similar Threads

  1. Trouble answering calls on Priv
    By hugh_jorgan in forum BlackBerry Priv
    Replies: 5
    Last Post: 04-07-17, 07:24 PM
  2. Trouble with Trackpad since 10.3.3 update
    By RickT_935 in forum BlackBerry Classic
    Replies: 2
    Last Post: 03-29-17, 05:51 PM
  3. Anyone else having trouble updating their BB Priv?
    By Aitch71 in forum BlackBerry Priv
    Replies: 2
    Last Post: 03-20-17, 08:03 PM
  4. Trouble Bb Link vs Windows 10Pro
    By Centro-celular in forum Ask a Question
    Replies: 1
    Last Post: 03-04-17, 01:23 AM
  5. Python on bb10 - how to install modules/packages?
    By methodinsane in forum Developers Lounge
    Replies: 11
    Last Post: 02-28-17, 09:51 AM
LINK TO POST COPIED TO CLIPBOARD