Comments (4)
It looks like you're using Python 3.11.something, right?
How are you building the django-anymail package? Anymail's standard hatchling build doesn't include the tests in the distribution, so I guess you're doing some sort of custom build?
How are you running the tests? Anymail's own runtests.py? tox? Something custom? Any relevant environment settings?
Have you modified anything in the tests or in Anymail?
How are you getting Django its settings? If you're using Anymail's runtests.py or tox, it will provide appropriate settings (if you've included tests/test_settings in your distribution) and will identify the module it's using at the start of the test output. If you're using your own test runner, what settings are you using, and how are you telling Django where to find them? (Did you include "anymail" in the INSTALLED_APPS?)
What other Python packages are installed? Have you installed the packages specified by tests/requirements.txt? (That wouldn't cause these errors, but it will cause others.)
If none of that helps, I'd suggest carefully comparing your test environment with a successful runs to see what differs. Anymail was tested against Django 4.2.13 and Python 3.11.9 a few days ago in a weekly scheduled run, without error. Expand the "Test django42-py311-all" node in the logs panel to see the details of installed packages, commands, settings module, etc. (This ran against the current main branch, but I'd expect 10.3 to behave the same, with possibly a single error depending on your exact Python version. Nothing like what you're seeing.)
Finally, you might try searching the web for "AppRegistryNotReady." (I have a vague memory that error can be caused by trying to call Django functions directly from your settings module, or something along those lines, but could be misremembering.)
from django-anymail.
Thanks, I was running tests using pytest runner and I set django settings using an env variable.
Now I'm using runtests.py and it fixes my issue.
from django-anymail.
@akashdoppalapudi glad that solved it.
Incidentally, it looks like the Debian dist is still suggesting the python-sparkpost package. That's no longer necessary. django-anymail dropped all use of python-sparkpost in v8.0 on 2020-09-11. (python-sparkpost didn't appear to be maintained.)
from django-anymail.
Thanks for letting me know, I'll fix it.
from django-anymail.
Related Issues (20)
- Add support to Unisender Go HOT 2
- Support Brevo batch sending with merge_data HOT 2
- Add batch sending support for Resend HOT 1
- Mailgun webhooks: AttributeError 'NoneType' object has no attribute 'get' HOT 1
- boto3 sesv2 client does not have method 'send_email'. Check AmazonSESV2SendEmailPayload HOT 4
- Bad UTF-8 "To" header encoding? HOT 8
- Tests fail with error "AppRegistryNotReady: Apps aren't loaded yet"
- New feature: per-recipient merge_headers
- Amazon SES: support extra_headers, metadata, tags for template sends
- Brevo `trace_clicks` and `trace_opens` HOT 2
- `ses:SendRawEmail` permission still required in v11 for Amazon SES when using `django.core.mail.send_mail`? HOT 3
- Brevo Webhook Mapping Updates HOT 4
- A boto3 problem? HOT 5
- Mailgun Inbound: Empty Attachments When Receiving Emails from Gmail Web HOT 7
- BCC not delivering with Mandrill? HOT 1
- Issue parsing delivery delays from Postmark HOT 2
- Consider type hints for user inputs HOT 5
- Support `send_at` for Resend
- Unisender GO raises AnymailWebhookValidationFailure on some webhook events HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-anymail.