Select to view content in your preferred language

Create Personal GeodataBase in ArcGis 10 compatible to 9.3

835
3
Jump to solution
06-27-2012 10:37 AM
MoisésCaballero
Emerging Contributor
Hi, can I help me with syntax error. When I run in Geoprocesing window, Python rutine...

import arcpy from arcpy import env arcpy.CreateFileGDB_management (c:/Pru, Dad.mdb, 9.3)

Parsing error <type 'exceptions.SyntaxError'>: invalid syntax (line 1)

I copy the command sequence, to ESRI

import arcpy from arcpy import env  arcpy.CreatePersonalGDB_management("C:/output", "pGDB.mdb", "9.2")

I hope anybody help me, regards and thank you...
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor
You left off the quotes and if you're using the Create File Geodatabase command, the geodatabase should have the suffix "gdb".

arcpy.CreateFileGDB_management ("C:/Pru", "Dad.gdb", "9.3")

View solution in original post

0 Kudos
3 Replies
JasonScheirer
Esri Alum
Need to split into multiple lines probably? Also you don't need the "from arcpy import env" line


import arcpy
from arcpy import env
arcpy.CreatePersonalGDB_management("C:/output", "pGDB.mdb", "9.2")
0 Kudos
KenBuja
MVP Esteemed Contributor
You left off the quotes and if you're using the Create File Geodatabase command, the geodatabase should have the suffix "gdb".

arcpy.CreateFileGDB_management ("C:/Pru", "Dad.gdb", "9.3")
0 Kudos
MoisésCaballero
Emerging Contributor
You left off the quotes and if you're using the Create File Geodatabase command, the geodatabase should have the suffix "gdb".

arcpy.CreateFileGDB_management ("C:/Pru", "Dad.gdb", "9.3")


Ok, that's correct, the two answers complement my question. Thank you for your time, I create succesfully my PGDB.
Science Master Marine Biology
Moises Caballero
INEGI, Mexico
0 Kudos