-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
UnicodeDecodeError when installing dbt #1771
Comments
Thanks for the report @alejandro-flores-1 - we can definitely update that particular character. Are you interested in sending over a PR for the change? I'm just curious: Is there a reason you're using the |
I think you're going to have a lot less problems if you just use a |
I can submit a PR for this. This encoding was never set manually. It seems to have defaulted to this encoding in our setup. |
Using |
I just changed this to a #wontfix - while I'd still be happy to merge a PR which changes this one particular character (i don't feel opinionated on a dash vs. an em-dash at all), there are surely going to be other such characters placed in and around the dbt codebase in the future. I'm not inclined to make a rule that we will never include such characters in the dbt codebase/readme, so going to close this on that principle. @alejandro-flores-1 if you're able to sign the CLA, please do feel free to re-open the PR against |
Hi @drewbanin, I'm also encountering this bug. A better fix might be to require setuptools v40.1.0+ because this version supports unicode chars: https://setuptools.readthedocs.io/en/latest/history.html#v40-1-0 It looks like the https://github.com/fishtown-analytics/dbt/blob/dev/0.15.1/core/setup.py#L6 Would you be open to this change? If so I'm happy to open a PR. Thanks! |
Hey @markberger - thanks for the heads up! Check out the discussion over here: #1978 I think that the |
Yes that is what I was trying to say, sorry it wasn't clear! I don't know much about python packaging though so I'll defer to Jake. FWIW looks like it is also possible to check the version of setuptools directly as in the second solution here: https://stackoverflow.com/a/48049510 Either solution should fix this bug for me |
Yeah, adding the same try/catch to |
closed by #2076 |
Describe the bug
When attempting to pip install dbt a
UnicodeDecodeError
is thrown.Our machine's default encoding is
ANSI_X3.4-1968
This error was traced back to a specific character in the README. It is the dash that follows the line:
Models frequently build on top of one another
. If this character is removed dbt can install correctly.Steps To Reproduce
pip install dbt
Expected behavior
We expect to properly install dbt.
Screenshots and log output
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
GNU/Linux
The output of
python --version
:Python 3.6.8
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: