I have an add-on for Blender 2.49b, python 2.6.2 and I need it to "show the button" to a user like this:
To run script open blender2.49b and go inside addon folder and open
![[Image: j79lI.png]](https://i.stack.imgur.com/j79lI.png)
but that button does not show up in ubuntu. I tried to debug addon by adding "2" on line 43 and it does not show up in console so I doubt that addon contain some windows only releted code like
Also one thing should be changed before you run addon on line 3277 change
![[Image: 8ZQfx.png]](https://i.stack.imgur.com/8ZQfx.png)
I cant edit my post so I will put quick commands for downloading stuff here
1: Blender
3:Patch
Edit2: Download Blendr add-on by clicking on link at beginning of my post
Edit3:After I press Import script runs but it does not show any error just exits silently
result=Blender.Draw.PupMenu("Sketchfab Viewer ?%t|Yes|No")But button does not show up in ubuntu, but it does in windows?
To run script open blender2.49b and go inside addon folder and open
Blender249.blend
press Alt+P in text windows and go in to addon folder than go in to 768dd88bd0bb49a8ad0a75ab143f685a
and select astrea-768dd88bd0bb49a8ad0a75ab143f685a.html
and hit Import
. Then you should see![[Image: j79lI.png]](https://i.stack.imgur.com/j79lI.png)
but that button does not show up in ubuntu. I tried to debug addon by adding "2" on line 43 and it does not show up in console so I doubt that addon contain some windows only releted code like
cls
Also one thing should be changed before you run addon on line 3277 change
os.system("cls")to
#os.system("cls")And on picture below is shown some debuging
![[Image: 8ZQfx.png]](https://i.stack.imgur.com/8ZQfx.png)
I cant edit my post so I will put quick commands for downloading stuff here
1: Blender
wget https://download.blender.org/release/Blender2.49b/blender-2.49b-linux-glibc236-py26-x86_64.tar.bz22: Python
wget https://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgzExtract python and
cd
in to it and download this patch3:Patch
wget https://bugs.python.org/file14045/python-2.6.2-svnversion.patchand apply it
patch -p 0 < python-2.6.2-svnversion.patch4. Compile python
./configure && make -j35. Setup Python
export PYTHONPATH=/home/username/Downloads/Python-2.6.2 export PYTHONPATH=/home/username/Downloads/Python-2.6.2/Lib6. Run Blender
./Downloads/blender-2.49b-linux-glibc236-py26-x86_64/blender ~/Downloads/Blender249\[osgjs\]\[2017-02-23\]/Blender249.blend7. Run script Alt + P and navigate in to addon folder than go in to
768dd88bd0bb49a8ad0a75ab143f685a
and select astrea-768dd88bd0bb49a8ad0a75ab143f685a.html
and hit Import
, after that you should see buton Sketchfab Viewer
but on my ubuntu machine it does not show upEdit2: Download Blendr add-on by clicking on link at beginning of my post
Edit3:After I press Import script runs but it does not show any error just exits silently