Sadless74 / googletransitdatafeed

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

$ ./feedvalidator.py < test/data/good_feed.zip causes crash #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
File "/home/thecap/googletransitdatafeed-trunk/python/transitfeed.py", line
2877, in Load
         self._problems.ClearContext()
 -->     if not self._DetermineFormat():
           return self._schedule
    self = <transitfeed.Loader instance at 0x826164c>

File "/home/thecap/googletransitdatafeed-trunk/python/transitfeed.py", line
2471, in _DetermineFormat
            if so, returns True."""
 -->     if not os.path.exists(self._path):
           self._problems.FeedNotFound(self._path)
    self = <transitfeed.Loader instance at 0x826164c>

File "posixpath.py", line 171, in exists
         try:
 -->         st = os.stat(path)
         except os.error:
    path = PB▒8▒
▒k

TypeError: stat() argument 1 must be (encoded string without NULL bytes),
not str

Original issue reported on code.google.com by tom.brow...@gmail.com on 18 Jul 2008 at 2:44

GoogleCodeExporter commented 9 years ago
Instead of sending input to stdin run the the path of the file as a command line
argument. IE

feedvalidator.py test/data/good_feed.zip

Not sure why this happens but it reproduces in Linux colinux 2.6.11-co-0.6.4

Original comment by tom.brow...@gmail.com on 18 Jul 2008 at 2:47

GoogleCodeExporter commented 9 years ago
need to do validation of path read from stdin

Original comment by tom.brow...@gmail.com on 21 Sep 2009 at 6:53

GoogleCodeExporter commented 9 years ago
Moved to https://github.com/google/transitfeed/issues/66

Original comment by bdfer...@google.com on 7 Oct 2014 at 7:54