-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Hello, after the latest updates I get this error while installing. How can I fix it?
PS C:\Users\BahadirCemre\Desktop\xxx> uv tool install "cookiecutter>=1.7.0"
cookiecutter>=1.7.0 is already installed
PS C:\Users\BahadirCemre\Desktop\xxx> uvx cookiecutter https://github.com/cookiecutter/cookiecutter-django
C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\requests_init_.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.0.1)/charset_normalizer (3.4.5) doesn't match a supported version!
warnings.warn(
You've downloaded C:\Users\BahadirCemre.cookiecutters\cookiecutter-django before. Is it okay to delete and re-download
it? [y/n] (y): y
[1/27] project_name (My Awesome Project): xxx
[2/27] project_slug (xxx): xxx
[3/27] description (Behold My Awesome Project!): xxx
[4/27] author_name (Daniel Roy Greenfeld): xxx
[5/27] domain_name (example.com): xxx.com
[6/27] email (xxx@xxx.com): xxx@xxx.com
[7/27] version (0.1.0): 0.1.0
[8/27] Select open_source_license
1 - MIT
2 - BSD
3 - GPLv3
4 - Apache Software License 2.0
5 - Not open source
Choose from [1/2/3/4/5] (1): 5
[9/27] Select username_type
1 - username
2 - email
Choose from [1/2] (1): 1
[10/27] timezone (UTC): UTC
[11/27] windows (n): y
[12/27] Select editor
1 - None
2 - PyCharm
3 - VS Code
Choose from [1/2/3] (1): 3
[13/27] use_docker (n): y
[14/27] Select postgresql_version
1 - 18
2 - 17
3 - 16
4 - 15
5 - 14
Choose from [1/2/3/4/5] (1): 2
[15/27] Select cloud_provider
1 - AWS
2 - GCP
3 - Azure
4 - None
Choose from [1/2/3/4] (1): 2
[16/27] Select mail_service
1 - Mailgun
2 - Amazon SES
3 - Mailjet
4 - Mandrill
5 - Postmark
6 - Sendgrid
7 - Brevo
8 - SparkPost
9 - Other SMTP
Choose from [1/2/3/4/5/6/7/8/9] (1): 6
[17/27] Select rest_api
1 - None
2 - DRF
3 - Django Ninja
Choose from [1/2/3] (1): 1
[18/27] use_async (n): y
[19/27] Select frontend_pipeline
1 - None
2 - Django Compressor
3 - Gulp
4 - Webpack
Choose from [1/2/3/4] (1): 4
[20/27] use_celery (n): y
[21/27] use_mailpit (n): y
[22/27] use_sentry (n): n
[23/27] use_whitenoise (n): n
[24/27] use_heroku (n): n
[25/27] Select ci_tool
1 - None
2 - Travis
3 - Gitlab
4 - Github
5 - Drone
Choose from [1/2/3/4/5] (1): 4
[26/27] keep_local_envs_in_vcs (y): n
[27/27] debug (n): y
Traceback (most recent call last):
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\binaryornot\helpers.py", line 103, in is_binary_string
bytes_to_check.decode(encoding=detected_encoding['encoding'])
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: decode() argument 'encoding' must be str, not None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Scripts\cookiecutter.exe_main.py", line 10, in
sys.exit(main())
~~~~^^
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\click\core.py", line 1485, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\click\core.py", line 1406, in main
rv = self.invoke(ctx)
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\click\core.py", line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\click\core.py", line 824, in invoke
return callback(*args, **kwargs)
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\cookiecutter\cli.py", line 219, in main
cookiecutter(
~~~~~~~~~~~~^
template,
^^^^^^^^^
...<12 lines>...
keep_project_on_failure=keep_project_on_failure,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\cookiecutter\main.py", line 185, in cookiecutter
result = generate_files(
repo_dir=repo_dir,
...<5 lines>...
keep_project_on_failure=keep_project_on_failure,
)
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\cookiecutter\generate.py", line 448, in generate_files
generate_file(
~~~~~~~~~~~~~^
project_dir, infile, context, env, skip_if_file_exists
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\cookiecutter\generate.py", line 221, in generate_file
if is_binary(infile):
~~~~~~~~~^^^^^^^^
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\binaryornot\check.py", line 33, in is_binary
return is_binary_string(chunk)
File "C:\Users\BahadirCemre\AppData\Local\uv\cache\archive-v0\mqzynVzmjfCBFsaCYd0z9\Lib\site-packages\binaryornot\helpers.py", line 106, in is_binary_string
unicode(bytes_to_check, encoding=detected_encoding['encoding']) # noqa
^^^^^^^
NameError: name 'unicode' is not defined