Function and modules recognized as "NoneType" when not part of the Operator Class namespace #23346
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#23346
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?
%%%This bug report shows a strange bevahiour in Blender bpy introduced after rev.26569 .My guess is that it's related to namespace.
To test it go to bug.blend and run the scripts. The file is self-explanatory (I hope).
It's probably something I'm doing wrong, dunno. I've been away for one month, so I may have missed some important API change.
Tested in Windows 64 (blender 32) with rev. 31365 (after 2.5Beta3). Using Python from lib/windows/
Thanks,
Dalai%%%
Changed status to: 'Open'
%%%I think this is the issue that we discussed on IRC a while ago, this didn't work with python 3.1.0 and does work with python 3.1.2. Probably Nathan has upgrading the python version on his todo list?%%%
%%%Indeed, is on the todolist.%%%
%%%these two problems seemed to begin after auto-registration. In addition to whats listed above, there is also a problem with on-the-fly class generation. If you generate classes they appear to get registered (ie you can find them in the operator search) but you can't call them. The workaround is to unregister each class after generation then register it again eg...
def gen_class(...):
new_class=gen_class(...)
unregister(new_class)
register(new_class)
I'm not sure if this is related to the python version problem or simply to the auto registration code?
hope this helps, josh
%%%
%%%Hey Josh, do you think you can put your problem in a example .blend file. Just so when Nathan updates the Python all the 3 bugs can be tested (in case the 3rd one is not related with that, otherwise the bug report can end up closed with still remaining issues). %%%
%%%argh this bug is even worse. Another test for it:
Go to Console Editor:
$ import urllib
$ urllib.<Ctrl+Tab>
you should see 4 modules, however only parse is available
With Python 3.1.2 (or importing the modules from an addon):
http://www.pasteall.org/pic/show.php?id=5241
%%%
%%%I have updated the Python libraries in lib/windows and lib/win64. Please update and rebuild against those.
All the scripts in bug.blend give a nice "It worked!"
Please verify and report back. Builds with the new python can be retrieved at http://www.letworyinteractive.com/b/ top part of right sidebar.%%%
%%%Very nice, works great!%%%
%%%Hm strange. The reported file really works well, but the urllib test still fails here. (even though the submodules are accessible from an addon (e.g. - https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/text_editor_pasteall.py ))
Do you want me to open a new report for that?
Windows 7 Pro, CMake+MSVC - Python 3.1.2
%%%
%%%closing. moving the urllib problem for another bugreport.%%%
Changed status from 'Open' to: 'Resolved'