Closed TechWiz-3 closed 2 years ago
I tested yagmail on a Ubuntu VM and didn't have any errors, is the error something to do with my OS version?
it mentions loading httpx
- this should not be loaded in yagmail, maybe that's related
possibly the name of your script
My script actually doesn't have a name, I'm using the python prompt thingy in the terminal.
Not sure how the error could show up if yagmail doesn't use httpx tho 😅
could you maybe create a new folder without any files in there and then start python and try again?
also maybe try to reinstall without [all]
Alright I've done both
pip uninstall yagmail[all]
pip install yagmail
mkdir empty
cd empty
python3
>>> import yagmail
And received the same error
Exception ignored in: <function Client.__del__ at 0x10b79c790>
Traceback (most recent call last):
File "/Users/Peregrine/Library/Python/3.9/lib/python/site-packages/httpx/_client.py", line 1139, in __del__
self.close()
File "/Users/Peregrine/Library/Python/3.9/lib/python/site-packages/httpx/_client.py", line 1111, in close
self._transport.close()
AttributeError: 'Client' object has no attribute '_transport'
I searched the AttributeError: 'Client' object has no attribute '_transport'
error up, seems like others have had it before when using httpx in their code
thx for trying... it seems so weird
maybe try uninstall and installing httpx again?
Thanks a lot, updating httpx worked, now i can import yagmail without any errors :)
I'm using
Python 3.9.0
on MacOSMojave 10.14.6
I installed yagmail usingpip install yagmail[all]
I'm having an error when attempting to import yagmailAny help would be much appreciated