py-mysql2pgsql icon indicating copy to clipboard operation
py-mysql2pgsql copied to clipboard

error runn py-mysql2pgsql

Open mariawilson2 opened this issue 11 years ago • 1 comments

I'm getting the following error running this on a linux box. Any ideas? thanks…..

py-mysql2pgsql -v -f sage3.sql Traceback (most recent call last): File "/usr/local/bin/py-mysql2pgsql", line 4, in import('pkg_resources').run_script('py-mysql2pgsql==0.1.5', 'py-mysql2pgsql') File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 534, in run_script File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1438, in run_script File "/usr/local/lib64/python2.6/site-packages/py_mysql2pgsql-0.1.5-py2.6.egg/EGG-INFO/scripts/py-mysql2pgsql", line 38, in mysql2pgsql.Mysql2Pgsql(options).convert() File "/usr/local/lib64/python2.6/site-packages/py_mysql2pgsql-0.1.5-py2.6.egg/mysql2pgsql/mysql2pgsql.py", line 18, in init self.file_options = Config(options.file, True).options File "/usr/local/lib64/python2.6/site-packages/py_mysql2pgsql-0.1.5-py2.6.egg/mysql2pgsql/lib/config.py", line 33, in init super(Config, self).init(config_file_path) File "/usr/local/lib64/python2.6/site-packages/py_mysql2pgsql-0.1.5-py2.6.egg/mysql2pgsql/lib/config.py", line 18, in init self.options = load(open(config_file_path)) File "/usr/local/lib64/python2.6/site-packages/yaml/init.py", line 71, in load return loader.get_single_data() File "/usr/local/lib64/python2.6/site-packages/yaml/constructor.py", line 37, in get_single_data node = self.get_single_node() File "/usr/local/lib64/python2.6/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/usr/local/lib64/python2.6/site-packages/yaml/composer.py", line 58, in compose_document self.get_event() File "/usr/local/lib64/python2.6/site-packages/yaml/parser.py", line 118, in get_event self.current_event = self.state() File "/usr/local/lib64/python2.6/site-packages/yaml/parser.py", line 193, in parse_document_end token = self.peek_token() File "/usr/local/lib64/python2.6/site-packages/yaml/scanner.py", line 128, in peek_token self.fetch_more_tokens() File "/usr/local/lib64/python2.6/site-packages/yaml/scanner.py", line 220, in fetch_more_tokens return self.fetch_value() File "/usr/local/lib64/python2.6/site-packages/yaml/scanner.py", line 580, in fetch_value self.get_mark()) yaml.scanner.ScannerError: mapping values are not allowed here in "sage3.sql", line 3, column 20

mariawilson2 avatar Oct 08 '14 15:10 mariawilson2

Try testing your YaML config to be YaML. Taking into the account you are giving sage3.sql as a configuration I doubt this is a correct YaML.

kworr avatar Dec 07 '14 11:12 kworr