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 2020/03/31 01:23:30 UTC

[GitHub] [incubator-superset] rangerzhou opened a new issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'

rangerzhou opened a new issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'
URL: https://github.com/apache/incubator-superset/issues/9424
 
 
   Ubuntu 18.04
   Python3.7
   
   `$ superset load_examples      
   2020-03-31 09:20:55,605:INFO:root:logging was configured successfully
   2020-03-31 09:20:55,649:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'>
   Loading examples metadata and related data into examples
   Creating default CSS templates
   Loading energy related dataset
   2020-03-31 09:20:56,544:INFO:root:Database.get_sqla_engine(). Masked URL: sqlite:////home/ranger/.superset/superset.db
   Creating table [wb_health_population] reference
   Traceback (most recent call last):
     File "/home/ranger/anaconda3/envs/superset/bin/superset", line 31, in <module>
       cli()
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/click/core.py", line 722, in __call__
       return self.main(*args, **kwargs)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/flask/cli.py", line 586, in main
       return super(FlaskGroup, self).main(*args, **kwargs)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/click/core.py", line 697, in main
       rv = self.invoke(ctx)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
       return _process_result(sub_ctx.command.invoke(sub_ctx))
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/click/core.py", line 895, in invoke
       return ctx.invoke(self.callback, **ctx.params)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/click/core.py", line 535, in invoke
       return callback(*args, **kwargs)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
       return f(get_current_context(), *args, **kwargs)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/flask/cli.py", line 426, in decorator
       return __ctx.invoke(f, *args, **kwargs)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/click/core.py", line 535, in invoke
       return callback(*args, **kwargs)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/superset/cli.py", line 142, in load_examples
       load_examples_run(load_test_data, only_metadata, force)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/superset/cli.py", line 83, in load_examples_run
       examples.load_energy(only_metadata, force)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/superset/examples/energy.py", line 63, in load_energy
       db.session.merge(tbl)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/scoping.py", line 162, in do
       return getattr(self.registry(), name)(*args, **kwargs)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2117, in merge
       self._autoflush()
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1591, in _autoflush
       self.flush()
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2496, in flush
       self._flush(objects)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2637, in _flush
       transaction.rollback(_capture_exception=True)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
       exc_value, with_traceback=exc_tb,
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
       raise exception
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2597, in _flush
       flush_context.execute()
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 422, in execute
       rec.execute(self)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 589, in execute
       uow,
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 264, in save_obj
       ) in states_to_update
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 1432, in _finalize_insert_update_commands
       mapper.dispatch.after_insert(mapper, connection, state)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/event/attr.py", line 322, in __call__
       fn(*args, **kw)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/sqlalchemy/orm/events.py", line 719, in wrap
       fn(*arg, **kw)
     File "/home/ranger/anaconda3/envs/superset/lib/python3.7/site-packages/superset/security/manager.py", line 805, in set_perm
       and target.schema_perm != target.get_schema_perm()
   AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'
   (superset) `

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-superset] rangerzhou closed issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'

Posted by GitBox <gi...@apache.org>.
rangerzhou closed issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'
URL: https://github.com/apache/incubator-superset/issues/9424
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-superset] willbarrett commented on issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'

Posted by GitBox <gi...@apache.org>.
willbarrett commented on issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'
URL: https://github.com/apache/incubator-superset/issues/9424#issuecomment-606785027
 
 
   @rangerzhou I'm glad you found a workaround. If it seems like this was a temporary issue, would it be OK to close this issue?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-superset] rangerzhou commented on issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'

Posted by GitBox <gi...@apache.org>.
rangerzhou commented on issue #9424: AttributeError: 'SqlaTable' object has no attribute 'get_schema_perm'
URL: https://github.com/apache/incubator-superset/issues/9424#issuecomment-608264739
 
 
   > @rangerzhou I'm glad you found a workaround. If it seems like this was a temporary issue, would it be OK to close this issue?
   
   Yea, of course.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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