https://pulumi.com logo
#python
Title
# python
c

colossal-barista-38672

09/10/2019, 8:06 PM
Hi all, I am installation pulumi in container ubuntu but the end setup "pip3 install -r requirements.txt" generates an error. Any recommendation. I use link https://www.pulumi.com/docs/get-started/azure/review-project/ for the installation. (venv) root@d4956ca4dfa4:/quickstart# pip3 install -r requirements.txt Collecting pulumi>=1.0.0 (from -r requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/e1/fb/6597c0679953e09a e758fb2db3a545ffbce426e6433dd6c466c32dcba43d/pulumi-1.0.0-py2.py3-none-any.wh l Collecting pulumi-azure>=1.0.0 (from -r requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/8f/76/1cf9e1e4e1e8d132 22a34034d388fcb03d4d973f46cc1249e4caa9bb6bbf/pulumi_azure-1.0.0.tar.gz ERROR: Command errored out with exit status 1: command: /quickstart/venv/bin/python3 -c 'import sys, setuptools, tokeni ze; sys.argv[0] = '"'"'/tmp/pip-install-5o8b904z/pulumi-azure/setup.py'"'"'; file='"'"'/tmp/pip-install-5o8b904z/pulumi-azure/setup.py'"'"';f=getattr( tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'" ', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg _info --egg-base pip-egg-info cwd: /tmp/pip-install-5o8b904z/pulumi-azure/ Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-5o8b904z/pulumi-azure/setup.py", line 33, in <mo dule> long_description=readme(), File "/tmp/pip-install-5o8b904z/pulumi-azure/setup.py", line 28, in rea dme return f.read() File "/quickstart/venv/lib/python3.6/encodings/ascii.py", line 26, in d ecode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 436: ordinal not in range(128) ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
f

future-barista-68134

09/10/2019, 8:30 PM
can you try upgrading pip and setup tools?
pip3 install --upgrade pip setuptools
h

high-translator-22614

09/10/2019, 9:12 PM
that's a pretty common bug in python packages and a pretty easy fix, although i'm not seeing the offending character
oh, smart quotes
yeah, just specify the encoding in
setup.py
, and double check your other SDKs