- 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 CB1004-17-17 12:16 PMLike 0 - 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 12:29 PMLike 1
- 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 CB1004-17-17 12:34 PMLike 0 -
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 12:43 PMLike 2 - 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 CB1004-17-17 12:50 PMLike 0 - 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 CB1004-18-17 07:27 AMLike 0 - 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 11:14 AMLike 0 - UziRetired ModeratorSometimes long post of text caught in spam filter, just report to us , we will approve as soon as possibletollfeeder likes this.04-19-17 11:49 AMLike 1
- 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 CB1004-19-17 01:25 PMLike 0 -
- 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 09:37 AMLike 0 - 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 08:03 AMLike 0 - 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.
I'm on .2163 btw.
Via Pasta CB1004-29-17 08:17 AMLike 0 - 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.2604-29-17 08:26 AMLike 0 - 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 CB1004-29-17 08:29 AMLike 0 - 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 08:50 AMLike 0
- I used to see the same X509 swearing every time running anything python. I am guessing you've got playbook-dev-tools installed which brings its own libssl in and makes the base python3.2 upset. If you move away your .profile I bet it the warning will go away. Or you can update playbook-dev-tools to a Berrymuch v0.2 prefix which has got the new libssl.12-21-19 01:50 PMLike 0
- Forum
- BlackBerry Developers
- Developers Lounge
Python Trouble...
Similar Threads
-
Python on bb10 - how to install modules/packages?
By methodinsane in forum Developers LoungeReplies: 13Last Post: 11-26-18, 03:43 PM -
Trouble answering calls on Priv
By hugh_jorgan in forum BlackBerry PrivReplies: 5Last Post: 04-07-17, 06:24 PM -
Trouble with Trackpad since 10.3.3 update
By RickT_935 in forum BlackBerry ClassicReplies: 2Last Post: 03-29-17, 04:51 PM -
Anyone else having trouble updating their BB Priv?
By Aitch71 in forum BlackBerry PrivReplies: 2Last Post: 03-20-17, 07:03 PM -
Trouble Bb Link vs Windows 10Pro
By Centro-celular in forum Ask a QuestionReplies: 1Last Post: 03-04-17, 12:23 AM
LINK TO POST COPIED TO CLIPBOARD