I wouldnt change the python executable (nor should you). /usr/bin/paster is a python source file, not an executable, so it should be passed to the real python executable as the first argument, for example:
python /usr/bin/paster serve development.ini or more generally (which should work for local virtual env as well): python $(which paster) serve development.ini On Nov 24, 10:02 am, SystemicPlural <[email protected]> wrote: > I've managed to fix this now. > > In 'Window>Preferences>Pydev>Interpreter - Python' remove the python > interpreters and reload it (select 'New') after installing pylons. > > In 'Run>Open Debug Dialog' enter the location of paster in 'Main > Module'. For me this is '/usr/bin/paster' . Then in the 'Arguments' > tab in Program arguments enter 'serve /locationOfYourProject/ > development.ini' > > All set to go. > It took a lot of search for me to find out that break points will not > work if the arguments includes '--reload' > > On Nov 24, 8:54 am, SystemicPlural <[email protected]> wrote: > > > Thanks Dalius. I'm not sure what it did, but that half worked. > > I can now run pylons from eclipse but the debug breakpoints are not > > working. There are no errors. > > Any more help? > > > On Nov 23, 8:01 pm, "Dalius Dobravolskas" > > > <[email protected]> wrote: > > > On Sun, Nov 23, 2008 at 6:48 PM, SystemicPlural <[email protected]> > > > wrote: > > > > > I am trying to get Pylons working in Eclipse with Pydev (Ubuntu) > > > > I can't get it to run or debug. > > > > I've re-imported the python interpreter. > > > > In the run dialog I have the main module as: /usr/bin/paster and > > > > program arguments as serve --reload /home/sky/www/PylonTest/ > > > > development.ini but when I run I just get a bunch of errors (below) > > > > > If I run > > > > /usr/bin/paster serve --reload /home/sky/www/PylonTest/development.ini > > > > in terminal the > > > > /home/sky/www/PylonTest/ > > > > directory then it works, but from any other directory it does not. > > > > why? > > > > I get the same errors in the terminal as I do in eclipse. > > > > > (Pretty much a newbie to Ubuntu/Eclipse/Pydev and Pylons) > > > > > Starting subprocess with file monitor > > > > Traceback (most recent call last): > > > > File "/usr/bin/paster", line 8, in <module> > > > > load_entry_point('PasteScript==1.3.6', 'console_scripts', 'paster') > > > > () > > > > File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/ > > > > paste/script/command.py", line 78, in run > > > > invoke(command, command_name, options, args[1:]) > > > > File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/ > > > > paste/script/command.py", line 117, in invoke > > > > exit_code = runner.run(args) > > > > File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/ > > > > paste/script/command.py", line 212, in run > > > > result = self.command() > > > > File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/ > > > > paste/script/serve.py", line 227, in command > > > > relative_to=base, global_conf=vars) > > > > File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/ > > > > paste/script/serve.py", line 250, in loadapp > > > > **kw) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 193, in loadapp > > > > return loadobj(APP, uri, name=name, **kw) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 213, in loadobj > > > > global_conf=global_conf) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 237, in loadcontext > > > > global_conf=global_conf) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 267, in _loadconfig > > > > return loader.get_context(object_type, name, global_conf) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 393, in get_context > > > > section) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 415, in _context_from_use > > > > object_type, name=use, global_conf=global_conf) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 345, in get_context > > > > global_conf=global_conf) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 237, in loadcontext > > > > global_conf=global_conf) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 274, in _loadegg > > > > return loader.get_context(object_type, name, global_conf) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 542, in get_context > > > > object_type, name=name) > > > > File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/ > > > > paste/deploy/loadwsgi.py", line 562, in find_egg_entry_point > > > > pkg_resources.require(self.spec) > > > > File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 626, > > > > in require > > > > needed = self.resolve(parse_requirements(requirements)) > > > > File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 524, > > > > in resolve > > > > raise DistributionNotFound(req) # XXX put more info here > > > > pkg_resources.DistributionNotFound: helloworld > > > > cd .../helloworld > > > sudo python setup.py develop > > > > -- > > > Daliushttp://blog.sandbox.lt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
