I'm having application using python 2.7 in openshift and trying to copy file using ftplib.
When I try it in local virtenv everything is OK. But after deployment on openshift getting 500 on web site. Removing code related to ftplib makes it working (it is enough to comment out import ftplib).
It looks like openshift is missing ftplib. Anybody with similar problem? How to get it there?
Have you added it to your dependencies for your application?
Python now supports the use of requirements.txt to handle your dependencies, although python handles things a little different from php/perl. Your requirements.txt can be in your app’s root directory. If both your setup.py and requirements.txt exist within your repo, then both will be processed.
ftplib is missing in openshift