Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Viewing all articles
Browse latest Browse all 9596

Access the Python Windows file

$
0
0

I am new to python, and despite my searching, am unable how to properly access a file from a Python Script on windows with Python 3. I am trying to use Mongosm to import openstreetmap OSM data into mongodb, but get an error when trying to access the file. How can I fix this? Thank you. According to the github instructions, all I need to do is python insert_osm_data.py <OSM filename> ( instructions found here )

The error says:

C:\Users\Jusitn>python C:\Users\Jusitn\Desktop\mongosm-master\insert_osm_data G:\OSM\planet-140430.osm File "C:\Users\Jusitn\Desktop\mongosm-master\insert_osm_data.py", line 160 print 'node not found: '+ str(node) SyntaxError: invalid syntax


Viewing all articles
Browse latest Browse all 9596

Trending Articles