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

Issue running runmailer_pg #172

Open
citizenfish opened this issue Jan 5, 2024 · 1 comment
Open

Issue running runmailer_pg #172

citizenfish opened this issue Jan 5, 2024 · 1 comment
Labels

Comments

@citizenfish
Copy link

With psycopg2 Version 2.9.5 installed and running under python 3.11

python manage.py runmailer_pg

Gives error:-

  File "/opt/homebrew/lib/python3.11/site-packages/mailer/management/commands/runmailer_pg.py", line 31, in handle
    postgres_send_loop()
  File "/opt/homebrew/lib/python3.11/site-packages/mailer/postgres.py", line 38, in postgres_send_loop
    conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)

However,

python manage.py runmailer

Runs as expected

Desktop

  • OS: Mac OSX Sonara
  • Django Version 5.0

Additional context
Reading the psycopg2 documents, it appears this may be a legacy method

Note This is a legacy method mixing isolation_level and autocommit. Using the respective properties is a better option.
@citizenfish citizenfish added the bug label Jan 5, 2024
@spookylukey
Copy link
Contributor

Could you post the full stack trace? It appears to be truncated, it's not showing the actual exception. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants