-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Robot-Marbles-Part-6.ipynb gives an unexpected error when run on windows. #93
Comments
Looks like we're sorting through a dependencies issue. Can you run |
A dependency issue can't be the case because rand is imported in the first cell of this notebook and I can use it just fine outside of the execute function. removing rand as a dependency of the robot_arm_1 and robot_arm_2 policy functions just gives the same error except with "robotic_arm" instead of "rand" even though the function doesn't use any libraries whatsoever. |
Good to know. I haven't been able to reproduce the error yet though. Will check with others and keep you posted. |
I can't reproduce the error either. @ResourceHog if you could please fork the repo and push your notebook to your fork, seeing the error in context would help a lot. Otherwise, copy pasting the entire output and/or a screenshot here would also help. Thanks! |
After some research, it seems like Pool from multithreading doesn't work on windows. Are you guys per chance running linux? |
I guess we're all on Mac or Linux, so we hadn't seen this before. I was
just able to reproduce the error on a Windows environment. We'll look into
it as soon as possible and update this thread accordingly. Thanks again for
your help!
…On Sat, Apr 11, 2020, 13:21 Travis Rivera ***@***.***> wrote:
Here are some screenshots:
[image: image]
<https://user-images.githubusercontent.com/3767092/79048958-88b47600-7bd5-11ea-92b3-bfc5302d0b2f.png>
[image: image]
<https://user-images.githubusercontent.com/3767092/79048974-a255bd80-7bd5-11ea-9785-8c8918754283.png>
[image: image]
<https://user-images.githubusercontent.com/3767092/79048994-bbf70500-7bd5-11ea-8899-e2a6319663c0.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKABI4EAPV2K66BMX4HJIDRMCKHHANCNFSM4MFINQOQ>
.
|
Seems like this issue is related.
|
Thanks, @ResourceHog . I guess that makes sense. For a while now in our internal projects we've been separating the model definition from the analysis notebook for better version control (same project structure used in the prey-predator example), so that's another reason why we didn't catch this. We need to think about how to handle the tutorials given this. IMO, the ideal experience for a newcomer would not require parsing multiple files, as I believe introducing concepts and corresponding code snippets throughout the notebook makes the tutorial more readable and accessible. I'll think about it and I'm happy to hear different points of view and suggestions others might have. |
Concerning errors like ("NameError: name 'np' is not defined") when using multiprocess exec mode on windows: Linked to cadCAD-org#104 & cadCAD-org#93
@ResourceHog |
To recreate the bug:
Fails on step 17 with
NameError: name 'rand' is not defined
Expected:
results of both configurations should be appended to the "results" variable.
The text was updated successfully, but these errors were encountered: