You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/22 14:29:54 UTC

[GitHub] [superset] kivhub commented on issue #15631: Migrate to the next version of Python requests when released

kivhub commented on issue #15631:
URL: https://github.com/apache/superset/issues/15631#issuecomment-924986697


   > If chardet is already installed on your machine it will be used instead of charset_normalizer to keep backwards compatibility.
   
   How to force using chardet in requests, please? 
   
   With request using charset-normalizer I am getting this error when calling Python via User Defined Transform in SAP BODS:
   ```
   File "EXPRESSION", line 6, in <module>
   File "c:\program files\python39\lib\site-packages\requests\__init__.py", line 48, in <module>
   from charset_normalizer import __version__ as charset_normalizer_version
   File "c:\program files\python39\lib\site-packages\charset_normalizer\__init__.py", line 11
   SyntaxError: Non-ASCII character '\xd1' in file c:\program files\python39\lib\site-packages\charset_normalizer\__init__.py on
   line 12, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details.
   ```
   I am not able to define a source code encoding by placing magic comment into the source files (either as first or second line in the file) because the app probably modifies the script by itself. 
   After unistalling charset-normalizer (chardet installed) I am getting this error:
   ```
   File "EXPRESSION", line 6, in <module>
   File "c:\program files\python39\lib\site-packages\requests\__init__.py", line 134, in <module>
   from . import packages
   File "c:\program files\python39\lib\site-packages\requests\packages.py", line 15, in <module>
   locals()[package] = __import__(package)
   File "c:\program files\python39\lib\site-packages\idna\__init__.py", line 2, in <module>
   from .core import (
   File "c:\program files\python39\lib\site-packages\idna\core.py", line 5, in <module>
   from typing import Union, Optional
   ImportError: No module named typing.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org