Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing in certain system #14

Open
seminumber opened this issue Jan 12, 2024 · 1 comment
Open

Error while installing in certain system #14

seminumber opened this issue Jan 12, 2024 · 1 comment
Assignees

Comments

@seminumber
Copy link

Installing design-bench using pip failed in certain system due to setup.py:

F = 'README.md'
with open(F, 'r') as readme:
    LONG_DESCRIPTION = readme.read()

Here's the traceback:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "******\setup.py", line 7, in <module>
          LONG_DESCRIPTION = readme.read()
      UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 1798: illegal multibyte sequence

It seems the special characters in README.md cause the problem.

Here are a few solutions that may resolve the issue:

  • Use the explicit long description instead of opening file
  • Use open() with argument errors='ignore' so that encoding errors are ignored instead of raising error
  • Use explicit encoding='...' that the file can be safely decoded in any platform and locale.
@brandontrabucco brandontrabucco self-assigned this Jan 29, 2024
@brandontrabucco
Copy link
Owner

Hello seminumber,

Were you able to resolve this installation problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants