Calling the constructor outside a module works, but inside a module throws ArgumentError: ref of NULL PyObject

The python object has to be initialized at module load time. See PyCall.__init__

2 Likes