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

Example code fails on Windows 10 #648

Open
stefan-girlich opened this issue Dec 10, 2021 · 0 comments
Open

Example code fails on Windows 10 #648

stefan-girlich opened this issue Dec 10, 2021 · 0 comments

Comments

@stefan-girlich
Copy link

I am using a pristine notebook and kernel to run the example from the documentation. Execution fails with error messages.

Environment

  • Jupyter Notebook 6.4.5
  • Python 3.8.5
  • ipyparallel 8.0.0

Code

import time
import ipyparallel as ipp

task_durations = [1] * 25
# request a cluster
with ipp.Cluster() as rc:
    # get a view on the cluster
    view = rc.load_balanced_view()
    # submit the tasks
    asyncresult = view.map_async(time.sleep, task_durations)
    # wait interactively for results
    asyncresult.wait_interactive()
    # retrieve actual results
    result = asyncresult.get()
# at this point, the cluster processes have been shutdown

Error

Starting 24 engines with <class 'ipyparallel.cluster.launcher.LocalEngineSetLauncher'>
sleep:  16%|█▌        | 4/25 [00:05<00:00, 36.36tasks/s]Failed to remove C:\Users\MyUserName\.ipython\profile_default\log\ipengine-1639155465-zlhr-1639155466-2.log: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\MyUserName\\.ipython\\profile_default\\log\\ipengine-1639155465-zlhr-1639155466-2.log'
Failed to remove C:\Users\MyUserName\.ipython\profile_default\log\ipengine-1639155465-zlhr-1639155466-1.log: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\MyUserName\\.ipython\\profile_default\\log\\ipengine-1639155465-zlhr-1639155466-1.log'
Failed to remove C:\Users\MyUserName\.ipython\profile_default\log\ipengine-1639155465-zlhr-1639155466-8.log: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\MyUserName\\.ipython\\profile_default\\log\\ipengine-1639155465-zlhr-1639155466-8.log'

Full output:
error_output.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant