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

[Bug] IronPython - 'import csv' fails in Script Manager #425

Closed
rcroy opened this issue Feb 2, 2023 · 0 comments
Closed

[Bug] IronPython - 'import csv' fails in Script Manager #425

rcroy opened this issue Feb 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rcroy
Copy link

rcroy commented Feb 2, 2023

Describe the bug
When calling 'import csv' in a script for IronPython in the Script Manager, it fails with the following error:

Error	Error running script '': Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named csv

But in the Interactive IronPython, 'import csv' works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Classic UI version of DWSIM
  2. Open the 'Dynamic Simultion - Water Tank Level Control' sample
  3. In Script Manager, create a new script with the line 'import csv'
  4. Run the script.
  5. See error

Expected behavior
import csv should load the CSV module without error.

Screenshots
image

image

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 8.3.5, or 8.3.4, or 8.3.3,

Additional context
This error does not occur when using the Cross Platform UI.

@rcroy rcroy added the bug Something isn't working label Feb 2, 2023
DanWBR added a commit that referenced this issue Feb 2, 2023
@DanWBR DanWBR closed this as completed Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants