Python interface to XFSM‏

267 views
Skip to first unread message

Sobh

unread,
Jan 11, 2012, 12:13:07 PM1/11/12
to nltk-users, im_...@hotmail.com
Dear ;

I hope this email finds you well and safe. I need your help please!

I am using Windows 7.

I have installed Python successfully, and NLTK successfully.

Then I installed the xfst.exe and it runs well.

Then I have downloaded the "Python interface to XFSM" from
http://www.stanford.edu/~laurik/.book2software/publishing_this_url_is_probited_by_the_license_you_accepted_getting_here_from_the_previous_page.html

then I used the command: python setup install
and it run well ....

Then from inside the python I write:


IDLE 2.6.6
>>> from xfsm import *

and I got this error!

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from xfsm import *
File "C:\Python26\lib\site-packages\xfsm\__init__.py", line 26, in
<module>
raise ImportError, message
ImportError:
*****************
Python-XFSM cannot find your copy of the XFSM dynamic
library. The XFSM dynamic library must be installed somewhere in your
standard library path.

You should have recieved a copy of the XFSM dynamic library along with
your XFSM distribution.
*****************


I tried many things but nothing at all, please advice me what to do
plz

regards
Sobh

Richard Careaga

unread,
Jan 11, 2012, 1:07:11 PM1/11/12
to nltk-...@googlegroups.com
From the install instructions: http://goo.gl/UGESy

The directory where you have installed thelibxfsm library must be on your LD_LIBRARY_PATH and (on some systems) on your DYLD_LIBRARY_PATH. To make the fsm module available in Python, enter the top-level directory of the xfsm-1.0.0 download and enter the command python setup.py install. You may need to do this as a "superuser" of your machine: sudo python setup.py install


Sobh wrote:
 XFSM dynamic
library

sautedman

unread,
Feb 5, 2014, 12:47:18 PM2/5/14
to nltk-...@googlegroups.com, im_...@hotmail.com
I have had the same problem with Windows 8.1. I cd into the top directory of xfsm-1.0.0, I run python setup.py install, it happily installs, and then I start python and try to import xfsm. It produces the same error. I have tried running the command line tools both as myself and as an administrator. If anyone has some advice that goes beyond copying and pasting the instructions on the download page, it would be greatly appreciated.

Dustin

Steven Bird

unread,
Feb 6, 2014, 6:46:05 PM2/6/14
to nltk-users, Ibrahim Sobh
You might want to check out pyfst, http://pyfst.github.io/
> --
> You received this message because you are subscribed to the Google Groups
> "nltk-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nltk-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages