faulty installation? [pyxer 0.7.2]

3 views
Skip to first unread message

Robert

unread,
Jul 21, 2009, 3:48:31 AM7/21/09
to Pyxer - Python Framework
Hey all/Dirk,

I've created my first project using pyxer. My intention is to run it
using Paste Deploy, but the project directory doesn't contain any ini-
files which I would have expected (so 'pyxer --engine=paste serve'
bails with a file-not-found-error).

If I interpret the documentation correctly, at least a development.ini
should exist.

Is there any magic I should perform first?

Regards,
Robert

Dirk Holtwick

unread,
Jul 21, 2009, 3:52:17 AM7/21/09
to py...@googlegroups.com
Hi,

sorry I did postpone the Paster support a bit. For now just copy such a
developer.ini in the directory and make sure you use the latest Pyxer
version (from yesterday). Here is the INI:

-----------------8<---------------[cut here]
[app:main]
use = egg:pyxer#main

[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 8080

# Logging configuration
[loggers]
keys = root, app

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = DEBUG
handlers = console

[logger_app]
level = DEBUG
handlers =
qualname = app

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
-----------------8<---------------[cut here]

I'll try to fix that in the next version.

Dirk

Robert schrieb:

Dirk Holtwick

unread,
Jul 21, 2009, 3:53:15 AM7/21/09
to py...@googlegroups.com
BTW. Maybe you will also like the following shortcut for starting Paster:

$ xpaster serve

Dirk

Robert schrieb:

Robert

unread,
Jul 21, 2009, 4:10:12 AM7/21/09
to Pyxer - Python Framework
On Jul 21, 9:52 am, Dirk Holtwick <dirk.holtw...@gmail.com> wrote:
> Hi,
>
> sorry I did postpone the Paster support a bit. For now just copy such a
> developer.ini in the directory and make sure you use the latest Pyxer
> version (from yesterday). Here is the INI:

Thanks for the reply :)

It still doesn't work, because the paster-script is missing from the
project directory. I do have paster installed globally, so that's not
too big of an issue though.

Regards,
Robert

Dirk Holtwick

unread,
Jul 21, 2009, 4:31:51 AM7/21/09
to py...@googlegroups.com
Okay, this seems to be a bug too. Just start Paster directly like:

$ paster serve development.ini

Ignore the 'site-packages' directory, it will not be used outside of
AppEngine projects.

Ciao Dirk

Robert schrieb:

Rusco

unread,
Jul 23, 2009, 5:10:59 PM7/23/09
to Pyxer - Python Framework
Well, even if I tried to follow these instructions I did not come very
far.

First I found out that Paste and Webob is required. I installed them
manually (is this supposed to be done automatically via Easyinstall ?
At least in your installation docs you did not mention anything about
this dependency) .

Then I created the development.ini file and put it into my project-
directory.

Starting (x ?)paster serve development.ini I get a "file not found"
message, starting with:


ERROR [pyxer.utils] c:\userdata\python25\lib\site-packages\pyxer-0.7.2-
py2.5.egg\pyxer\utils\__init__.py line 156: Error
while executing command 'C:\\Documents and Settings\\rebhan.SIQ\
\Desktop\\pyxer-0.7.2\\myexample\\Scripts\\paster.exe s
erve C:\\Documents and Settings\\rebhan.SIQ\\Desktop\\pyxer-0.7.2\
\myexample\\development.ini '
Traceback (most recent call last):
.....

When I try : "xgae serve" I get "no module named dev_appserver", the
stacktrace starts with:
" File "c:\userdata\python25\lib\site-packages\pyxer-0.7.2-py2.5.egg
\pyxer\command.py", line 299, in command_gae
command("gae")".
For using the appengine development server are there any environment
variables necessary ? Normally I start this server form within pydev.

Any help (or a new release) is appreciated.

Best Regards
Rusco.
Reply all
Reply to author
Forward
0 new messages