Skip to content

Instantly share code, notes, and snippets.

@martinda
Created January 22, 2017 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinda/efeceb456e98806745807ff7c34917b7 to your computer and use it in GitHub Desktop.
Save martinda/efeceb456e98806745807ff7c34917b7 to your computer and use it in GitHub Desktop.
str object has no attribute decode
Sending build context to Docker daemon 203.8 kB
Step 1/4 : FROM python:3.6
---> 775dae9b960e
Step 2/4 : WORKDIR /tmp/app
---> 0a50baeafe90
Removing intermediate container 06d9206a8888
Step 3/4 : COPY requirements.txt requirements.txt
---> b8ee42a4b0f8
Removing intermediate container 3ef5cc0e069a
Step 4/4 : RUN python -m venv /tmp/venv && . /tmp/venv/bin/activate && pip install -r requirements.txt
---> Running in 2d54ddd8c53e
Collecting html==1.16 (from -r requirements.txt (line 4))
Downloading html-1.16.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-envcr513/html/setup.py", line 12, in <module>
long_description = __doc__.decode('utf8'),
AttributeError: 'str' object has no attribute 'decode'
----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment