armindoantunes / gh615

Automatically exported from code.google.com/p/gh615
0 stars 0 forks source link

path gets wrong (prev file added as dir to path) #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use "c" export all

What is the expected output? What do you see instead?

ok

What version of the product are you using? On what operating system?
SVN trunk from 20080730

Please provide any additional information below.

=>c
DEBUG getTracklist(312): entered
DEBUG __connectSerial(106): serial connection on /dev/ttyUSB0
DEBUG __writeSerial(122): writing to serialport: 0200017879
DEBUG __writeSerial(125): waiting at serialport: 412
INFO getTracklist(326): 17 tracks found
DEBUG __disconnectSerial(116): serial connection closed
DEBUG getTracks(349): entered
DEBUG __connectSerial(106): serial connection on /dev/ttyUSB0
DEBUG __writeSerial(122): writing to serialport:
020025800011000000010011001500230029003600440045004D005A005B008A0091009D00B200B6
42
DEBUG __writeSerial(125): waiting at serialport: 75
DEBUG getTracks(389): getting trackpoints 0-2
DEBUG getTracks(402): initalizing new track
DEBUG __writeSerial(122): writing to serialport: 0200018180
DEBUG __writeSerial(125): waiting at serialport: 2070
DEBUG getTracks(389): getting trackpoints 0-135
...
DEBUG __writeSerial(125): waiting at serialport: 255
DEBUG getTracks(389): getting trackpoints 680-694
DEBUG getTracks(402): initalizing new track
DEBUG __writeSerial(122): writing to serialport: 0200018180
DEBUG __writeSerial(125): waiting at serialport: 4
INFO getTracks(419): number of tracks 17
DEBUG __disconnectSerial(116): serial connection closed
DEBUG exportTracks(428): entered
INFO __exportTrack(461): Successfully wrote
/home/zingo/bin/globalsat/gh615_2/globalsat/src/export/2008-05-21_18-22-32.xml
Traceback (most recent call last):
  File "./gh615_console.py", line 235, in <module>
    main()
  File "./gh615_console.py", line 151, in main
    choose()
  File "./gh615_console.py", line 131, in choose
    choose()
  File "./gh615_console.py", line 42, in choose
    choose()
  File "./gh615_console.py", line 64, in choose
    choose()
  File "./gh615_console.py", line 68, in choose
    results = gh615.exportTracks(tracks,'gpx')
  File "/home/zingo/bin/globalsat/gh615_2/globalsat/src/gh615.py", line
454, in exportTracks
    self.__exportTrack(file, path)
  File "/home/zingo/bin/globalsat/gh615_2/globalsat/src/gh615.py", line
458, in __exportTrack
    fileHandle = open(path,'wt')
IOError: [Errno 20] Not a directory:
'/home/zingo/bin/globalsat/gh615_2/globalsat/src/export/2008-05-21_18-22-32.xml/
2008-05-21_18-59-58.xml'
zingo@dual:~/bin/globalsat/gh615_2/globalsat/src$

------------ My tracklist

id |         date        | distance | calories | topspeed | trackpoints
00 | 2008-05-21 18:22:32 | 00000000 | 00000000 | 00000133 | 00000003
01 | 2008-05-21 18:59:58 | 00010282 | 00001009 | 00002454 | 3785363591
17 | 2008-05-21 20:54:01 | 00002379 | 00000208 | 00001532 | 3398697919
21 | 2008-05-24 07:34:59 | 00011039 | 00000888 | 00001632 | 3785297622
35 | 2008-06-06 08:31:00 | 00004396 | 00000000 | 00001971 | 00001490
41 | 2008-06-07 07:35:16 | 00010183 | 00000820 | 00001621 | 3785559355
54 | 2008-06-21 09:53:46 | 00010561 | 00000837 | 00001756 | 3818786319
68 | 2008-06-26 16:48:36 | 00000000 | 00000000 | 00000000 | 00000002
69 | 2008-07-01 06:09:40 | 00006096 | 00000000 | 00001896 | 976881632
77 | 2008-07-13 09:01:30 | 00010074 | 00001168 | 00001615 | 00003421
90 | 2008-07-13 11:51:56 | 00000000 | 00000000 | 00000146 | 00000003
91 | 2008-07-17 11:08:44 | 00030226 | 00002357 | 00001989 | 2659725755
138 | 2008-07-21 16:09:56 | 00005059 | 00000522 | 00002046 | 3805152884
145 | 2008-07-24 19:01:43 | 00009839 | 00000354 | 00001570 | 2843675836
157 | 2008-07-26 07:30:11 | 00015391 | 00001354 | 00001715 | 3768653363
178 | 2008-07-28 09:30:21 | 00003536 | 00000223 | 00003584 | 2761032767
182 | 2008-07-28 09:49:57 | 00003506 | 00000107 | 00003045 | 2239365815

Original issue reported on code.google.com by ZingoAnd...@gmail.com on 31 Jul 2008 at 8:24

GoogleCodeExporter commented 8 years ago
As I have completely rewritten the entire application, this issue is probably 
resolved.
If it still occurs, please reopen this issue. Thanks.

Original comment by spei...@gmail.com on 24 Aug 2008 at 12:35