pombreda / pysal

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

failed open shape file ends with SHP suffix #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import pysal
2. pysal.open('NAT.SHP')

What is the expected output? What do you see instead?
Suppose to work well, bu return an error:
IOError: [Errno 2] No such file or directory: 'NAT.SHP.shp'

What version of the product are you using? On what operating system?
1.3.0dev, 1.2.0 stable

Please provide any additional information below.
Should pysal support both SHP and shp suffixes?

Original issue reported on code.google.com by lixun...@gmail.com on 28 Nov 2011 at 3:30

GoogleCodeExporter commented 9 years ago
Thanks for the bug report.  The problem is with the uppercase extension.  I 
just verified this on my end.  In the meantime, changing the file extension 
from 'SHP' to 'shp' will solve the problem.

Original comment by schmi...@gmail.com on 28 Nov 2011 at 3:49

GoogleCodeExporter commented 9 years ago
Fixed this issue with r1045.  There may still be problems on case sensitive 
file systems. PySAL will always look for a file with a lower case "shp" 
extension.

Original comment by schmi...@gmail.com on 29 Nov 2011 at 7:57