May 31 2011
Pyramid framework settings in eclipse (aptana studio)
![]() |
![]() |
How can i set up Pyramid Framework 1.3 in Eclipse or in Aptana Studio 3?
Sure, IDE is very important in software development(debugging, code assist, organize imports etc.). You can code python in editors, it is practical but diffucult for beginners.
Python and Django have eclipse plugin, there is no eclipse plugin for Pyramid Framework?
How i can run a Pyramid Project from Eclipse or Aptana Studio 3?
Steps :
1 – in Console : Create new pyramid 1.3.xx project :
On Linux:
$ bin/pcreate -s alchemy MyProject
On Windows :
> Scripts\pcreate -s alchemy MyProject
2 – Install your newly created project for development
$ cd MyProject $ ../bin/python setup.py develop
On Windows :
> cd MyProject > ..\Scripts\python.exe setup.py develop
3 – In Aptana Studio 3 : Create new PyDev project and give project content path as your Pyramid Project path
4 – For run configuration add a pyramid_run variable in menu : Window > Preferences > in list PyDev – Interpreter – Python in tab String Substitution Variables – click Add variable and give key and value as in the screenshot below. On MS Windows select Scripts\pserve-script.py instead pserve.
5 – Add a run configuration in menu : Run -> Run Configuration on the left side on Python Run node Right Click : New Click and give run configuration settings and run.
6 – Your pyramid application runs on browser.
14 Comments
Leave a Reply
Jun 07, 2011 @ 13:35:22
Super blog, very helpful
Jul 06, 2012 @ 18:44:23
Hello!.. this blog is very helpfull for me!…
and i have a question.. is possible to debug applications with the “–reload” param to pserve?
Thnks!..
Sorry for my bad english
Jul 06, 2012 @ 23:58:00
Hi,
I think that’s not possible without “–reload” parameter.
Best regards.
Sep 04, 2014 @ 05:51:16
In Run configuration set arguments:
development.ini –reload
Working perfect!!!
Sep 04, 2014 @ 13:45:38
Debug Pyramid project: http://www.devsniper.com/debug-pyramid-projects-through-eclipse-aptana/
Sep 05, 2014 @ 04:09:17
Thanks very much for the great tutorial.
Sep 06, 2012 @ 16:07:15
Hola Cem Ikta,
thanks very much for the great tutorial.
I have a little problem though and maybe you have an idea if you would be so kind
I am using: Python3.2, with virtualenv and Aptana Studio 3.2.2
After configuring the Project and Interpreter as you’ve described I get an error on running the Project.
Traceback (most recent call last):
File “/Users/xxxxxx/Documents/pyramid/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/site.py”, line 73, in
__boot()
File “/Users/xxxxxx/Documents/pyramid/lib/python3.2/site-packages/distribute-0.6.28-py3.2.egg/site.py”, line 38, in __boot
raise ImportError(“Couldn’t find the real ‘site’ module”)
ImportError: Couldn’t find the real ‘site’ module
do you have an idea?
Sep 07, 2012 @ 14:40:32
Hi Daniel,
I have no idea. I have tried to use Pyramid with Python 3.x, but got a lot of problems. So I use Pyramid with Python 2.7.x.
May 10, 2014 @ 13:02:40
” ./bin/python setup.py develop ” command not working.
It says – bash: ../bin/python: No such file or directory
May 12, 2014 @ 20:58:50
Hi,
Have you installed the virtualenv? Try in terminal, does your project work in terminal without Aptana / Eclipse IDE?
May 14, 2014 @ 11:06:13
Aptana Studi is requirement for my project work. Can you plz explain how to setup debug mode for project
May 14, 2014 @ 11:20:27
see please my next blog post: http://www.devsniper.com/debug-pyramid-projects-through-eclipse-aptana/
Jun 19, 2014 @ 12:35:45
Hello Cem,
Can you explain with a new post to integrate Solr into existing pyramid project in Eclipse using any python API modules to interface Python with Solr/
Jun 21, 2014 @ 00:31:09
Hi Rajani,
I haven’t used Apache Solr with Pyramid framework yet. I would like to write a blog post when I use.