Marc Seeger
unread,Sep 9, 2008, 5:52:33 AM9/9/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gh615
Just in case somebody runs into the same problem as me :)
When exporting a track, I received this error:
Traceback (most recent call last):
File "gh600_console.py", line 265, in <module>
main()
File "gh600_console.py", line 173, in main
choose()
File "gh600_console.py", line 107, in choose
results = ef.exportTracks(tracks)
File "/Users/marc/workspace/gh615-read-only/globalsat/src/gh600.py",
line 452, in exportTracks
self.exportTrack(track, **kwargs)
File "/Users/marc/workspace/gh615-read-only/globalsat/src/gh600.py",
line 445, in exportTrack
self.__export([track], **kwargs)
File "/Users/marc/workspace/gh615-read-only/globalsat/src/gh600.py",
line 471, in __export
with open(path, 'wt') as f:
IOError: [Errno 2] No such file or directory: '/Users/marc/workspace/
gh615-read-only/globalsat/src/export/2008-09-07_17-36-57.xml'
At first I was a little bit confused because the "open(path, 'wt')"
call should create the file if it isn't available, but then I looked
closer at the message and found the solution:
--> create the "export" directory <--
the open call will create files that don't exist, but NOT directories.