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

wandb.init(reinit=True) doesn't work in Windows #862

Closed
vanpelt opened this issue Feb 12, 2020 · 5 comments
Closed

wandb.init(reinit=True) doesn't work in Windows #862

vanpelt opened this issue Feb 12, 2020 · 5 comments

Comments

@vanpelt
Copy link
Contributor

vanpelt commented Feb 12, 2020

The command crashes with the following error:

OSError: [WinError 6] The handle is invalid

Currently the only work around is to not use reinit and instead call your training script in it's own sub process:

import os
for i in range(10):
    os.system("python train.py args")

The underlying cause is the way Windows handles file descriptors and inheritance. We're currently working on a major refactor that will change the ways in which file descriptors are used. If you're hitting this issue, please follow this thread and we'll update everyone once this is fixed.

@cvphelps
Copy link
Contributor

Thanks for making a note on this one Chris

@noklam
Copy link

noklam commented Aug 3, 2020

Will this be fixed soon?

@noklam
Copy link

noklam commented Aug 3, 2020

import wandb
import logging
logging.basicConfig(filename='log.log')
wandb.init()

This issue seems to make this snippet fail on Windows too

@vanpelt
Copy link
Contributor Author

vanpelt commented Aug 3, 2020

We're working on improvements to the windows experiments in our next generation CLI: https://github.com/wandb/client-ng You can try the next generation by running pip install -U --pre wandb. We're still pushing improvements actively and it's not quit feature parity with the official version. @noklam let us know if you're still seeing issue with the new cli.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity.

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

4 participants