You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a stack trace error when using tspart.pt on a file in a different directory.
e.g. $python tsp_art_tools/trunk/tspart.py Pictures/Gocupi/cascadebmpindex.pbm
Expected this to work OK with relative paths. Suggest updating code to set "infile" and "outfile" as absolute paths before working with them.
Script runs fine when python is invoked from the same dir as the input file.
Here is the full Trace.
Traceback (most recent call last):
File "tsp_art_tools/trunk/tspart.py", line 243, in
tsp_fd, tspfile = tempfile.mkstemp( suffix='.tsp', prefix=tmp_prefix, text=True )
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 304, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '/var/folders/dm/ll6_b6xx2b56sygrlzdw2vb40000gn/T/Pictures/Gocupi/cascadebmpindex.wFpjtz.tsp'
The text was updated successfully, but these errors were encountered:
I am getting a stack trace error when using tspart.pt on a file in a different directory.
e.g. $python tsp_art_tools/trunk/tspart.py Pictures/Gocupi/cascadebmpindex.pbm
Expected this to work OK with relative paths. Suggest updating code to set "infile" and "outfile" as absolute paths before working with them.
Script runs fine when python is invoked from the same dir as the input file.
Here is the full Trace.
Traceback (most recent call last):
File "tsp_art_tools/trunk/tspart.py", line 243, in
tsp_fd, tspfile = tempfile.mkstemp( suffix='.tsp', prefix=tmp_prefix, text=True )
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 304, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '/var/folders/dm/ll6_b6xx2b56sygrlzdw2vb40000gn/T/Pictures/Gocupi/cascadebmpindex.wFpjtz.tsp'
The text was updated successfully, but these errors were encountered: