episkey24 opened a new issue, #22418:
URL: https://github.com/apache/superset/issues/22418

   While trying to install Superset in the editable mode on running `superset 
db upgrade`, I keep running into this issue where the value being passed to the 
uuid module is a 'function' object instead of a string, which isn't the 
expected type giving this error:
   
   Error Log: 
   
   ```
   File 
"/Users/tannishtha./superset/superset-local-editable-7/lib/python3.9/site-packages/sqlalchemy/sql/type_api.py",
 line 1631, in process
       return impl_processor(process_param(value, dialect))
     File 
"/Users/tannishtha./superset/superset-local-editable-7/lib/python3.9/site-packages/sqlalchemy_utils/types/uuid.py",
 line 86, in process_bind_param
       value = self._coerce(value)
     File 
"/Users/tannishtha./superset/superset-local-editable-7/lib/python3.9/site-packages/sqlalchemy_utils/types/uuid.py",
 line 65, in _coerce
       value = uuid.UUID(value)
     File "/Users/tannishtha./opt/anaconda3/lib/python3.9/uuid.py", line 174, 
in __init__
       hex = hex.replace('urn:', '').replace('uuid:', '')
   sqlalchemy.exc.StatementError: (builtins.AttributeError) 'function' object 
has no attribute 'replace'
   [SQL: UPDATE sl_tables SET uuid=?, changed_on=? WHERE sl_tables.id = ?]
   [parameters: [{'uuid': <function uuid4 at 0x7fd2b9d770d0>, 'sl_tables_id': 
1}, {'uuid': <function uuid4 at 0x7fd2b9d770d0>, 'sl_tables_id': 2}, {'uuid': 
<function  ... (1143 characters truncated) ... l_tables_id': 20}, {'uuid': 
<function uuid4 at 0x7fd2b9d770d0>, 'sl_tables_id': 21}, {'uuid': <function 
uuid4 at 0x7fd2b9d770d0>, 'sl_tables_id': 22}]]
   ```
   
   Since, I'm installing in the editable mode, the versions of the external 
dependencies are as specified in the requirements/testing.txt file.
   
   - browser type and version: Safari Version 16.0
   - superset version: Superset 0.0.0-dev
   - python version: Python 3.9.13
   - node.js version: v12.17.0
   - any feature flags active:
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [✅ ] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ ✅] I have reproduced the issue with at least the latest released version 
of superset.
   - [✅ ] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   


-- 
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-unsubscr...@superset.apache.org.apache.org

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


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

Reply via email to