Monday, August 5, 2019

Error loading psycopg2 module: No module named ‘psycopg2’. OMG I am stupid. Hamza actually fixed that bug but I undid it because I didn’t notice at that moment the difference between apt packages and pip packages… Yes of course: okay we select the db-engine only once per server, but startsite still must install the corresponding pip packages in startsite for every site.

Should we install psycopg2-binary or rather psycopg? –> “The psycopg2-binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.” (

This caused an errror “You need to install postgresql-server-dev-NN for building a server-side extension or libpq-dev for building a client-side application.” –> I added libpq-dev to the apt_packages of postgresql dbengine.

The getlino.utils.Installer.runcmd() didn’t fail when the subprocess failed. Fixed.

More changes in the .travis.yml file after reading Travis docs. No need to specify a python version as each Ubuntu distro has its default version. Travis offers only Ubuntu images, no pure Debian.

Fixed a problem with the postgresql database setup (it was adding an “;” at the wrong place).

Running inv prep in a project without demo projects

The inv prep command in getlino didn’t execute the script because getlino has no demo projects. Instead of saying “inv prep test” we must say “./ ; inv test” in the .travis.yml file. But that’s suboptimal. inv prep should “run preparation tasks that need to run before testing (but only once for all tests)”. When I run “pp inv prep test” it should rebuild the images. I should not be forced to remember running manually before “pp inv prep test”. So we have now two config settings for inv prep: prep_command and demo_prep_command.

Released Atelier 1.1.14 (Changes in atelier, rstgen and sphinxfeed) for testing it on travis for getlino.

Telling Docker where to store images

I am getting system warnings because Docker fills up my root filesystem.

But how to configure the docker daemon on Ubuntu?

Finally I just said:

$ docker system prune

Which answered:

WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all dangling images
  - all dangling build cache

Are you sure you want to continue? [y/N] y
Deleted Containers:
Total reclaimed space: 27.53GB