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] Reading input paths is not relative but from offgridders main directory #94

Open
smartie2076 opened this issue Jul 9, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@smartie2076
Copy link
Collaborator

When executing Offgridders with

>python Offgridders.py NESP2_NDC/inputs/input_template_excel.xlsx NESP_2_Tests/outputs_martha

Ie. for simulation inputs in a sub-folder then the error message

Traceback (most recent call last):
  File "Offgridders.py", line 275, in <module>
    main()
  File "Offgridders.py", line 69, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "D:\PycharmProjects\offgridders\src\B_read_from_files.py", line 55, in process_excel_file
    shutil.copy(path_from, path_to)
  File "C:\ProgramData\Miniconda3\envs\offgridders_python3-6\lib\shutil.py", line 245, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\ProgramData\Miniconda3\envs\offgridders_python3-6\lib\shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\PycharmProjects\\offgridders\\inputs\\timeseries\\NESP_2.csv'

Terminates the simulation.

Version: dev, 2020-07-09

@smartie2076 smartie2076 added the bug Something isn't working label Jul 9, 2020
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

1 participant