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

wellmap command line script does not work on windows #35

Open
ajasja opened this issue Oct 17, 2022 · 3 comments
Open

wellmap command line script does not work on windows #35

ajasja opened this issue Oct 17, 2022 · 3 comments

Comments

@ajasja
Copy link

ajasja commented Oct 17, 2022

The os.fork command is not available on windows, so the command line utility does not work

$ wellmap layout.toml 
Traceback (most recent call last):
  File "C:\bin\python\anaconda64\envs\spectraplotpy\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\bin\python\anaconda64\envs\spectraplotpy\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\bin\python\anaconda64\envs\spectraplotpy\Scripts\wellmap.exe\__main__.py", line 7, in <module>
  File "C:\bin\python\anaconda64\envs\spectraplotpy\lib\site-packages\wellmap\plot.py", line 101, in main
    if os.fork() != 0:
AttributeError: module 'os' has no attribute 'fork'
@ajasja
Copy link
Author

ajasja commented Oct 17, 2022

I just saw the --foreground option. That works, and I can even lunch it with
wellmap layout.toml --foreground &
To get it in the background :)

The library looks awesome by the way!

@kalekundert
Copy link
Owner

I'm glad you found the workaround, but I should probably tweak the script so that it doesn't crash in the first place. I'll keep this issue open until I get around to that.

@ajasja
Copy link
Author

ajasja commented Oct 18, 2022

Thanks! One temporary fix would be to just have --foreground be the default behaviour on windows.

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

2 participants