Forum: Poser - OFFICIAL


Subject: Python scripts not running in P6??

spyder97526 opened this issue on Sep 11, 2006 · 3 posts


spyder97526 posted Mon, 11 September 2006 at 4:15 PM

Thanks for replying Phil,
I try to install the MorphosINSTALL.py, and I get this message in return:
'Unable to install Morphos.  (No free slots in MainButtons.py!'

I read how to free up the buttons in the python menu, and even when I release all of them to the ... stage, then load the install.py into the menu, and attempt to install that way - I get the same message.
So I try to load up Morphos to run it in in case it actually installed it and I get this message:

'Traceback (most recent call last):
  File "", line 965, in ?
  File "", line 606, in init
  File "", line 477, in GetFigureID
AttributeError: 'NoneType' object has no attribute 'ActorByInternalName'

Not knowing anything about python other than it does cool stuff - I have NO friggin clue what that ^ is! lol

I use Ctrl+click to edit the python, and I see the install has these lines:
def InstallMorphos():
    try:
        FilePath = os.path.join("Runtime", "Python", "poserScripts", "mainButtons.py")
        File = open(FilePath, "r")
        FileLines = File.readlines()
        File.close()
    except:
        print "Unable to open MainButtons.py - please ensure this script is running from the Poser4 directory"
        return

Dunno if that helps or not....

Then I try to install the Environment Creator 2, and on the install, its telling me I need some buttons free....Then after I try to exit the install after it fails, my morphos opens the figure windows I tried to open earlier when I thought it might have installed...
Is my Poser possessed?? LOL

Hrm..just took a look at something - should my python scripts be installed in the 'poserScripts' folder? I click one of the empty ... buttons to install a .py, and that folder is the one that opens, not the Python folder.