Osmosis: import .osm to postgresql fails


I am trying to import a 2GB .osm file to a new empty postgresql database but the command I use fails and I have no idea why. This is the command:

osmosis --read-xml file=“D:\Licenta\Romania OSM\romania.osm” --write-pgsql host=“localhost” database=“romania” user=“postgres” password=“mypassword”

This is the error I get:

SEVERE: Thread for task 1-read-xml failed org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL gram mar [SELECT version FROM schema_info]; nested exception is org.postgresql.util.P SQLException: ERROR: relation “schema_info” does not exist Position: 21 at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.d oTranslate(SQLErrorCodeSQLExceptionTranslator.java:233)

Thank you