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

Compilation success, fail when running. #22

Open
1a2y opened this issue Nov 1, 2022 · 2 comments
Open

Compilation success, fail when running. #22

1a2y opened this issue Nov 1, 2022 · 2 comments

Comments

@1a2y
Copy link

1a2y commented Nov 1, 2022

Hi everyone,
I have successfully installed sgdml in my (Windows 10) machine, but when I run it I have the following error message:

C:\Windows\system32>sgdml all datasets/npz/ethanol.npz 200 1000 5000
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3312.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3312.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\David\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\sgdml.exe_main
.py", line 4, in
File "C:\Users\David\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\sgdml\cli.py", line 67, in
from .predict import GDMLPredict
File "C:\Users\David\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\sgdml\predict.py", line 36, in
Pool = mp.get_context('fork').Pool
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3312.0_x64__qbz5n2kfra8p0\lib\multiprocessing\context.py", line 239, in get_context
return super().get_context(method)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3312.0_x64__qbz5n2kfra8p0\lib\multiprocessing\context.py", line 193, in get_context
raise ValueError('cannot find context for %r' % method) from None
ValueError: cannot find context for 'fork'

How can I fix it? Help is greatly appreciated ...
Thank you very much, David.

@stefanch
Copy link
Owner

stefanch commented Nov 2, 2022

Can you please try running your command with the extra parameter "-p 1"?

@1a2y
Copy link
Author

1a2y commented Nov 4, 2022

Dear Stefan,
Thanks for your reply and sorry for my delay ...
I tried your suggestion, but it didn't work, see the screenshot.
I am assuming that it works in Windows. Doesn't it?
Thanks again, David.
screenshot

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