Now trying to do the tutorial:

(note: I had to update to python25 from 24 on windows because in trying
to do the tutorial I was getting an error about a missing python25.dll
after updating dependent packages (PasteDeploy-1.3.1, Beaker-0.8,
Webhelpers-0.3.2, Routes-1.7). Updating to 25 without changing path
fixed that problem.)

paster create -t Pylons TWTutorial -> should be ->paster create -t
pylons TWTutorial
- lowercase pylons not Pylons
- otherwise you get 'LookupError: Template by name 'Pylons' not found'

- make the first few code changes, get to the first paster serve..:

C:\Inetpub\pylonshome\TWTutorial>paster serve --reload development.ini
Starting subprocess with file monitor
Traceback (most recent call last):
  File "C:\Python24\scripts\paster-script.py", line 7, in ?
    sys.exit(
  File
"c:\python24\lib\site-packages\PasteScript-1.3.6-py2.4.egg\paste\script\
command.py", line 78, in run
    invoke(command, command_name, options, args[1:])
  File
"c:\python24\lib\site-packages\PasteScript-1.3.6-py2.4.egg\paste\script\
command.py", line 117, in invoke
    exit_code = runner.run(args)
  File
"c:\python24\lib\site-packages\PasteScript-1.3.6-py2.4.egg\paste\script\
command.py", line 212, in run
    result = self.command()
  File
"c:\python24\lib\site-packages\PasteScript-1.3.6-py2.4.egg\paste\script\
serve.py", line 227, in command
    relative_to=base, global_conf=vars)
  File
