Giter Site home page Giter Site logo

Comments (5)

lekhanhtoan37 avatar lekhanhtoan37 commented on July 24, 2024

Bug with https://github.com/confluentinc/confluent-kafka-python

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/anyio/from_thread.py", line 217, in _call_func
    retval = await retval_or_awaitable
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/_schedulers/async_.py", line 427, in add_schedule
    await self.data_store.add_schedule(schedule, conflict_policy)
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/datastores/sqlalchemy.py", line 496, in add_schedule
    schedule.marshal(self.serializer)
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/_structures.py", line 143, in marshal
    marshalled["args"] = serializer.serialize(self.args)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/serializers/pickle.py", line 29, in serialize
    return dumps(obj, self.protocol)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot pickle 'cimpl.Producer' object

from apscheduler.

lekhanhtoan37 avatar lekhanhtoan37 commented on July 24, 2024

Any update?

from apscheduler.

agronholm avatar agronholm commented on July 24, 2024

Bug with https://github.com/confluentinc/confluent-kafka-python

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/anyio/from_thread.py", line 217, in _call_func
    retval = await retval_or_awaitable
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/_schedulers/async_.py", line 427, in add_schedule
    await self.data_store.add_schedule(schedule, conflict_policy)
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/datastores/sqlalchemy.py", line 496, in add_schedule
    schedule.marshal(self.serializer)
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/_structures.py", line 143, in marshal
    marshalled["args"] = serializer.serialize(self.args)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/toanlk/company-project/36hc/bet/.venv/lib/python3.11/site-packages/apscheduler/serializers/pickle.py", line 29, in serialize
    return dumps(obj, self.protocol)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot pickle 'cimpl.Producer' object

How is this an APScheduler bug if pickle can't serialize an unserializable object?

from apscheduler.

agronholm avatar agronholm commented on July 24, 2024

So can you explain what the problem is with callable_to_ref()? The traceback you posted offers no hints on that.

from apscheduler.

agronholm avatar agronholm commented on July 24, 2024

Closing due to lack of responses.

from 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.