Hi Michael,
If you open terminal and start Python 2.4 does the following works?
>>> from pysqlite2 import test
>>> test.test()
Cheers
Ronald
On Mar 1, 2006, at 9:01 PM, Michael Weiner wrote:
I am working my way through the turtorial, trying to educate myself a little bit here at home before i go and munge up my development environment at work. In that process, i grabbed the ez_install.py and got the latest tg et al eggs installed on this Mac OSX 10.4.4 machine running python 2.4.1. Working through the wiki tutorial, i am having a slight problem when i go to create the database/tables using tg-admin sql create, i receive the following errors:
$tg-admin sql create
Using database URI sqlite:///Users/hunter/turbogears/Wiki20/wikidata.db
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 7, in ?
sys.exit(
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears- 0.9a1-py2.4.egg/
<snip>
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/sqlite/sqliteconnection.py ", line 23, in __init__
import sqlite
ImportError: No module named sqlite
And i am basically stuck there. I grabbed pysqlite-2.1.3.tar.gz and installed that thinking that would give me python hooks into sqlite and also installed SQLite 2.8.16 and i am still recieving the same error. Not being a python developer, i am a systems administrator/designer, i may be missing something here, but everything seems to be in place. Am i missing something?
Any assistance would be GREATLY appreciated.
Thanks in advance
Michael Weiner
--
File "/Users/hunter/turbogears/wiki20/wiki20/templates/master.py", line 80, in _match_funcMichael Weiner
NameError: name 'turbogearsflash' is not defined
i see that defined in the master.kid, but my question is how to best correct this problem?
The variable has been renamed to 'tg_flash'. I have a corrected
wiki20.tgz for 0.9 on my personal site[1].
Karl -
Thank you very much that did the trick, although now i am up against the
AJAX issue reported earlier by another poster, where i click on the 'View
complete page listing' and all i end up with is the same page, with a # at
the end of the URL (eg http://localhost:8091/MochiKit#) and of course
nothing rendered into the page.
Thanks
Michael Weiner
Two things happening there. TG 0.9 no longer exposes json by default.
You must add ``allow_json=True`` to pagelist's expose decorator. The
request param has also changed and the correct url is
"/pagelist?tg_format=json". Check the wiki20.tgz on my site for the
correct formatting if you're having trouble.
Michael Weiner
--
I had an incorrect version up. In addition, Kevin has updated the
preview site with the new tutorial he'd written but which wasn't
properly linked. He uses the global config setting.
http://www.turbogears.org/preview/docs/tutorials/wiki20/page6.html
I'm th "other" user that reported the bug. I'm still having that bug. Could
you please add your experiences to the bug report? Thanxs
http://trac.turbogears.org/turbogears/ticket/627
or here:
http://trac.turbogears.org/turbogears/ticket/620
Javier
---------- Forwarded message ----------
From: javier <javi...@gmail.com>
To: turbo...@googlegroups.com
Date: Thu, 2 Mar 2006 00:08:50 +0100
Subject: [TurboGears] Re: tg 0.9 on macosx
Hi
I'm th "other" user that reported the bug. I'm still having that bug. Could
you please add your experiences to the bug report? Thanxs
http://trac.turbogears.org/turbogears/ticket/627
or here:
http://trac.turbogears.org/turbogears/ticket/620
Javier
--
Thanxs
javier
javier, try upgrading to 0.9 alpha. I'm not sure if that will fix your
problem, but at least you'll be on a revision I have on my system and
can debug a bit better. You'll need to run:
easy_install -U setuptools
easy_install -U -f
http://www.turbogears.org/preview/download/index.html TurboGears
Then grab an 0.9 version of the wiki20 project:
http://www.turbogears.org/preview/docs/tutorials/wiki20/wiki20.tgz
And see if that doesn't fix your problems.
I've forgot to add that the new wiki20.tgz didn't worked for me. I'm
having a similar issue with catwalk. When I get to create a new page
the "save" button doesn't work. I've looked at the html output and I
have a \n included somewhere inside the code so konqueror doesn't
understand the html. I've already sent a mail to kevin telling this
error. Here's an extract of the html rendered:
[...]
</SCRIPT>
<SCRIPT>\n var tg_static_directory = '/tg_static';\n </SCRIPT>
</HEAD>
<BODY ONLOAD="catwalk.retrieveModels()">
[...]
I have to say I haven't touched any code in the example except the
devcfg.py file to point to a correct database, that's all.
Thanxs
javier
--
Javier