DjangoBB

Django based forum engine

  • You are not logged in.
  • Root
  • » Bugs
  • » Pickling error when adding or replying to topics [RSS Feed]

#1 May 16, 2011 14:11:07

qgriffith
Registered: 2011-05-16
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

Pickling error when adding or replying to topics

I just upgraded to the latest code in the repository. I am running on Django 1.2.4 using Apache with modwsgi. Every once in a while when someone adds a new topic or adds a reply to a current topic I get this error

PicklingError at /forum/topic/1/post/add/
Can't pickle <type ‘function’>: attribute lookup __builtin__.function failed
Request Method: POST
Request URL: http://oe2.openeats.org/forum/topic/1/post/add/ [oe2.openeats.org]
Django Version: 1.2.4
Exception Type: PicklingError
Exception Value:
Can't pickle <type ‘function’>: attribute lookup __builtin__.function failed
Exception Location: /opt/local/virtenvs/oecms/lib/python2.6/site-packages/whoosh/filedb/fileindex.py in _write_toc, line 110
Python Executable: /usr/bin/python
Python Version: 2.6.5
Python Path:

Offline

#2 May 16, 2011 14:22:30

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Pickling error when adding or replying to topics

check permission to HAYSTACK_WHOOSH_PATH (djangobb_index by default)
what version of HAYSTACK u used? i does't tested forum with latest version (released in this mionth)

Edited slav0nic (May 16, 2011 14:22:59)

Offline

#3 May 16, 2011 14:27:51

qgriffith
Registered: 2011-05-16
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

Pickling error when adding or replying to topics

Thank you for replying so quickly! I checked the Haystack index folder and index are getting created. The folder is owned by the apache user and group (the same user who runs apache) and that user has write permissions. I am using Whoosh version 1.8.2 and haystack 1.2.0.

Offline

#4 May 16, 2011 14:28:58

qgriffith
Registered: 2011-05-16
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

Pickling error when adding or replying to topics

I just looked it appears djangobb only supports Haystack 1.1.0, so that may be the issue.

Offline

#5 May 16, 2011 14:43:54

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Pickling error when adding or replying to topics

i u can - test pls with 1.1.0 if it will be ok - create ticket at http://djangobb.org/newticket [djangobb.org]

Offline

#6 Nov. 7, 2011 18:57:09

hakan
Registered: 2011-08-30
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

Pickling error when adding or replying to topics

This is also occurring for me. Strangely enough, it stops occurring when I re-install django-haystack==1.1.0, but then returns a few days later.

Is there a way to use DjangoBB without Haystack?

Edited hakan (Nov. 7, 2011 18:57:23)

Offline

#7 Nov. 8, 2011 10:25:05

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Pickling error when adding or replying to topics

disable it from urls.py + remove it from menu via template
altter we planning added option for this

Offline

  • Root
  • » Bugs
  • » Pickling error when adding or replying to topics[RSS Feed]

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version