Hey Juan,
I believe I've figured out what When running in development, packages installed to your python system can appear to resolve dependencies. These will be absent in production for the reason that only your app's folder is uploaded, not all the python packages on your system.
For this reason, many developers work within a
virtualenv, so that outside dependencies don't come into the equation. Within the virtualenv, you shouldn't global-install packages, but should install them to a subfolder of your project and explicitly add these using
vendoring.
If you inspect the python path (sys.path) in the non-failing example as you currently have it, you'll notice system folders in the path. In production, you'll notice these are missing if you inspect sys.path there.
I hope this has helped clarify the issue as to why you're seeing an ImportError in production and not in dev. Feel free to post a reply if you find something different.
Best regards,
Nick
Cloud Platform Community Support