[issue46338] libc_ver() runtime error when sys.executable is empty

2022-01-11 Thread Allie Hammond


Allie Hammond  added the comment:

Thanks for getting back to me so quickly! It's an empty string

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46338] libc_ver() runtime error when sys.executable is empty

2022-01-11 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

On 10.01.2022 23:01, Allie Hammond wrote:
> 
> libc_ver() in platform.py (called from platform()) causes a runtime error if 
> sys.executable returns null. In my case, FreeRADIUS offers a module 
> rlm_python3 which allows you to run python code from the C based FreeRADIUS 
> server - since this module doesn't use a python binary to execute 
> sys.executable returns null trigering this error.

Interesting. I guess rlm_python3 embeds Python. Is sys.executable an
empty string or None ?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46338] libc_ver() runtime error when sys.executable is empty

2022-01-10 Thread Allie Hammond


New submission from Allie Hammond :

libc_ver() in platform.py (called from platform()) causes a runtime error if 
sys.executable returns null. In my case, FreeRADIUS offers a module rlm_python3 
which allows you to run python code from the C based FreeRADIUS server - since 
this module doesn't use a python binary to execute sys.executable returns null 
trigering this error.

--
messages: 410261
nosy: allie.hammond, lemburg
priority: normal
severity: normal
status: open
title: libc_ver() runtime error when sys.executable is empty
type: crash
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com