Giter VIP home page Giter VIP logo

Comments (2)

dokterbob avatar dokterbob commented on August 18, 2024

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

from django-agenda.

yuriiz avatar yuriiz commented on August 18, 2024

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

from django-agenda.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.