question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When connecting to the oracle database, an error is reported when making a line chart

See original GitHub issue

ERROR:root:init() missing 1 required positional argument: ‘col’

Traceback (most recent call last):
  File "G:\pyProduct\ss\superset\viz.py", line 407, in get_df_payload
    df = self.get_df(query_obj)
  File "G:\pyProduct\ss\superset\viz.py", line 194, in get_df
    self.results = self.datasource.query(query_obj)
  File "G:\pyProduct\ss\superset\connectors\sqla\models.py", line 834, in query
    query_str_ext = self.get_query_str_extended(query_obj)
  File "G:\pyProduct\ss\superset\connectors\sqla\models.py", line 481, in get_query_str_extended
    sql = self.database.compile_sqla_query(sqlaq.sqla_query)
  File "G:\pyProduct\ss\superset\models\core.py", line 901, in compile_sqla_query
    compile_kwargs={'literal_binds': True},
  File "<string>", line 1, in <lambda>
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\elements.py", line 462, in compile
    return self._compiler(dialect, bind=bind, **kw)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\elements.py", line 468, in _compiler
    return dialect.statement_compiler(dialect, self, **kw)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\dialects\oracle\base.py", line 685, in __init__
    super(OracleCompiler, self).__init__(*args, **kwargs)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\compiler.py", line 562, in __init__
    Compiled.__init__(self, dialect, statement, **kwargs)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\compiler.py", line 319, in __init__
    self.string = self.process(self.statement, **compile_kwargs)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\compiler.py", line 350, in process
    return obj._compiler_dispatch(self, **kwargs)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\visitors.py", line 91, in _compiler_dispatch
    return meth(self, **kw)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\dialects\oracle\base.py", line 875, in visit_select
    limitselect = sql.select([c for c in select.c])
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\util\langhelpers.py", line 855, in __get__
    obj.__dict__[self.__name__] = result = self.fget(obj)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\selectable.py", line 616, in columns
    self._populate_column_collection()
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\selectable.py", line 3680, in _populate_column_collection
    c._make_proxy(self, key=key, name=name, name_is_truncatable=True)
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\elements.py", line 3780, in _make_proxy
    selectable, name=name if name else self.name
  File "G:\pyProduct\ss\env\lib\site-packages\sqlalchemy\sql\elements.py", line 4046, in _make_proxy
    is_literal=is_literal,
TypeError: __init__() missing 1 required positional argument: 'col'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
villebrocommented, Jun 24, 2019

@devilzhangzzz please check PR #7767

1reaction
issue-label-bot[bot]commented, Jun 24, 2019

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When connecting to the oracle database, an error is reported ...
ERROR:root:init() missing 1 required positional argument: 'col' ... the oracle database, an error is reported when making a line chart #7765.
Read more >
Database Connection Issues - Oracle Help Center
The following are the common Oracle Database connection error codes, their causes, and suggested remedies. TNS-12203. TNS: unable to connect to destination.
Read more >
Warnings and Errors - Oracle Help Center
Error number Error or warning message Details 403 Attempt to read from checkpoint truncated 412 Bad file‑open mode Internal error. Contact TimesTen C... 413 Bad file‑exists...
Read more >
Using Graphs and Reports - Oracle Help Center
This graph plots the number of failed transactions-per-second for each Virtual User profile. If you have multiple profiles in the running Scenario the...
Read more >
Using Graphs and Reports - Oracle Help Center
Click the Reports tab · Create a session report. · Select the Graphs sub-tab. · Click Add Graph. · Double-click data counters you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found