lorrnel / fgdb2postgis

Python library providing functionality for converting ESRI file geodatabase to PostGIS
GNU General Public License v3.0
0 stars 0 forks source link

Access Help #1

Open veragreen119 opened 4 years ago

veragreen119 commented 4 years ago

The module appears to be installed. The command: import fgdb2postgis entered from a python script or a python console returns no errors The command: fgdb2postgis returns no errors.

But the command: fgdb2postgis -h or fgdb2postgis -v Does NOT return the help or version context.

Python Error:

PYTHON ERRORS:

Traceback info:
  File "S:\DIVISIONS\Evolution_Geomatics\Tech\Development\Working\vgreen\python\fgdb2pg\test.py", line 170, in <module>
    fgdb2postgis -v

Error Info:
name 'v' is not defined
ArcPy ERRORS:
xaniz25 commented 4 years ago

fgdb2postgis -h and fgdb2postgis -v now works needed to reinstall Python 2.7.16 then reinstalled fgdb2postgis package.

But now it's showing error in line 645 of filegdb.py:

C:\temp\vg>fgdb2postgis -yml --fgdb C:\temp\vg\PU091234.gdb > C:\temp\vg\PU091234.yaml
***********************************
Begin Program....
***********************************
Namespace(a_srs=None, database=None, fgdb='C:\\temp\\vg\\PU091234.gdb', host=None, include_empty=False, lookup_tables_schema='lookup_tables', password=None, port=None, t_srs=None, user=None, version=False, yml=True)
Begin Program....
FileGDB Info:
 Workspace:
 Sqlfolder:
 Yamlfile:
Setting arcpy environment ...
create_yaml...
get_feature_datasets
[u'Submission_Database', u'TNC_Data']
get_feature_classes
[{'count': 35, 'feature_type': u'Simple', 'shapeType': u'Polygon', 'feature': u'BLK_RD_FHP_1_2019_06_27_15h_20m_53s', 'dataset': None, 'foreign_keys': [], 'type': 'feature_class'}, {'count': 35, 'feature_type': u'Simple', 'shapeType': u'Polygon', 'feature': u'BLK_RD_FHP_1_2019_06_27_15h_21m_31s', 'dataset': None, 'foreign_keys': [], 'type': 'feature_class'}]
get_tables
string indices must be integers
  File "C:\Python\lib\site-packages\fgdb2postgis\filegdb.py", line 645, in create_yaml
    self.tables_list = self.get_tables()

will keep looking into it

dersteppenwolf commented 4 years ago

can you share an example fgdb to replicate the problem?

veragreen119 commented 4 years ago

The one we were testing with has some data we can't share but I think any FGDB will give the error. Can't attach a zip here so please use: Boundaries.gdb.zip