sheon / fuxi

Automatically exported from code.google.com/p/fuxi
0 stars 0 forks source link

dependency problem installing from pip #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I installed what I assumed is the latest version, but I cannot run FuXi 
presumably because of a module versioning problem:

$ sudo pip install fuxi==1.4.1.production
Downloading/unpacking fuxi==1.4.1.production
  Downloading FuXi-1.4.1.production.tar.gz (156kB): 156kB downloaded
  Running setup.py (path:/tmp/pip_build_root/fuxi/setup.py) egg_info for package fuxi

Downloading/unpacking rdflib<3a (from fuxi==1.4.1.production)
  Downloading rdflib-2.4.2.tar.gz (362kB): 362kB downloaded
  Running setup.py (path:/tmp/pip_build_root/rdflib/setup.py) egg_info for package rdflib

    warning: no files found matching 'example.py'
Installing collected packages: fuxi, rdflib
  Running setup.py install for fuxi

    Installing FuXi script to /usr/local/bin
  Running setup.py install for rdflib
    building 'rdflib.sparql.bison.SPARQLParserc' extension
    i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/bison/SPARQLParser.c -o build/temp.linux-i686-2.7/src/bison/SPARQLParser.o
    i586-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-i686-2.7/src/bison/SPARQLParser.o -o build/lib.linux-i686-2.7/rdflib/sparql/bison/SPARQLParserc.so

    warning: no files found matching 'example.py'
    Installing rdfpipe script to /usr/local/bin
Successfully installed fuxi rdflib
Cleaning up...
$ FuXi 
Traceback (most recent call last):
  File "/usr/local/bin/FuXi", line 9, in <module>
    load_entry_point('FuXi==1.4.1.production', 'console_scripts', 'FuXi')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/FuXi/Rete/CommandLine.py", line 10, in <module>
    from FuXi.LP.BackwardFixpointProcedure import BackwardFixpointProcedure
  File "/usr/local/lib/python2.7/dist-packages/FuXi/LP/BackwardFixpointProcedure.py", line 30, in <module>
    from FuXi.SPARQL import EDBQuery, EDBQueryFromBodyIterator, ConjunctiveQueryMemoize
  File "/usr/local/lib/python2.7/dist-packages/FuXi/SPARQL/__init__.py", line 8, in <module>
    from FuXi.Rete.Magic import AdornedUniTerm
  File "/usr/local/lib/python2.7/dist-packages/FuXi/Rete/Magic.py", line 39, in <module>
    from rdflib.sparql.parser import parse
ImportError: cannot import name parse

Original issue reported on code.google.com by tetron.i...@gmail.com on 28 Nov 2014 at 2:00