Code Monkey home page Code Monkey logo

Comments (3)

jarekwg avatar jarekwg commented on July 18, 2024

Hi sunjiali, are you running on Python 2?

This repo is currently python 3 only.

I'm happy to merge PRs that add python2 compatibility.

In this case all that's missing is arguments to the super() call:
super() -> super(classname, self)

from django-apscheduler.

sunjiali avatar sunjiali commented on July 18, 2024

Hi, jarekwg
I just changed super().init()-> super(DjangoJobStore,self).init() still have error.

In [14]: scheduler.add_jobstore(DjangoJobStore(), 'djangojobstore')

TypeError Traceback (most recent call last)
in ()
----> 1 scheduler.add_jobstore(DjangoJobStore(), 'djangojobstore')

/home/sunjiali/workspace1/Timer/Timer/django_apscheduler/jobstores.pyc in init(self, pickle_protocol)
17 def init(self, pickle_protocol=pickle.HIGHEST_PROTOCOL):
18 super(DjangoJobStore,self).init()
---> 19 self.pickle_protocol = pickle_protocol
20
21 def lookup_job(self, job_id):

TypeError: super() takes at least 1 argument (0 given)

In [15]:

Am I missing something?

from django-apscheduler.

sunjiali avatar sunjiali commented on July 18, 2024

Jarekwg,
Many thanks for your qucik response. It' working now.

from django-apscheduler.

Related Issues (20)

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.