Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix setup.py error on some platforms#4246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@cobaltchang
Copy link
Contributor

Description

Please describe your pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. When linking to an issue, please userefs #... in the description of the pull request.

When compile djang REST framework with pypandoc using OpenWRT toolchain,
it raises the error:

warning: pypandoc module not found, could not convert Markdown to RSTTraceback (most recent call last):  File "./setup.py", line 86, in <module>    long_description=read_md('README.md'),  File "./setup.py", line 19, in read_md    return open(f, 'r').read()  File "/GIT_POOL/OpenWRT/OpenWrt-SDK-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/usr/lib/python3.4/encodings/ascii.py", line 26, in decode    return codecs.ascii_decode(input, self.errors)[0]UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4874: ordinal not in range(128)

I specify encoding='utf-8' to resolve the building failure.

modified:   setup.py

it raises the error:```warning: pypandoc module not found, could not convert Markdown to RSTTraceback (most recent call last):  File "./setup.py", line 86, in <module>    long_description=read_md('README.md'),  File "./setup.py", line 19, in read_md    return open(f, 'r').read()  File "/GIT_POOL/OpenWRT/OpenWrt-SDK-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/usr/lib/python3.4/encodings/ascii.py", line 26, in decode    return codecs.ascii_decode(input, self.errors)[0]UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4874: ordinal not in range(128)```I specify encoding='utf-8' to resolve the building failure.modified:   setup.py
@codecov-io
Copy link

codecov-io commentedJul 5, 2016
edited
Loading

Current coverage is91.19%

Merging#4246 intomaster will not change coverage

@@             master      #4246   diff @@==========================================  Files            52         52            Lines          5771       5771            Methods           0          0            Messages          0          0            Branches          0          0          ==========================================  Hits           5263       5263            Misses          508        508            Partials          0          0

Powered byCodecov. Last updated by6ff9840...173659f

@lovelydinosaurlovelydinosaur merged commitb04bd86 intoencode:masterJul 5, 2016
@lovelydinosaur
Copy link
Contributor

Thanks!

@lovelydinosaurlovelydinosaur changed the titleFix the error without specified encoding when compilingFix setup.py error on some platformsJul 5, 2016
@lovelydinosaurlovelydinosaur added this to the3.4.0 Release milestoneJul 5, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

3.4.0 Release

Development

Successfully merging this pull request may close these issues.

3 participants

@cobaltchang@codecov-io@lovelydinosaur

[8]ページ先頭

©2009-2025 Movatter.jp