A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005989.html below:

[Python-Dev] Demo/embed causes 'import site' failure

[Python-Dev] Demo/embed causes 'import site' failure [Python-Dev] Demo/embed causes 'import site' failureGuido van Rossum guido@beopen.com
Mon, 10 Jul 2000 12:22:36 -0500
> > OK, so there's code masking the ImportError in import_encodings() in
> > codecs.c.  I disabled that (hmm, maybe this should be disabled
> > automatically when -v is used!).
> 
> Hard to do since the setting of the verbosity flag is not
> available to Python code.

Actually, it is:  see pydebug.h, included by Python.h:

extern DL_IMPORT(int) Py_VerboseFlag;

> >From man ld:
> 
>        -E
> 
>        -export-dynamic
>               When  creating  an ELF file, add all symbols to the
>               dynamic symbol table.  Normally, the dynamic symbol
>               table contains only symbols which are used by a dy­
>               namic object.  This option is needed for some  uses
>               of dlopen.
> 
> (Not sure whether this is what you're looking for, though.)

Thanks -- yes, that did it!

--Guido van Rossum (home page: http://dinsdale.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4