Open veragreen119 opened 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
can you share an example fgdb to replicate the problem?
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
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
orfgdb2postgis -v
Does NOT return the help or version context.Python Error:
PYTHON ERRORS: