Aaah! That might do it!
I am on PostGreSQL version 11 (downloaded from
https://postgresapp.com)
I see that my local environment path also points to the "standard" PostGreSQL installation path.
I have changed the line with POSTGRESPATH to
POSTGRESPATH = " /Applications/Postgres.app/Contents/Versions/latest/bin/"
And I have also made sure that the environment PATH-variable show correct paths now as well:
HA-SERVER:~ dator$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Postgres.app/Contents/Versions/latest/bin
HA-SERVER:~ dator$
And when restarting the script now it looks very promising:
- Code: Select all
stepCREATDEFS-- 90.4@21:08 FINISHED
stepCreateImport 90.4@21:08 creating POSTGRES import commands from SQLite querries ( ~ 85 minutes for this database size )
rm: /Users/dator/Documents/convert/temp/postgresimportFromCOPY-*: No such file or directory
.................... 267.1@21:11 # 20
.......
It got passed the previous place in the code where it stopped and it does indeed look like it is currently importing data into the PostGreSQL database!
The remove command above had an error when it tried to remove the file "postgresimportFromCOPY-*" so I am not sure if that will cause other problems or is this error just caused by the fact that I did not had not that file yet?