Closed tai271828 closed 3 years ago
@allen91wu , would you mind providing more information for debugging? At the very beginning, we may need the following information:
mail_handler version (pypi package version, or commit hash)
windows version
python version
python environment (which python
or the absolute path of your python interpreter)
more system environment variables are welcome.
From @allen91wu when cloning repo:
remote: Enumerating objects: 683, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (85/85), done.
remote: Total 683 (delta 44), reused 75 (delta 24), pack-reused 572
Receiving objects: 100% (683/683), 773.70 KiB | 4.05 MiB/s, done.
Resolving deltas: 100% (328/328), done.
error: unable to create file tests/data/with-separator/tai271828+sponsorship.testemail.4@gmail.com, tai271828+sponsorship.testemail.4.1@pycon.tw, taihsiangho+sponsorship.testemail.4.2@gmail.com,tai271828+sponsorship.testemail.4.3@solvcon.net - 韐蝯葫閰▒04▒▒▒▒: Filename too long
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
@allen91wu , would you mind providing more information for debugging? At the very beginning, we may need the following information:
mail_handler version (pypi package version, or commit hash) windows version python version python environment (
which python
or the absolute path of your python interpreter)more system environment variables are welcome.
git version may be also useful. @allen91wu would you mind giving git config --system core.longpaths true
a try?
See https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows
git version may be also useful. @allen91wu would you mind giving git config --system core.longpaths true a try? See https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows
@tai271828 I try it, and it is successfully for me to use git clone repo
in terminal. Thanks for your helping.
@allen91wu , would you mind providing more information for debugging? At the very beginning, we may need the following information: mail_handler version (pypi package version, or commit hash) windows version python version python environment (which python or the absolute path of your python interpreter)
mail_handler version => 0.1.0
windows version => Microsoft Windows 10 Home Edition 10.0.19042
python version => python39
python environment => C:\Python39\python.exe
git version may be also useful. @allen91wu would you mind giving git config --system core.longpaths true a try? See https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows
@tai271828 I try it, and it is successfully for me to use
git clone repo
in terminal. Thanks for your helping.
Neat! My gut feeling shows the traceback of this issue is caused by the same limitation of windows. By changing a file name like
tai271828+sponsorship.testemail.4@gmail.com, tai271828+sponsorship.testemail.4.1@pycon.tw, taihsiangho+sponsorship.testemail.4.2@gmail.com,tai271828+sponsorship.testemail.4.3@solvcon.net
in tests/data
and/or the mail you are going to render may help.
Additional information:
I found CPython has been handling cp950 already, so the issue is not likely caused by cpython (and its standard library).
https://github.com/python/cpython/blob/master/Lib/encodings/cp950.py
I solve the problem in PR #23.
In PR #10 , I don't have absolutely fix default encoding to utf-8.
For windows user, you can also consider to use WSL
for you to use Ubuntu terminal with development or using mail_handler
.
Description
When running
mail_handler
on windows, we have the following error message:We have tried https://github.com/pycontw/mail_handler/pull/10 . Unfortunately, https://github.com/pycontw/mail_handler/pull/10 did not resolve the issue.
Environment
mail_handler version => 0.1.0 windows version => Microsoft Windows 10 Home Edition 10.0.19042 python version => python39 python environment => C:\Python39\python.exe
Steps to Reproduce
Steps to reproduce the behavior:
Expected Behavior
Emails are rendered.
Actual Behavior