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

Output csv directory should be created if it does not exist #108

Closed
philipmat opened this issue Aug 23, 2020 · 1 comment
Closed

Output csv directory should be created if it does not exist #108

philipmat opened this issue Aug 23, 2020 · 1 comment

Comments

@philipmat
Copy link
Owner

ubuntu@ip-172-31-39-147:~/code/discogs-xml2db$ python3 run.py --export label dump-dir csv-dir
Traceback (most recent call last):
File "run.py", line 23, in 
sys.exit(main(arguments))
File "/home/ubuntu/code/discogs-xml2db/discogsxml2db/exporter.py", line 324, in main
exporter.export()
File "/home/ubuntu/code/discogs-xml2db/discogsxml2db/exporter.py", line 71, in export
return self.export_from_file(self.openfile())
File "/home/ubuntu/code/discogs-xml2db/discogsxml2db/exporter.py", line 114, in export_from_file
operations = self.build_ops()
File "/home/ubuntu/code/discogs-xml2db/discogsxml2db/exporter.py", line 90, in build_ops
out_file_obj = open_func(os.path.join(self.out_dir, fname), 'wt', newline='', encoding='utf-8')
FileNotFoundError: [Errno 2] No such file or directory: 'csv-dir/label.csv'
@philipmat
Copy link
Owner Author

Fixed with commit e6efbe2

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