Were you able to get it up and running on a different (non-dreamhost)
box with MySQL in the same fashion? --philip

On 5/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> So I'm trying to install sapling on Dreamhost. I've gone through the
> motions of building my own python, MySQL-python, PIL, etc as roughly
> outlined here[1] but I'm still running into problems. Hopefully ya'll have
> seen them before. When I run the buildDB.py script I get the following:
>
> $ python buildDB.py
> creating tables..
> tables created
> creating views...
> views created
> creating other stuff...
> other stuff created
> inserting basic pages...
> You don't have Xapian installed...skipping configuration of search index.
> Building page caches...
>   --> Bookmarks
>   --> Front Page
>   --> Help
>   --> Help/Help with Editing
>   --> Help/Help with Formatting
>   --> Help/Help with Headlines
>   --> Help/Help with Images
> Traceback (most recent call last):
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 815, in
> buildCache
>     page.send_page(content_only=1)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 623, in
> send_page
>     self.send_page_content(Parser)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 676, in
> send_page_content
>     if cache.needsUpdate():
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/caching.py", line 26, in
> needsUpdate
>     page_cache = self.content_info()
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/caching.py", line 53, in
> content_info
>     return pageInfo(page).cached_text
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/caching.py", line 206,
> in pageInfo
>     result = page.cursor.fetchone()
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 154, in
> fetchone
>     result = fixUpStrings(result)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 46, in
> fixUpStrings
>     return [ doFixUp(i) for i in item ]
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 40, in
> doFixUp
>     return i.decode(config.db_charset)
>   File "/home/sbeards/lib/python2.4/encodings/utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x83 in position 31:
> unexpected code byte
>   --> Help/Help with Linking
>   --> Help/Help with Lists
>   --> Help/Help with Macros
>   --> Help/Help with Tables
>   --> Orphaned Pages
>   --> Outgoing Links
>   --> Recent Changes
>   --> Sandbox
>   --> System Pages Group
>   --> Title Index
>   --> User Preferences
>   --> User Statistics
>   --> Users
>   --> Wanted Pages
>   --> Wiki Settings
>   --> Wiki Settings/CSS
>   --> Wiki Settings/Images
> Traceback (most recent call last):
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 815, in
> buildCache
>     page.send_page(content_only=1)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 623, in
> send_page
>     self.send_page_content(Parser)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 676, in
> send_page_content
>     if cache.needsUpdate():
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/caching.py", line 26, in
> needsUpdate
>     page_cache = self.content_info()
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/caching.py", line 53, in
> content_info
>     return pageInfo(page).cached_text
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/caching.py", line 206,
> in pageInfo
>     result = page.cursor.fetchone()
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 154, in
> fetchone
>     result = fixUpStrings(result)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 46, in
> fixUpStrings
>     return [ doFixUp(i) for i in item ]
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 40, in
> doFixUp
>     return i.decode(config.db_charset)
>   File "/home/sbeards/lib/python2.4/encodings/utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x83 in position 31:
> unexpected code byte
> XXXXXXXXXXXXXXXXXXXXXXXXXXX
> rebuilt page caches!
> XXXXXXXXXXXXXXXXXXXXXXXXXXX
> $
>
> I've made sure my database's default collation is "utf8_general_ci". I've
> also tried moving the offending directories out of initial_pages so they
> aren't loaded but then the error just gets postponed and when I hit the
> wiki site in the browser I get:
>
> Traceback (most recent call last):
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/request.py", line 513,
> in run
>     Page(query, self).send_page(count_hit=1)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 453, in
> send_page
>     meta_text = self.get_meta_text()
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/Page.py", line 287, in
> get_meta_text
>     return caching.pageInfo(self).meta_text
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/caching.py", line 206,
> in pageInfo
>     result = page.cursor.fetchone()
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 154, in
> fetchone
>     result = fixUpStrings(result)
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 46, in
> fixUpStrings
>     return [ doFixUp(i) for i in item ]
>   File "/home/.orbit/sbeards/src/sapling/Sycamore/wikidb.py", line 40, in
> doFixUp
>     return i.decode(config.db_charset)
>   File "/home/sbeards/lib/python2.4/encodings/utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x83 in position 31:
> unexpected code byte
>
> Any ideas before I dive in? Once I get things working I'll update the
> Dreamhost install page. Also, I don't think this is a sapling bug because
> I was seeing the same behavior with the trunk.
>
> db_charset is set to "utf-8" in config.py and charset is set to "utf-8" in
> sycamore_config.py. I just did a straight "svn co"; what am I missing?
>
> Scott
> ------------
> [1] http://www.projectsycamore.org/Installing_on_Dreamhost
>
> _______________________________________________
> Sycamore-Dev mailing list
> [EMAIL PROTECTED]
> http://www.projectsycamore.org/
> https://tools.cernio.com/mailman/listinfo/sycamore-dev
>
_______________________________________________
Sycamore-Dev mailing list
[EMAIL PROTECTED]
http://www.projectsycamore.org/
https://tools.cernio.com/mailman/listinfo/sycamore-dev

Reply via email to