i'm attempting run aptana studio in virtualenv setup on mac. keeps using environment outside of virtualenv.
has gotten virtualenv working aptana studio?
i've tried apply how tell aptana studio use python virtualenv? mac version no luck.
what have done far:
in terminal
- cd ~/desktop
- virtualenv payload
- cd payload
- source bin/activate
in aptana
- aptana > preferences > pydev > interpreters
- click new on python interpreters
- selected ~/desktop/payload/bin/python2.7/
default setup

my setup virtualenv

i noticed system libs don't seem same not sure if that's issue
- next right-clicked on project selected properties
- selected project , clicked edit

- changed interpreter tab default pythonfinal noticed each time go settings goes default
- here's settings individual project properties.

- pressed see results command-line given parameters got
/users/-username-omitted-/desktop/payload/bin/python -u
/users/-username-omitted-/desktop/payload/source/test.py
the pythonpath used is:
/applications/aptana studio 3/plugins/org.python.pydev_3.0.0.1388187472/pysrc/pydev_sitecustomize:/system/library/frameworks/python.framework/versions/2.7/lib/python2.7:/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/plat-darwin:/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/lib-tk:/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/plat-mac:/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages`
- next installed python-crontab virtualenv
- by using pip install python-crontab
here's working code works outside of virtualenv if install python-crontab
def main(): print "run complete. " crontab import crontab cron = crontab(user=true) job = cron.new(command='python /opt/my_script.py') job.setall(2, 10, '2-4', '*/2', 3) cron.write() if __name__ == "__main__": main() - it doesn't seem using virtualenv python-crontab because creates error.
question: - in aptana studio have not configured correctly?
Comments
Post a Comment