Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Palanteer is stuck when following a python script that call platform.uname() #44

Open
EmmanuelAllasia opened this issue Sep 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@EmmanuelAllasia
Copy link

EmmanuelAllasia commented Sep 19, 2024

Hello !

Using Python3.11
with Windows 10 & 11
with the last version of palanteer release 0.7.1 (https://github.com/dfeneyrou/palanteer/releases/tag/v0.7.1)

If there is a call to platform.uname() in the python application, palanteer remain stuck and nothing happen.

https://docs.python.org/3/library/platform.html#platform.uname
It's getting stuck at sys.platform_version()
And in this part of the code:

for cmd in ('ver', 'command /c ver', 'cmd /c ver'):
    try:
        info = subprocess.check_output(cmd,
                                       stdin=subprocess.DEVNULL,
                                       stderr=subprocess.DEVNULL,
                                       text=True,
                                       encoding="locale",
                                       shell=True)

FYI when running using Pycharm Debugger, this issue is not present.

@dfeneyrou dfeneyrou added the bug Something isn't working label Sep 19, 2024
@dfeneyrou
Copy link
Owner

dfeneyrou commented Sep 19, 2024

I can reproduce it indeed on Windows 11 with Python 3.11, only when profiled, with a simple call to subprocess.run("dir").
A probable hypothesis is that platform.uname() is also using subprocesses.
I need some time to investigate, especially as Windows is not my usual platform.
Can you confirm that you did not see this issue with Python 3.10?

@github-staff github-staff deleted a comment from AmjedKhaled165 Sep 25, 2024
@samson-jerome
Copy link

Hello,
I've noticed the same issue with py311 on windows10...
Any update or progress on this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants