Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Python 2.6 #5

Closed
yuriiz opened this issue Jul 12, 2011 · 2 comments
Closed

Doesn't work with Python 2.6 #5

yuriiz opened this issue Jul 12, 2011 · 2 comments

Comments

@yuriiz
Copy link

yuriiz commented Jul 12, 2011

Attempt to use it with Python 2.6/Django 1.3 fails:

TemplateSyntaxError at /admin/agenda/event/1/

Caught ViewDoesNotExist while rendering: Could not import agenda.views.vobject_django. Error was: No module named _thread

Have tried in two environments:

> python
Python 2.6.7 (r267:88850, Jul 12 2011, 11:28:50) 
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import _thread
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named _thread
# python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _thread
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named _thread
@dokterbob
Copy link
Owner

Hey Yuriiz,

The django-agenda up has not been maintained for a VERY long time.

However, it seems that this problem is related to the vobject module, as
I'm pretty sure I'm not using threads anywhere in the code. Did you try
upgrading vobject with pip install --upgrade vobject?

Kind regards,
Mathijs de Bruin

Op 12-07-11 09:39, yuriiz schreef:

Attempt to use it with Python 2.6/Django 1.3 fails:

TemplateSyntaxError at /admin/agenda/event/1/

Caught ViewDoesNotExist while rendering: Could not import agenda.views.vobject_django. Error was: No module named _thread

Have tried in two environments:

> python
Python 2.6.7 (r267:88850, Jul 12 2011, 11:28:50)
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import _thread
Traceback (most recent call last):
   File "<stdin>", line 1, in<module>
ImportError: No module named _thread
# python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _thread
Traceback (most recent call last):
   File "<stdin>", line 1, in<module>
ImportError: No module named _thread

@yuriiz
Copy link
Author

yuriiz commented Jul 12, 2011

Hi,

I've found a problem. It was not in django-agenda itself but in dateutil.rrule module used by django-agenda. It uses _thread module which is available only in Python 3. Changing it to use thread.Lock() fixed the problem.

Thanks,
Yurii

@yuriiz yuriiz closed this as completed Jul 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants