TypeError when autocompleting bpy.app.something #49342
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#49342
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Kubuntu Linux 16.04
Blender Version
Broken: master (blender/blender@f38f787448) and 2.78-rc1
Worked: 2.77a
Short description of error
When autocompleting
bpy.app.something
I get this error:File "/home/sybren/workspace/blender-git/build_linux/bin/release/scripts/modules/console_python.py", line 264, in autocomplete
private=bpy.app.debug_python)
File "/home/sybren/workspace/blender-git/build_linux/bin/release/scripts/modules/console/intellisense.py", line 129, in expand
matches, word = complete(line, cursor, namespace, private)
File "/home/sybren/workspace/blender-git/build_linux/bin/release/scripts/modules/console/intellisense.py", line 90, in complete
matches = complete_namespace.complete(word, namespace, private)
File "/home/sybren/workspace/blender-git/build_linux/bin/release/scripts/modules/console/complete_namespace.py", line 154, in complete
matches = complete_names(word, namespace)
File "/home/sybren/workspace/blender-git/build_linux/bin/release/scripts/modules/console/complete_namespace.py", line 61, in complete_names
completer.complete(word, 0)
File "/usr/lib/python3.5/rlcompleter.py", line 89, in complete
self.matches = self.attr_matches(text)
File "/usr/lib/python3.5/rlcompleter.py", line 147, in attr_matches
words = set(dir(thisobject))
Exact steps for others to reproduce the error
bpy.app.b
and then the "Autocomplete" button/hotkey TWICE (first time it's ok)Changed status to: 'Open'
Added subscriber: @dr.sybren
Added subscriber: @Stranger6667
Some info about this bug.
It is because
version
attribute value exists in object attributes names (along withversion
attribute name)and
dir
sorts attributes names alphabetically.This happens only after autocomplete usage (I also tried with
bpy.app.b
).Same code for 2.77
Bisection result:
Reproducible test:
access to this attribute causes the error. Other attributes are ok
Added subscribers: @Sergey, @mont29
@Stranger6667 Thanks for investigation… blender/blender@f5e020a7a6
However, I cannot confirm this behavior here with own build, neither from master nor 2.78 branch, neither in debug build or release build :|
This may be a python version thing… @Sergey if I am correct, official builds use python 3.5.1 right? While here am using system 3.5.2 one…
Added subscriber: @lichtwerk
note: first occurance/autocomplete after a fresh restart of blender goes through without the error, only then (second/third) the error happens
Ah crap, yeah, you are right, can reproduce it too now :/
Edit: I can't read
OK, so actual regression is from blender/blender@036c006cef, which fixes crash introduced by blender/blender@f5e020a7a6…
This issue was referenced by blender/blender@ce952fd36e
Changed status from 'Open' to: 'Resolved'