peter-wangxu / persist-queue

A thread-safe disk based persistent queue in Python
BSD 3-Clause "New" or "Revised" License
335 stars 50 forks source link

AttributeError: module 'persistqueue' has no attribute 'MySQLQueue' #198

Closed psagarna closed 1 year ago

psagarna commented 1 year ago

import persistqueue

db_conf = { .... } q = persistqueue.MySQLQueue(name="test",**db_conf) q.put('str1') q.put('str2') q.put('str3') q.get()

output: AttributeError: module 'persistqueue' has no attribute 'MySQLQueue' (pqueue)

psagarna commented 1 year ago

from persistqueue import MySQLQueue

db_conf = { .... } q = persistqueue.MySQLQueue(name="test",**db_conf) q.put('str1') q.put('str2') q.put('str3') q.get()

output: AttributeError: module 'persistqueue' has no attribute 'MySQLQueue' (pqueue)

psagarna commented 1 year ago

pip install persist-queue[extra]

peter-wangxu commented 1 year ago

what's the version installed?