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.

AttributeErrors since 0.13 update

See original GitHub issue

Hey there, I recently updated to the new version and got the following error everytime I type anything:

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 685, in on_query_completions
    res = vel.on_query_completions(prefix, locations)
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/sublime_jedi/completion.py", line 158, in on_query_completions
    cplns = [tuple(x) for x in self._sort_completions(cplns)]
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/sublime_jedi/completion.py", line 174, in _sort_completions
    key=lambda x: (
TypeError: 'NoneType' object is not iterable
Jedi - Python autocompletion.sublime_jedi.facade: `JediFacade.get_autocomplete` failed
Traceback (most recent call last):
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/sublime_jedi/facade.py", line 110, in get
    return getattr(self, 'get_' + _action)(*args, **kwargs)
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/sublime_jedi/facade.py", line 139, in get_autocomplete
    filter(lambda c: not c[0].endswith('\tparam'), completion))
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/sublime_jedi/facade.py", line 168, in _completion
    completions = self.script.completions()
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/api/__init__.py", line 174, in completions
    completions = completion.completions()
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/api/completion.py", line 98, in completions
    completion_names = self._get_context_completions()
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/api/completion.py", line 173, in _get_context_completions
    completion_names = list(self._get_keyword_completion_names(allowed_transitions))
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/api/completion.py", line 212, in _get_keyword_completion_names
    yield keywords.KeywordName(self._evaluator, k)
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/api/keywords.py", line 28, in __init__
    self.parent_context = evaluator.builtins_module
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/evaluate/cache.py", line 40, in wrapper
    rv = function(obj, *args, **kwargs)
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/evaluate/__init__.py", line 115, in builtins_module
    return compiled.get_special_object(self, u'BUILTINS')
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/evaluate/compiled/__init__.py", line 27, in get_special_object
    evaluator.compiled_subprocess.get_special_object(identifier)
  File "/home/richman/.config/sublime-text-3/Packages/Jedi - Python autocompletion/dependencies/jedi/evaluate/compiled/context.py", line 460, in create_from_access_path
    for name, access in access_path.accesses:
AttributeError: 'tuple' object has no attribute 'accesses'

Any hits how to avoid that?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jmouradevcommented, Jul 13, 2018

Hi,

For example, on Mac OS 10.13, this simple fragment code reproduces that issue reported. ST build 3176

screen shot 2018-07-13 at 15 12 17

0reactions
srusskihcommented, Jul 18, 2018

@RicherMans thanks for your feedback. going merge change to master and release it today (I hope)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on running on my Jupyter notebook · Issue #76 - GitHub
When I tried to run the example notebook, it returned an error. This error was specifically on the x_stats = dec(z).float() line.
Read more >
'pandas._libs.properties.CachedProperty' object has no ...
Problem when importing statsmodels.regression.rolling (AttributeError: 'pandas._libs.properties.CachedProperty' object has no attribute 'func').
Read more >
userwarning: accessing the model urls via the internal dictionary of ...
"Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and will " /opt/python/venv/lib/python3.7/site-packages/torchvision ...
Read more >
Version History — pika 0.13.1 documentation
Connection failures that occur after the socket is opened and before the AMQP connection is ready to go are now reported by calling...
Read more >
AttributeError : object has no attribute - Google Groups
Hi, I am new to cython and my c/c++ are skills are limited. I am trying to get in cdef/cpdef class programming for...
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