Hello,
1. Can setup.cfg be configured to use easy_install from
tg.org/,,,/index and then pypi. Its really hard to install from source
tg.devtools when package is missing on index page (tg.devtools in
trunk needs 4+ dependencies that are not on index). After commenting
out the easy_install everything got installed from pypi with no
problems.
2. Missing hashlib on python2.4 (please add to setup.py as
requirement for py2.4)
File "/usr/local/turbogears/myapp/myapp/model/auth.py", line 1, in ?
from hashlib import sha1
ImportError: No module named hashlib
3. print devtools.__file__
/usr/local/pythonenv/BASELINE6/lib/python2.5/site-packages/tg.devtools-2.0b1dev_r5976-py2.5.egg/devtools/__init__.pyc
When using modwsgi I set the script name like this:
WSGIScriptAlias /mainweb /path/to/myapp/mainweb.wsgi
What above does is set script_name for tg2 app.
script_name = /mainweb
This script name is not used after I click "login" or "logout"
http://localhost/mainweb/login
I fill in user:pass and when I click login, I am redirected to:
http://localhost/
instead I should be redirected to
http://localhost/mainweb/
Similar situation happens on logout:
http://localhost/login?came_from=http%3A%2F%2Flocalhost%2Fmainweb%2F
instead of
http://localhost/mainweb/login?came_from=http%3A%2F%2Flocalhost%2Fmainweb%2F
If you could tell me which part of the tg2 quick started app this
happens in then maybe I can fix it or point you to exactly where it
fails.
4. Missing sqllite again. This problem has been on on my python2.4
since tg1 and the only way I can think of fixing it is by removing
--no-site-packages otherwise pysqlite cannot be installed. Was anybody
able to get this figured out. There were some conversations on the
list but never a solution.
File
"/usr/local/pythonenv/BASELINE3/lib/python2.4/site-packages/SQLAlchemy-0.5.0rc4-py2.4.egg/sqlalchemy/databases/sqlite.py",
line 266, in dbapi
raise e
ImportError: No module named pysqlite2
easy_install pysqlite (fails even do gcc/cpp is installed)
..........
src/module.c:284: error: 'SQLITE_DROP_VIEW' undeclared here (not in a function)
src/module.c:285: error: 'SQLITE_INSERT' undeclared here (not in a function)
src/module.c:286: error: 'SQLITE_PRAGMA' undeclared here (not in a function)
src/module.c:287: error: 'SQLITE_READ' undeclared here (not in a function)
src/module.c:288: error: 'SQLITE_SELECT' undeclared here (not in a function)
src/module.c:289: error: 'SQLITE_TRANSACTION' undeclared here (not in
a function)
src/module.c:290: error: 'SQLITE_UPDATE' undeclared here (not in a function)
src/module.c:291: error: 'SQLITE_ATTACH' undeclared here (not in a function)
src/module.c:292: error: 'SQLITE_DETACH' undeclared here (not in a function)
src/module.c: In function 'init_sqlite':
src/module.c:419: warning: implicit declaration of function
'sqlite3_libversion'src/module.c:419: warning: passing argument 1 of
'PyString_FromString' makes pointer from integer without a cast
error: Setup script exited with error: command 'gcc' failed with exit status 1
It fails even when gcc is installed.
This is fixed if I do:
virtualenv BASELINE3 (which is my virtualenv name) For some reason
this seem to only happen on my python2.4 installation.
Thanks,
Lucas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---