Python Forum
Blender 2.49b not showing button when I run script on ubuntu like it does in windows?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blender 2.49b not showing button when I run script on ubuntu like it does in windows?
#1
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:

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]

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]

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.bz2
2: Python
wget https://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz
Extract python and cd in to it and download this patch
3:Patch
wget https://bugs.python.org/file14045/python-2.6.2-svnversion.patch
and apply it
patch -p 0 < python-2.6.2-svnversion.patch
4. Compile python
./configure && make -j3
5. Setup Python
export PYTHONPATH=/home/username/Downloads/Python-2.6.2
export PYTHONPATH=/home/username/Downloads/Python-2.6.2/Lib
6. Run Blender
./Downloads/blender-2.49b-linux-glibc236-py26-x86_64/blender ~/Downloads/Blender249\[osgjs\]\[2017-02-23\]/Blender249.blend
7. 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 up

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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 383 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Button to stop while loop from another script Absolutewind 5 918 Sep-25-2023, 11:20 PM
Last Post: deanhystad
  Tkinter button images not showing up lunacy90 7 1,614 Aug-31-2023, 06:39 PM
Last Post: deanhystad
  Blender scripting the_jl_zone 0 470 Jul-10-2023, 08:48 PM
Last Post: the_jl_zone
  Python script running under windows over nssm.exe JaroslavZ 0 725 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Multiple.ui windows showing at the same time when I only want to show at a time eyavuz21 4 1,038 Dec-20-2022, 05:14 AM
Last Post: deanhystad
  How to compile a Python script for a Windows / Linux executable? netanelst 2 1,341 May-24-2022, 07:02 AM
Last Post: netanelst
  Setup Portable Python on Windows for script starts with double clicks? pstein 0 1,827 Feb-18-2022, 01:29 PM
Last Post: pstein
  Python script in Ubuntu core Nithin_Kumar 1 3,382 May-11-2021, 01:14 AM
Last Post: Skaperen
  Python script on windows 10 shuts down TamP 2 2,541 Mar-08-2021, 07:19 AM
Last Post: TammyP

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020