"c:\python24\lib\site-packages\PasteScript-1.3.6-py2.4.egg\paste\script\
serve.py", line 248, in loadapp
    return loadapp(
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 193, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 213, in loadobj
    global_conf=global_conf)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 237, in loadcontext
    global_conf=global_conf)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 267, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 393, in get_context
    section)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 414, in _context_from_use
    context = self.get_context(
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 345, in get_context
    global_conf=global_conf)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 237, in loadcontext
    global_conf=global_conf)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 274, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 541, in get_context
    entry_point, protocol, ep_name = self.find_egg_entry_point(
  File
"c:\python24\lib\site-packages\PasteDeploy-1.3.1-py2.4.egg\paste\deploy\
loadwsgi.py", line 568, in find_egg_entry_point
    possible.append((entry.load(), protocol, entry.name))
  File
"C:\Python24\lib\site-packages\setuptools-0.6c5-py2.4.egg\pkg_resources.
py", line 1830, in load
    entry = __import__(self.module_name, globals(),globals(),
['__name__'])
  File
"C:\Inetpub\pylonshome\TWTutorial\twtutorial\config\middleware.py", line
8, in ?
    from pylons.error import error_template
  File
"c:\python24\lib\site-packages\Pylons-0.9.6.1-py2.4.egg\pylons\error.py"
, line 14, in ?
    from paste.evalexception.middleware import *
  File
"c:\python24\lib\site-packages\Paste-1.5.1-py2.4.egg\paste\evalexception
\__init__.py", line 6, in ?
    from paste.evalexception.middleware import EvalException
  File
"c:\python24\lib\site-packages\Paste-1.5.1-py2.4.egg\paste\evalexception
\middleware.py", line 36, in ?
    from paste.exceptions import errormiddleware, formatter, collector
  File
"c:\python24\lib\site-packages\Paste-1.5.1-py2.4.egg\paste\exceptions\er
rormiddleware.py", line 14, in ?
    from paste.exceptions import formatter, collector, reporter
  File
"c:\python24\lib\site-packages\Paste-1.5.1-py2.4.egg\paste\exceptions\re
porter.py", line 8, in ?
    from socket import sslerror
ImportError: cannot import name sslerror

stuck :(


So I try on a development unix box. (Fits in with the split
personality...)
Have to update setuptools...
and ...

$ easy_install twForms
Searching for twForms
Reading http://www.pylonshq.com/download/
Reading http://pypi.python.org/simple/twForms/
Reading http://toscawidgets.org
Reading http://toscawidgets.org/download
Best match: twForms 0.1a2dev-r3508
Downloading
http://toscawidgets.org/download/twForms-0.1a2dev-r3508.tar.gz
Processing twForms-0.1a2dev-r3508.tar.gz
Running twForms-0.1a2dev-r3508/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-0vPxXD/twForms-0.1a2dev-r3508/egg-dist-tmp-zDT-OO
Adding twForms 0.1a2dev-r3508 to easy-install.pth file

Installed
../lib/python2.5/site-packages/twForms-0.1a2dev_r3508-py2.5.egg
Processing dependencies for twForms
Searching for ToscaWidgets>=0.1a2dev-r3415
Best match: ToscaWidgets 0.1a2dev-r3534
Downloading
http://toscawidgets.org/download/ToscaWidgets-0.1a2dev-r3534.tar.gz
Processing ToscaWidgets-0.1a2dev-r3534.tar.gz
Running ToscaWidgets-0.1a2dev-r3534/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-or06i2/ToscaWidgets-0.1a2dev-r3534/egg-dist-tmp-CFDwsT
Adding ToscaWidgets 0.1a2dev-r3534 to easy-install.pth file

Installed
../lib/python2.5/site-packages/ToscaWidgets-0.1a2dev_r3534-py2.5.egg
Searching for RuleDispatch>=0.5a0.dev-r2247
Best match: RuleDispatch 0.5a0.dev-r2247
Downloading
http://toscawidgets.org/download/RuleDispatch-0.5a0.dev-r2247.tar.gz
Processing RuleDispatch-0.5a0.dev-r2247.tar.gz
Running RuleDispatch-0.5a0.dev-r2247/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-C6i0yT/RuleDispatch-0.5a0.dev-r2247/egg-dist-tmp-zsofR
2
"src/dispatch/_d_speedups.c", line 155: warning: statement not reached
"src/dispatch/_d_speedups.c", line 191: warning: statement not reached
"src/dispatch/_d_speedups.c", line 199: warning: statement not reached
"src/dispatch/_d_speedups.c", line 222: warning: statement not reached
"src/dispatch/_d_speedups.c", line 285: warning: statement not reached
"src/dispatch/_d_speedups.c", line 299: warning: statement not reached
"src/dispatch/_d_speedups.c", line 313: warning: statement not reached
"src/dispatch/_d_speedups.c", line 327: warning: statement not reached
"src/dispatch/_d_speedups.c", line 341: warning: statement not reached
"src/dispatch/_d_speedups.c", line 355: warning: statement not reached
"src/dispatch/_d_speedups.c", line 461: warning: statement not reached
"src/dispatch/_d_speedups.c", line 493: warning: statement not reached
"src/dispatch/_d_speedups.c", line 559: warning: statement not reached
"src/dispatch/_d_speedups.c", line 724: warning: statement not reached
"src/dispatch/_d_speedups.c", line 792: warning: statement not reached
"src/dispatch/_d_speedups.c", line 801: warning: assignment type
mismatch:
 pointer to struct  {int ob_refcnt, pointer to struct _typeobject {..}
ob_type, int ob_size, array[1] of pointer to struct _object {..}
ob_item} "=" pointer to struct _object {int ob_refcnt, pointer to struct
_typeobject {..} ob_type}
"src/dispatch/_d_speedups.c", line 808: warning: assignment type
mismatch:
 pointer to struct  {int ob_refcnt, pointer to struct _typeobject {..}
ob_type, int ob_size, array[1] of pointer to struct _object {..}
ob_item} "=" pointer to struct _object {int ob_refcnt, pointer to struct
_typeobject {..} ob_type}
"src/dispatch/_d_speedups.c", line 869: warning: statement not reached
"src/dispatch/_d_speedups.c", line 891: warning: statement not reached
"src/dispatch/_d_speedups.c", line 930: warning: statement not reached
"src/dispatch/_d_speedups.c", line 957: warning: statement not reached
"src/dispatch/_d_speedups.c", line 1053: warning: statement not reached
"src/dispatch/_d_speedups.c", line 1066: warning: statement not reached
"src/dispatch/_d_speedups.c", line 1094: warning: statement not reached
"src/dispatch/_d_speedups.c", line 1152: warning: statement not reached
"src/dispatch/_d_speedups.c", line 1595: warning: statement not reached
"src/dispatch/_d_speedups.c", line 1657: warning: statement not reached
ld: fatal: library -lpython2.5: not found
ld: fatal: File processing errors. No output written to
build/lib.solaris-2.9-sun4u-2.5/dispatch/_d_speedups.so
error: Setup script exited with error: command '/import/bin/cc' failed
with exit status 1

So I'm stuck and maybe should be starting a new thread about what seems
to me to be a pylons version of dll hell. But its probably my own
inexperience.

I've just been doing easy_install -U pylons to get to 0.9.6.1 and
updating packages as nescessary. Perhaps its better to delete everything
and do a 'clean' easy_install pylons to try and make sure all packages
are at the required levels?

Does anyone have words of wisdom about installing pylons, python
packages? I.e. does it make sense to clean out old versions or what are
'best practices'?

Although looking at this again the unix problem is prolly a env problem,
i.e. need to solve -lpython2.5: not found


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to