run_tests.py: Error reading config file 'setup.cfg': no such option 'with-doctest-ignore-unicode'

19 views
Skip to first unread message

Axel Nennker

unread,
Nov 9, 2018, 6:39:33 AM11/9/18
to rdflib-dev
Hi,

I cloned the repository
, ran
python3 setup.py build
which gives a warning "UserWarning: Normalizing '5.0.0-dev' to '5.0.0.dev0'"

Now:
ignisvulpis@namenlos:~/development/rdflib$ python3 run_tests.py
Running nose with: --attr= test rdflib --where=./ --with-doctest --doctest-extension=.doctest --doctest-tests
Usage: run_tests.py [options]

run_tests.py: error: Error reading config file 'setup.cfg': no such option 'with-doctest-ignore-unicode'
ignisvulpis@namenlos:~/development/rdflib$

When I remove the setting from setup.cfg and also doctest-options=+IGNORE_UNICODE
there are then in fact unicode errors.

File "/home/ignisvulpis/development/rdflib/rdflib/term.py", line 606, in rdflib.term.Literal.normalize
Failed example:
    Literal("a", datatype=XSD.integer, normalize=False)
Expected:
    rdflib.term.Literal(u'a', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
Got:
    rdflib.term.Literal('a', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#integer'))

How do I fix this?

thanks
Axel

Gunnar Aastrand Grimnes

unread,
Nov 9, 2018, 7:07:59 AM11/9/18
to rdfli...@googlegroups.com
https://github.com/RDFLib/rdflib/blob/master/requirements.txt#L7

pip install -r requirements.txt

- Gunnar
> --
> http://github.com/RDFLib
> ---
> You received this message because you are subscribed to the Google Groups "rdflib-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+...@googlegroups.com.
> To post to this group, send email to rdfli...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/e7a7ffce-f2eb-4738-a7b9-49263bef2395%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
http://gromgull.net

Axel Nennker

unread,
Nov 9, 2018, 2:42:48 PM11/9/18
to rdfli...@googlegroups.com
Thanks, kind of thought setup would do that for me or at least warn of missing requirements

Reply all
Reply to author
Forward
0 new messages