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

Cannot accommodate spaces in parent directory name #1

Open
daniellewilmot opened this issue Jan 9, 2019 · 0 comments
Open

Cannot accommodate spaces in parent directory name #1

daniellewilmot opened this issue Jan 9, 2019 · 0 comments

Comments

@daniellewilmot
Copy link

If the Source.code.zip file contents are moved to a new directory, the code currently cannot handle directory names with spaces in them. If spaces exist, the following error occurs (in this case, parent directory was named "BETTER Source Code - CERC"):

Traceback (most recent call last):
File "demo.py", line 157, in
main()
File "demo.py", line 151, in main
run_single(bldg_id=18, saving_target=2, cached_weather=False)
File "demo.py", line 104, in run_single
report_building.generate_building_report_beta(report_path)
File "<C:\Users\31335\Desktop\BETTER Source Code - CERC\better\report.py>", line 121, in generate_building_report_beta
with open(report_file, 'w', encoding="utf-8") as report_html:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\31335\Desktop\BETTER_Source_Code_-_CERC/outputs/18
_Beijing_Office_18_report.html'

Renaming directory to "BETTER_Source_Code-CERC" solved the issue. Would be good if code could be modified to accommodate this so other users do not run into same issue.

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

1 participant