Running FuXi from repository: trouble

1 view
Skip to first unread message

Jean-Marc Vanel

unread,
Jan 27, 2010, 3:42:46 AM1/27/10
to fuxi-di...@googlegroups.com
Here is my FuXi shell command :

EX=http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/examples

FuXi --input-format=n3 --output=n3 --ruleFacts --closure \
--rules=$EX/facebook-rules.n3 \
--rules=$EX/facebook-data.n3 \
--rules=http://eulersharp.svn.sourceforge.net/viewvc/eulersharp/trunk/2003/03swap/owl-SymmetricProperty.n3
\
--filter=$EX/facebookQ.n3

Here is the stack I get:

/usr/local/lib/python2.6/dist-packages/FuXi-1.0_rc_II.dev-py2.6.egg/FuXi/Rete/AlphaNode.py:6:
DeprecationWarning: the sets module is deprecated
from sets import Set
/usr/local/lib/python2.6/dist-packages/FuXi-1.0_rc_II.dev-py2.6.egg/FuXi/Rete/TopDown.py:12:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import itertools, copy, md5
Traceback (most recent call last):
File "/usr/local/bin/FuXi", line 8, in <module>
load_entry_point('FuXi==1.0-rc-II.dev', 'console_scripts', 'FuXi')()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 277,
in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2180,
in load_entry_point
return ep.load()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1913, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.6/dist-packages/FuXi-1.0_rc_II.dev-py2.6.egg/FuXi/Rete/CommandLine.py",
line 14, in <module>
from FuXi.Rete.TopDown import *
File "/usr/local/lib/python2.6/dist-packages/FuXi-1.0_rc_II.dev-py2.6.egg/FuXi/Rete/TopDown.py",
line 16, in <module>
from FuXi.Rete.Magic import AdornLiteral
File "/usr/local/lib/python2.6/dist-packages/FuXi-1.0_rc_II.dev-py2.6.egg/FuXi/Rete/Magic.py",
line 27, in <module>
from rdflib.sparql.Algebra import RenderSPARQLAlgebra
ImportError: No module named Algebra

Here is how I installed FuXi :

sudo apt-get install python2.6-dev
wget http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py
sudo easy_install -U "rdflib>=2.4.2"
hg clone https://fuxi.googlecode.com/hg/ fuxi
cd fuxi
hg update
python setup.py build
sudo python setup.py install

--
Jean-Marc Vanel
Consulting, services, training,
Rule-based programming, Semantic Web
http://jmvanel.free.fr/
+33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16
( we rarely listen to voice messages, please send a mail instead )

Uche Ogbuji

unread,
Jan 27, 2010, 12:16:19 PM1/27/10
to fuxi-di...@googlegroups.com
My wild shot at diagnostics: do you have Algebra.py anywhere under
/usr/local/lib/python2.6/dist-packages/ ?

--Uche

> --
> You received this message because you are subscribed to the Google Groups "fuxi-discussion" group.
> To post to this group, send email to fuxi-di...@googlegroups.com.
> To unsubscribe from this group, send email to fuxi-discussi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fuxi-discussion?hl=en.
>
>

--
Uche Ogbuji http://uche.ogbuji.net
Founding Partner, Zepheira http://zepheira.com
Linked-in profile: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji

Jean-Marc Vanel

unread,
Jan 27, 2010, 1:01:55 PM1/27/10
to fuxi-di...@googlegroups.com


2010/1/27 Uche Ogbuji <uc...@ogbuji.net>

My wild shot at diagnostics: do you have Algebra.py anywhere under
/usr/local/lib/python2.6/dist-packages/ ?

Thanks Chimezie, that was that. 
After installing python2.6-dev ,

I didn't rerun:
sudo easy_install -U "rdflib>=2.4.2"

Now the Fuxi in the original post runs .
It does not give the expected result that Euler/Prolog and EulerGUI/Drools produce, that is the single triple :


That must be because the predicate:
is not recognized by FuXi.

Admittedly, this is a trick to bring Unique Name Assertion in a rule base...

However, this also points that the --filter does not run as expected.


Did you try EulerGUI ?

Kind regards 
JMV
Reply all
Reply to author
Forward
0 new messages