bmackattack commented on issue #2600: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 4 URL: https://github.com/apache/incubator-superset/issues/2600#issuecomment-326313096 @xrmx any solutions on this? If not, can you tell me how to run this in python 2.7. I believe I'm running into the same error.... Stack trace as follows: `Loaded your LOCAL configuration at [/usr/local/bin/superset_config.py] 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/superset/security.py", line 92, in get_or_create_main_db 2017-08-31T14:27:13Z Traceback (most recent call last): 2017-08-31T14:27:13Z manager.run() 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/flask_script/__init__.py", line 412, in run 2017-08-31T14:27:13Z result = self.handle(sys.argv[0], sys.argv[1:]) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/flask_script/__init__.py", line 383, in handle 2017-08-31T14:27:13Z res = handle(*args, **config) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/flask_script/commands.py", line 216, in __call__ 2017-08-31T14:27:13Z return self.run(*args, **kwargs) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/superset/cli.py", line 28, in init 2017-08-31T14:27:13Z security.sync_role_definitions() 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/superset/security.py", line 201, in sync_role_definitions 2017-08-31T14:27:13Z get_or_create_main_db() 2017-08-31T14:27:13Z File "/usr/local/bin/superset", line 15, in <module> 2017-08-31T14:27:13Z .filter_by(database_name='main') 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2755, in first 2017-08-31T14:27:13Z ret = list(self[0:1]) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2547, in __getitem__ 2017-08-31T14:27:13Z return list(res) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 90, in instances 2017-08-31T14:27:13Z util.raise_from_cause(err) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause 2017-08-31T14:27:13Z reraise(type(exception), exception, tb=exc_tb, cause=cause) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 187, in reraise 2017-08-31T14:27:13Z raise value 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 75, in instances 2017-08-31T14:27:13Z rows = [proc(row) for row in fetch] 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 75, in <listcomp> 2017-08-31T14:27:13Z loaded_instance, populate_existing, populators) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 437, in _instance 2017-08-31T14:27:13Z UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 0: invalid start byte 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 498, in _populate_full 2017-08-31T14:27:13Z dict_[key] = getter(row) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 1122, in process 2017-08-31T14:27:13Z return process_value(impl_processor(value), dialect) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy_utils/types/encrypted.py", line 261, in process_result_value 2017-08-31T14:27:13Z decrypted_value = self.engine.decrypt(value) 2017-08-31T14:27:13Z File "/usr/local/lib/python3.6/site-packages/sqlalchemy_utils/types/encrypted.py", line 89, in decrypt 2017-08-31T14:27:13Z decrypted = decrypted.decode('utf-8')` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
