Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#23871] OSX panel button bug (Python Namespace issue)

Date:
2010-09-17 06:09
Priority:
3
State:
Closed
Submitted by:
Dan Eicher (dna)
Assigned to:
Campbell Barton (campbellbarton)
Category:
None
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
OSX panel button bug (Python Namespace issue)
Detailed description
The attached script works just fine on my linux box.

To reproduce;
Add subsurf to the default cube, run the script and check the properties panel.

Two separate OSXers confirmed that the button is not being displayed.

Followup

Message
  • Date: 2010-09-17 10:36
  • Sender: Dan Eicher
  • Got an console error from the BA.org forums

    Traceback (most recent call last):
    File "/Users/waylow/iAnimate/Semester 1/Week1/untitled.blend/Text", line 24, in draw
    AttributeError: 'NoneType' object has no attribute 'data'

    bpy is apparently coming up as None which probably isn't so good.
  • Date: 2010-09-17 23:08
  • Sender: Brecht Van Lommel
  • On windows/linux there was a similar problem with python 3.1.0 but not 3.1.2, we should upgrade the python version for mac too, it's at 3.1.0 now.
  • Date: 2010-09-18 22:17
  • Sender: Brecht Van Lommel
  • Damien, assigning this bug to you, it should be a matter of upgrading our python to 3.1.2. I'd do it myself but I'm not sure about the build options you used, the .a file is quite a bit bigger here when I build it, so perhaps you disabled some things to make it smaller?
  • Date: 2010-11-17 19:25
  • Sender: Ton Roosendaal
  • Jens is working on getting py 3.2 to work instead.
  • Date: 2010-11-22 20:43
  • Sender: jens verwiebe
  • Just for clarification:

    OSX py was always 3.1.1+ build from maintrunk, cause the original
    release was buggy ( not compilable ).
    I tested all py 3.12 and even 3.1.3( maintrunk atm ) and found the bug
    unfixed.
    With python 3.2a3 the panel_bug is gone, but returned with later py rev´s.
    The Python ppl where not so helpful in this case and told me that Blender would
    misuse the function and 3.2 would perhaps just mask the bug, but thats
    not logical.
    Anyway i already spread builds with py 3.2 and got no further bugreports.

    If you missed it here´s one:
    http://www.jensverwiebe.de/LuxRender/Lux_dev_builds/Blender_OSX_intel64_complete_py32_r33111.zip

    One more thing:
    To compile Blender with py > 3.1.1 the needed changes are:
    - pyCObject -> PyCapsule ( already done and in trunk )
    - undef some c++ defs in KX_Python.h, pls add:

    #ifdef __APPLE__
    #undef isalnum
    #undef isalpha
    #undef islower
    #undef isspace
    #undef isupper
    #undef tolower
    #undef toupper
    #endif

    Jens
  • Date: 2010-11-24 12:01
  • Sender: Campbell Barton
  • committed workaround into svn r33277. best use py3.1.2 for osx but this at least ensures it should work ok all the time.
 

Attached Files:

Name Date Download
panel_bug.py 2010-09-17 06:09 Download

Changes:

Field Old Value Date By
ResolutionApproved2010-11-24 12:01campbellbarton
close_date2010-11-24 12:012010-11-24 12:01campbellbarton
assigned_todamien782010-11-24 12:01campbellbarton
status_idOpen2010-11-24 12:01campbellbarton
summaryOSX panel button bug2010-11-24 05:47campbellbarton
ResolutionNone2010-11-17 19:25ton
assigned_tonone2010-09-18 22:17blendix
File Added12714: panel_bug.py2010-09-17 06:10dna