Open Kristinita opened 6 years ago
@IlyaFinkelshteyn , this relevant in May 2018.
Thanks.
The problem is relevant for May 2018.
Thanks.
The problem still exists. In the November, 2020, AppVeyor still doesn’t support Unicode 😿.
Another example.
You can see this configuration in the KiraPeru
branch of my repository for demo/debugging.
appveyor.yml
:
platform: x64
image: Visual Studio 2019
clone_depth: 1
environment:
PYTHON: C:\Python39-x64
init:
- SETX PYTHONIOENCODING utf-8
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
install:
- "%PYTHON%\\python -m pip install --upgrade pip"
- "%PYTHON%\\python -m pip install peru"
build_script:
- peru sync
peru.yaml
:
# “Quotes”
git module open-graph:
url: https://github.com/whiskyechobravo/pelican-open_graph/
peru sync
Traceback (most recent call last):
File "C:\Python39-x64\Scripts\peru-script.py", line 12, in <module>
sys.exit(main())
File "C:\Python39-x64\lib\site-packages\peru\main.py", line 366, in main
parser.warn_duplicate_keys(runtime.peru_file)
File "C:\Python39-x64\lib\site-packages\peru\parser.py", line 249, in warn_duplicate_keys
text = f.read()
File "C:\Python39-x64\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 13: character maps to <undefined>
Command exited with code 1
If in peru.yaml
:
- # “Quotes”
+ # Without quotes
peru sync
Discovering tests…OK
Build success
Thanks.
It's not AppVeyor issue. The problem is in peru.yaml
file having Unicode quotes.
I can reproduce the issue locally:
git clone --branch=KiraPeru https://gitlab.com/Kristinita/kirapipenv.git
cd kirapipenv
git checkout 42411cc1
python
>>> f = open('peru.yaml')
>>> r = f.read()
My rough guess is peru.yaml
not having BOM header:
Another unicode issue. Related issues:
1. Summary
For example, I have
“citation marks”
in myPipfile
.If AppVeyor:
I can't install dependencies for Pipenv.
else Travis CI or local machine:
I successful install Pipenv dependencies.
2. Local environment
3. Project
See simply project configuration in SashaPipenv tree of my repository.
appveyor.yml
file:Pipfile
:In first line I have
“quotation marks”
.4. Expected behavior
If local machine or same configuration for Travis CI:
Dependencies successful installed.
Elif I remove first line from my
Pipfile
:Build passed
(I have ImportError, but, possibly, it not related bug)
5. Actual behavior
Else AppVeyor:
6. Not helped
7. Do not offer
Please, do not offer, that I should not use non-ASCII symbols in Pipfile, because it works in another environments.
Thanks.