On Wednesday, April 6, 2016 at 12:18:09 PM UTC-4, Alex Mellnik wrote:
>
> I rely on a small Python module which I am currently calling directly with 
> @pyimport in a notebook:
>
> using PyCall
> @pyimport datetime
> @pyimport TheModule
>
> cursor = TheModule.connect() 
>
>
This won't work if you ever decide to enable precompilation of your module, 
because @pyimport defines constants that contain pointers (to Python 
objects at runtime), and these pointers won't be valid when you re-load a 
precompiled module.

I've updated the PyCall README to add some notes on using PyCall with 
precompiled modules:

   https://github.com/stevengj/PyCall.jl#using-pycall-from-julia-modules

Reply via email to