RE: fmPython

2006-04-04 Thread James Ramsay
 I got it to run at last, thanks to lots of trial and error and help from
co-worker Keith Arnett. It appears that the script file got corrupted with
tabs on the trip from the Web site to my PC. The following message kept
appearing in my FrameMaker Console:

fmPython - Python scripting for FrameMaker
  File string, line 15
 # get first text inset - this may generate RuntimeException
^
IndentationError: expected an indented block

This line was indented with a tab instead of hard spaces. When I removed the
tab, the error moved on to the next line. Keith sent me his version of the
script file, which he had downloaded using Firefox, and it had no tabs so it
worked fine. It appears Internet Explorer decided tabs would be much nicer
than spaces, so went ahead and replaced them without telling me!

For those attempting to do this trick at home, please note the following
gotchas:

1. You must install Python 2.2.3 as your interpreter, not the latest version
on their Web site.
2. If you download the script with IE, be sure to replace any substituted
tabs with spaces.
3. When you open the script in Frame to load it, open it as text with ASCII
encoding.
4. After you run the script, don't save your chapter files or you'll lose
your text insets.

Hope this helps,
Jim Ramsay

-Original Message-
From: Scott Prentice [mailto:[EMAIL PROTECTED]
Sent: Monday, April 03, 2006 12:51 PM
To: Joe Malin
Cc: James Ramsay; framers@lists.frameusers.com
Subject: Re: fmPython

Hi Joe...

As you point out .. the Python version is critical. Once I installed the
proper version, it now initializes in FM 7.x. Most plugins are upward
compatible unless they make use of an obitted API feature, so I'll bet this
should work fine. However, I'm still trying to figure out how to load the
python script .. it's probably obvious, but I've moved on to other work for
now.

Jim, did you get a script to run yet?

...scott

Scott Prentice
Leximation, Inc.
www.leximation.com
+1.415.485.1892



Joe Malin wrote:

Notes:
* As far as I can tell from Googling, the most recent supported of FM
is *6*.
* With most open-source/freeware, be sure you have the exact
prerequisites. The open-source community is not particularly
  concerned with legacy customers. The community generally assumes
that it can change functionality, signatures,
  and so forth. Customers then either upgrade on their own or stay with
an older version.
* On the whole, this is a Good Idea. It prevents bloat, allows for
evolving design, and produces more robust, more
  frequent fixes. Open-source SW usually allows for multiple versions
of the same SW, but check first.
* Remember that open-source is a mostly UN*X creature. What may be very
easy to do in that environment may be much
  harder to do in Windows, and vice versa.

If anyone has heard of a version of fmPython compatible with 7.1/7.2,
please write me ASAP. I know Python pretty well, and I could provide
some value to FM 7.x users.

Joe Malin
Technical Writer
(408)625-1623
[EMAIL PROTECTED]
www.tuvox.com
The views expressed in this document are those of the sender, and do not
necessarily reflect those of TuVox, Inc.  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of James Ramsay
Sent: Sunday, April 02, 2006 1:07 PM
To: framers@lists.frameusers.com
Subject: fmPython

Has anyone installed fmPython
(http://www.isnet.sk/petrucha/?lang=enpage=fmPython) successfully? I
want to use the script that converts all text insets to text prior to
distilling a book to PDF, but I can't get fmPython to initialize. I get
the following
message:

Cannot initialize API client c:\program
files\adobe\framemaker6.0\fminit\plugins\fmPython22.dll.
Check for errors in the APIClients section of C:\Program
Files\Adobe\Framemaker6.0\C:\Program
Files\Adobe\FrameMaker6.0\maker.ini,
verify that the client program exists, and make sure you have enough
swap space to run the client.

There are no instructions for adding a line to the APIClient section of
the maker.ini file in the bare bones fmPython documentation. I tried
making one up, but it had no effect. Any ideas?

I'm running Windows XP, Frame 6.0 with FrameScript 2.1 and IXGen 5.5
already installed, Python 2.4.3, and the fmPython22.dll in the default
fminit\Plugins folder.

Thanks in advance for your help,
Jim

Jim Ramsay
Senior Technical Writer
webMethods Denver
___

 



___


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


fmPython

2006-04-04 Thread James Ramsay
 I got it to run at last, thanks to lots of trial and error and help from
co-worker Keith Arnett. It appears that the script file got corrupted with
tabs on the trip from the Web site to my PC. The following message kept
appearing in my FrameMaker Console:

fmPython - Python scripting for FrameMaker
  File "", line 15
 # get first text inset - this may generate RuntimeException
^
IndentationError: expected an indented block

This line was indented with a tab instead of hard spaces. When I removed the
tab, the error moved on to the next line. Keith sent me his version of the
script file, which he had downloaded using Firefox, and it had no tabs so it
worked fine. It appears Internet Explorer decided tabs would be much nicer
than spaces, so went ahead and replaced them without telling me!

For those attempting to do this trick at home, please note the following
gotchas:

1. You must install Python 2.2.3 as your interpreter, not the latest version
on their Web site.
2. If you download the script with IE, be sure to replace any substituted
tabs with spaces.
3. When you open the script in Frame to load it, open it as text with ASCII
encoding.
4. After you run the script, don't save your chapter files or you'll lose
your text insets.

Hope this helps,
Jim Ramsay

-Original Message-
From: Scott Prentice [mailto:s...@leximation.com]
Sent: Monday, April 03, 2006 12:51 PM
To: Joe Malin
Cc: James Ramsay; framers at lists.frameusers.com
Subject: Re: fmPython

Hi Joe...

As you point out .. the Python version is critical. Once I installed the
proper version, it now initializes in FM 7.x. Most plugins are upward
compatible unless they make use of an obitted API feature, so I'll bet this
should work fine. However, I'm still trying to figure out how to load the
python script .. it's probably obvious, but I've moved on to other work for
now.

Jim, did you get a script to run yet?

...scott

Scott Prentice
Leximation, Inc.
www.leximation.com
+1.415.485.1892



Joe Malin wrote:

>Notes:
>* As far as I can tell from Googling, the most recent supported of FM
>is *6*.
>* With most open-source/freeware, be sure you have the exact
>prerequisites. The open-source community is not particularly
>  concerned with "legacy" customers. The community generally assumes
>that it can change functionality, signatures,
>  and so forth. Customers then either upgrade on their own or stay with
>an older version.
>* On the whole, this is a Good Idea. It prevents bloat, allows for
>evolving design, and produces more robust, more
>  frequent fixes. Open-source SW usually allows for multiple versions
>of the same SW, but check first.
>* Remember that open-source is a mostly UN*X creature. What may be very
>easy to do in that environment may be much
>  harder to do in Windows, and vice versa.
>
>If anyone has heard of a version of fmPython compatible with 7.1/7.2,
>please write me ASAP. I know Python pretty well, and I could provide
>some value to FM 7.x users.
>
>Joe Malin
>Technical Writer
>(408)625-1623
>jmalin at tuvox.com
>www.tuvox.com
>The views expressed in this document are those of the sender, and do not
>necessarily reflect those of TuVox, Inc.  
>
>-Original Message-
>From: framers-bounces+jmalin=tuvox.com at lists.frameusers.com
>[mailto:framers-bounces+jmalin=tuvox.com at lists.frameusers.com] On
>Behalf Of James Ramsay
>Sent: Sunday, April 02, 2006 1:07 PM
>To: framers at lists.frameusers.com
>Subject: fmPython
>
>Has anyone installed fmPython
>(http://www.isnet.sk/petrucha/?lang=en=fmPython) successfully? I
>want to use the script that converts all text insets to text prior to
>distilling a book to PDF, but I can't get fmPython to initialize. I get
>the following
>message:
>
>Cannot initialize API client c:\program
>files\adobe\framemaker6.0\fminit\plugins\fmPython22.dll.
>Check for errors in the APIClients section of C:\Program
>Files\Adobe\Framemaker6.0\C:\Program
>Files\Adobe\FrameMaker6.0\maker.ini,
>verify that the client program exists, and make sure you have enough
>swap space to run the client.
>
>There are no instructions for adding a line to the APIClient section of
>the maker.ini file in the bare bones fmPython documentation. I tried
>making one up, but it had no effect. Any ideas?
>
>I'm running Windows XP, Frame 6.0 with FrameScript 2.1 and IXGen 5.5
>already installed, Python 2.4.3, and the fmPython22.dll in the default
>fminit\Plugins folder.
>
>Thanks in advance for your help,
>Jim
>
>Jim Ramsay
>Senior Technical Writer
>webMethods Denver
>___
>
> 
>





fmPython

2006-04-03 Thread James Ramsay
Thanks, Keith! With Python 2.2.3 I can now initialize the DLL. Next step
will be to get it to load the script.

  _  

From: Keith Arnett 
Sent: Monday, April 03, 2006 8:12 AM
To: framers at lists.frameusers.com
Cc: James Ramsay
Subject: RE: fmPython



Hi Jim,



I think the problem is that you are running Python 2.4.1, fmPython requires
Python V. 2.2.x, downloadable at:



http://www.python.org/download/releases/2.2.3/
<http://www.python.org/download/releases/2.2.3/> 



If you uninstall 2.4.3 and install the 2.2.3 version, you should be OK. I
just did the install on my computer and it is working as expected.



HTH,



Keith





Keith Arnett

Senior Technical Writer

webMethods, Inc.\ Fairfax VA

703-460-5927

Mobile: 540-671-1954







Date: Sun, 2 Apr 2006 16:06:41 -0400 

From: James Ramsay <jram...@webmethods.com>

Subject: fmPython

To: framers at lists.frameusers.com

Message-ID:

  

Content-Type: text/plain



Has anyone installed fmPython

(http://www.isnet.sk/petrucha/?lang=en
<http://www.isnet.sk/petrucha/?lang=en=fmPython> =fmPython)
successfully? I want

to use the script that converts all text insets to text prior to distilling

a book to PDF, but I can't get fmPython to initialize. I get the following

message:



Cannot initialize API client c:\program

files\adobe\framemaker6.0\fminit\plugins\fmPython22.dll.

Check for errors in the APIClients section of C:\Program

Files\Adobe\Framemaker6.0\C:\Program Files\Adobe\FrameMaker6.0\maker.ini,

verify that the client program exists, and make sure you have enough swap

space to run the client.



There are no instructions for adding a line to the APIClient section of the

maker.ini file in the bare bones fmPython documentation. I tried making one

up, but it had no effect. Any ideas?



I'm running Windows XP, Frame 6.0 with FrameScript 2.1 and IXGen 5.5 already

installed, Python 2.4.3, and the fmPython22.dll in the default

fminit\Plugins folder.



Thanks in advance for your help,

Jim 



Jim Ramsay

Senior Technical Writer

webMethods Denver








fmPython

2006-04-02 Thread James Ramsay
Has anyone installed fmPython
(http://www.isnet.sk/petrucha/?lang=enpage=fmPython) successfully? I want
to use the script that converts all text insets to text prior to distilling
a book to PDF, but I can't get fmPython to initialize. I get the following
message:

Cannot initialize API client c:\program
files\adobe\framemaker6.0\fminit\plugins\fmPython22.dll.
Check for errors in the APIClients section of C:\Program
Files\Adobe\Framemaker6.0\C:\Program Files\Adobe\FrameMaker6.0\maker.ini,
verify that the client program exists, and make sure you have enough swap
space to run the client.

There are no instructions for adding a line to the APIClient section of the
maker.ini file in the bare bones fmPython documentation. I tried making one
up, but it had no effect. Any ideas?

I'm running Windows XP, Frame 6.0 with FrameScript 2.1 and IXGen 5.5 already
installed, Python 2.4.3, and the fmPython22.dll in the default
fminit\Plugins folder.

Thanks in advance for your help,
Jim 

Jim Ramsay
Senior Technical Writer
webMethods Denver
___


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

To unsubscribe send a blank email to 
[EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


fmPython

2006-04-02 Thread James Ramsay
Has anyone installed fmPython
(http://www.isnet.sk/petrucha/?lang=en=fmPython) successfully? I want
to use the script that converts all text insets to text prior to distilling
a book to PDF, but I can't get fmPython to initialize. I get the following
message:

Cannot initialize API client c:\program
files\adobe\framemaker6.0\fminit\plugins\fmPython22.dll.
Check for errors in the APIClients section of C:\Program
Files\Adobe\Framemaker6.0\C:\Program Files\Adobe\FrameMaker6.0\maker.ini,
verify that the client program exists, and make sure you have enough swap
space to run the client.

There are no instructions for adding a line to the APIClient section of the
maker.ini file in the bare bones fmPython documentation. I tried making one
up, but it had no effect. Any ideas?

I'm running Windows XP, Frame 6.0 with FrameScript 2.1 and IXGen 5.5 already
installed, Python 2.4.3, and the fmPython22.dll in the default
fminit\Plugins folder.

Thanks in advance for your help,
Jim 

Jim Ramsay
Senior Technical Writer
webMethods Denver