Thanks Nicolas, Thanks Sylvain.

You might consider adding your remarks to the README file, as they put me on 
track:

1)    Installation steps (best to have it done as sudo) 
2)   Renaming Fyzz-01 to Fyzz 
3)   As per your README you need to run from python >>> from fyzz.yappsparser 
import parse <<< 
    If you do only import fyzz , python can't recognize parse.

So far so good - it worked to this point, but executing next lines from the 
README results in the following:
 
>>> ast = parse("""PREFIX doap: <http://usefulinc.com/ns/doap#>
... SELECT ?project ?name WHERE {
... ?project a doap:Project;
... doap:name ?name.
... }
... ORDER BY ?name LIMIT 5 OFFSET 10
... """)
>>> print ast.selected
[SparqlVar('project'), SparqlVar('name')]
>>> [SparqlVar('project'), SparqlVar('name')]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'SparqlVar' is not defined
 
Again, as your German neighbors say: "devil is in the details" :-)  But, it's a 
progress..only need to figure out whether the SparqlVar() is important .   You 
wouldn't happen to have a documentation to fyzz somewhere in your archives ? 

Thank you and best regards,
Jacek

  


-----Original Message-----
From: Nicolas Chauvat [mailto:[email protected]] 
Sent: Wednesday, May 25, 2011 3:52 PM
To: Szymczyk, Jacek Janusz (HP Labs - Fusionopolis, South Twr #14 floor)
Cc: Sylvain Thénault; Python-Projects; Kirchberg, Markus; Ko, Ryan
Subject: Re: [Python-projects] Fyzz breaks under python 2.6.5 and 2.7

Hi,

On Wed, May 25, 2011 at 07:38:48AM +0000, Szymczyk, Jacek Janusz (HP Labs - 
Fusionopolis, South Twr #14 floor) wrote:
> jacek@jacek-001:~/dev/fyzz-0.1.0$ ls
> ...

> ++++ python throws an error message saying the it cannot recognize
> fyzz.yappsparser package (obviously ...???) so I tried >> from
> fyzz-0.1.0. yappsparser ..., with similar results.
> 
> There is no question about the fact that I have no idea how to
> import the fyzz package into python. Could you please let me know
> the steps to enable the package. I must be missing something really
> obvious, or am I've pulled wrong fyzz package.

http://docs.python.org/tutorial/modules.html

cd ~/dev ; mv fyzz-0.1.0 fyzz ; python
>>> import fyzz
>>>

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects
  • [Pyth... Szymczyk, Jacek Janusz (HP Labs - Fusionopolis, South Twr #14 floor)
    • ... Sylvain Thénault
      • ... Nicolas Chauvat
        • ... Szymczyk, Jacek Janusz (HP Labs - Fusionopolis, South Twr #14 floor)
      • ... Szymczyk, Jacek Janusz (HP Labs - Fusionopolis, South Twr #14 floor)
        • ... Sylvain Thénault
        • ... Nicolas Chauvat
          • ... Szymczyk, Jacek Janusz (HP Labs - Fusionopolis, South Twr #14 floor)
            • ... Nicolas Chauvat
              • ... Szymczyk, Jacek Janusz (HP Labs - Fusionopolis, South Twr #14 floor)
                • ... Adrien Di Mascio

Reply via email to