Sun, Dec 1, 5:46 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 29 7:57 am)



Subject: Problems running python scripts


Hydra ( ) posted Mon, 08 March 2010 at 6:56 PM · edited Fri, 29 November 2024 at 12:09 PM

I have the Jasmina color and jasmina changer scripts but I cannot seem to get them to work.  I load the figure, go to the material room and hit the user defined button.  The color changer pops up, when I select it, a small window opens with a bunch of text and voila- nothing happens.  What am I doing wrong?  This happens every time I try to run one of these scripts either from the material room or from the file menu in Poser.  I am using Poser 7 btw.

Thanks.

Hydra


FrankT ( ) posted Mon, 08 March 2010 at 7:10 PM

knowing what the "bunch of text" is would be a help in figuring out what the problem is

My Freebies
Buy stuff on RedBubble


ockham ( ) posted Mon, 08 March 2010 at 8:43 PM

The 'bunch of text' is probably an error message.  Copy and paste it here, and
somebody will be able to tell what's going on.

My python page
My ShareCG freebies


Hydra ( ) posted Mon, 08 March 2010 at 9:00 PM

ya sorry about that.   I probably should have thought of that to begin with! 

Here are the messages I get:

Traceback (most recent call last):
  File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsWacrosUserDefinedJasmina Changer.py", line 478, in ?
    MatDlg = MaterialsDlg(tk)
  File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsWacrosUserDefinedJasmina Changer.py", line 67, in init
    Label(self.NormalFrame, text='Color Selection(There may not be screen changes after applying.Please Render for the result.)', font=f).grid(row=0, col=0,sticky="w")
  File "C:Program Filese frontierPoser 7RuntimePythonliblib-tkTkinter.py", line 1790, in grid_configure
    self.tk.call(
_tkinter.TclError: ambiguous option "-col": must be -column, -columnspan, -in, -ipadx, -ipady, -padx, -pady, -row, -rowspan, or -sticky

Here is the other message I get:

Traceback (most recent call last):
  File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsWacrosUserDefinedJasmina Color.py", line 461, in ?
    MatDlg = MaterialsDlg(tk)
  File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsWacrosUserDefinedJasmina Color.py", line 76, in init
    Label(self.NormalFrame, text='Color Selection(There may not be screen changes after applying.Please Render for the result.)', font=f).grid(row=0, col=0,sticky="w")
  File "C:Program Filese frontierPoser 7RuntimePythonliblib-tkTkinter.py", line 1790, in grid_configure
    self.tk.call(
_tkinter.TclError: ambiguous option "-col": must be -column, -columnspan, -in, -ipadx, -ipady, -padx, -pady, -row, -rowspan, or -sticky

I am using Windows XP.  I have Poser 8.0 installed on another drive but I find Poser 8.0 to be entirely un-useable.  I will leave it at that. 

Thanks for your help!

Hydra


ockham ( ) posted Mon, 08 March 2010 at 9:07 PM · edited Mon, 08 March 2010 at 9:09 PM

This is a common problem.  In earlier versions of Python, "col" was permitted
as an abbreviation for "column".  Later versions were stricter.

Edit the file, changing each col to column
in these situations.  Look for lines that have both row and col, like

        self.ButtonFrame.grid(row=2,col=0,pady=1)

You'll probably have to make the change manually ... an automatic
find and replace will also change words like color.

My python page
My ShareCG freebies


bagginsbill ( ) posted Mon, 08 March 2010 at 9:08 PM

The abbreviation of col for column was deprecated since these scripts were written.

You have two choices:

1) Edit the script to fix the problem, which is easy, but requires care. (Requires that you have the script in source form, i.e. a .py file, not .pyc or .pyd.

2) Contact the author for an updated version.

If you're of a mind to fix it yourself, you have to find the offending line that says col=0 in it and change that to column=0.

This forum has removed the slashes in file paths, so it is hard for me to tell, but it looks like either JasminaChanger.py or Jasmina Changer.py, line 67, for the first one. The second one is JasminaColor.py or Jasmina Color.py, line 76.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


bagginsbill ( ) posted Mon, 08 March 2010 at 9:08 PM

Dang it - again ockham is too fast for me!


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


Hydra ( ) posted Mon, 08 March 2010 at 9:31 PM

Thanks guys!

Hydra


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.