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

Fork issue #20284

Closed
2 tasks done
moghadas76 opened this issue Dec 13, 2024 · 1 comment
Closed
2 tasks done

Fork issue #20284

moghadas76 opened this issue Dec 13, 2024 · 1 comment
Labels
invalid A bug report that is not actually a bug

Comments

@moghadas76
Copy link

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

 with Pool() as pool:
        results = pool.map(impute_column, miss.keys())

RuntimeWarning: Using fork() can cause Polars to deadlock in the child process.
In addition, using fork() with Python in general is a recipe for mysterious
deadlocks and crashes.

Log output

/python3.11/site-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py:951: RuntimeWarning: Using fork() can cause Polars to deadlock in the child process.
In addition, using fork() with Python in general is a recipe for mysterious
deadlocks and crashes.

Issue description

How to use fork() in python script using polar df?

Expected behavior

Working!

Installed versions

--------Version info---------
Polars:              1.14.0
Index type:          UInt32
Platform:            Linux-6.8.0-48-generic-x86_64-with-glibc2.35
Python:              3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0]
LTS CPU:             False

----Optional dependencies----
adbc_driver_manager  <not installed>
altair               <not installed>
boto3                <not installed>
cloudpickle          3.0.0
connectorx           <not installed>
deltalake            <not installed>
fastexcel            <not installed>
fsspec               2023.9.2
gevent               <not installed>
google.auth          2.23.3
great_tables         <not installed>
matplotlib           3.7.3
nest_asyncio         1.5.8
numpy                1.24.4
openpyxl             3.1.5
pandas               2.0.3
pyarrow              14.0.1
...
sqlalchemy           2.0.23
torch                2.3.0+cu121
xlsx2csv             <not installed>
xlsxwriter           <not installed>
@moghadas76 moghadas76 added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Dec 13, 2024
@MarcoGorelli
Copy link
Collaborator

thanks for the report, closing as duplicate of #20255

@MarcoGorelli MarcoGorelli added invalid A bug report that is not actually a bug and removed bug Something isn't working python Related to Python Polars needs triage Awaiting prioritization by a maintainer labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid A bug report that is not actually a bug
Projects
None yet
Development

No branches or pull requests

2 participants