Re: Problems upgrading r-cran-fastcluster due to failed test in Python module

2016-11-17 Thread Gard Spreemann
Hi again, and sorry for taking so long.

It's pretty obvious now: The tests start with

 from scipy.spatial.distance import pdist, squareform

so they require scipy. I suggest that python-scipy and python3-scipy
are added as build-deps. That makes the python2 version build and test
fine also in my pbuilder chroot.

However, the python3 version now fails with:

  File "/build/r-cran-fastcluster-1.1.21/src/python/tests/nantest.py", line 7, 
in 
Copyright (c) 2011 Daniel M\xfcllner, ''')
 UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 
72: ordinal not in range(128)
 E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: 
python3.5 setup.py test

The weird thing is that this error does not occur when building on my
ordinary system (outside of the pbuilder chroot). Does pbuilder not
allow non-ASCII output or something?

I guess it's not exactly critical that the upstream author's name is
output correctly during the build, but still. Any ideas?


--
 Best,
  Gard
  



Re: Problems upgrading r-cran-fastcluster due to failed test in Python module

2016-11-17 Thread Gard Spreemann
On Thursday, 17 November 2016 11:24:36 CET Gard Spreemann wrote:
> However, the python3 version now fails with:
> 
>   File "/build/r-cran-fastcluster-1.1.21/src/python/tests/nantest.py", line
> 7, in 
> Copyright (c) 2011 Daniel M\xfcllner, ''')
>  UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position
> 72: ordinal not in range(128)
>  E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1:
> python3.5 setup.py test
>

Sorry, I somehow skipped a line in that output. For completeness, the
corresponding lines in src/python/tests/nantest.py (and test.py and
vectortest.py) are:

 print('''
 Test program for the 'fastcluster' package.
 Copyright (c) 2011 Daniel Müllner, ''')


--
 Best,
 Gard
 



Re: Problems upgrading r-cran-fastcluster due to failed test in Python module

2016-11-17 Thread Gard Spreemann
On Thursday, 17 November 2016 10:50:06 CET Tristan Seligmann wrote:
> On Thu, 17 Nov 2016 at 12:25 Gard Spreemann  wrote:
> > The weird thing is that this error does not occur when building on my
> > ordinary system (outside of the pbuilder chroot). Does pbuilder not
> > allow non-ASCII output or something?
> 
> Pbuilder is probably defaulting the locale to C, whereas your system/user
> locale is probably a UTF-8 locale (eg. en_US.UTF-8). You can probably
> resolve this issue with an `export LC_ALL=C.UTF-8` in debian/rules.

Thanks!

With "export LC_ALL=C.UTF-8" in debian/rules and the added
python-scipy and python3-scipy build-deps, the new version of the
package builds and tests fine in my pbuilder.


--
 Best,
 Gard
 



Re: Problems upgrading r-cran-fastcluster due to failed test in Python module

2016-11-17 Thread Tristan Seligmann
On Thu, 17 Nov 2016 at 12:25 Gard Spreemann  wrote:

> The weird thing is that this error does not occur when building on my
> ordinary system (outside of the pbuilder chroot). Does pbuilder not
> allow non-ASCII output or something?
>

Pbuilder is probably defaulting the locale to C, whereas your system/user
locale is probably a UTF-8 locale (eg. en_US.UTF-8). You can probably
resolve this issue with an `export LC_ALL=C.UTF-8` in debian/rules.


Re: Problems upgrading r-cran-fastcluster due to failed test in Python module

2016-11-17 Thread Gard Spreemann
On Thursday, 17 November 2016 11:24:36 CET Gard Spreemann wrote:
> It's pretty obvious now: The tests start with
> 
>  from scipy.spatial.distance import pdist, squareform
> 
> so they require scipy. I suggest that python-scipy and python3-scipy
> are added as build-deps.
>

I now see that the code itself (i.e. not just the tests) refer
optionally to SciPy. For example:

 try:
 from scipy.spatial.distance import pdist
 except ImportError:
 def pdist(*args, **kwargs):
 raise ImportError('The fastcluster.linkage function cannot process '
   'vector data since the function '
   'scipy.partial.distance.pdist could not be  '
   'imported.')

I think it would be a good idea for python-fastcluster to recommend
python-scipy and python3-fastcluster to recommend python3-scipy.


--
 Best,
 Gard
 



Re: Problems upgrading r-cran-fastcluster due to failed test in Python module

2016-11-17 Thread Andreas Tille
On Thu, Nov 17, 2016 at 12:10:03PM +0100, Gard Spreemann wrote:
> ...
> I think it would be a good idea for python-fastcluster to recommend
> python-scipy and python3-fastcluster to recommend python3-scipy.

Uploaded (unfortunately without the additional Recommends which I
learned to late since I just prepared the package after the first hint
to scipy. 

I commited the Recommends in SVN to make sure it will not be forgotten
for the next upload.

Thanks to all for the hints

Andreas.

-- 
http://fam-tille.de



Re: Bug#843397: python-rdflib-jsonld: Requires python-rdflib 4.2.1 to work properly with schema.org contexts

2016-11-17 Thread Andreas Tille
Hi Christian,

On Wed, Nov 16, 2016 at 04:50:56PM +0100, chrysn wrote:
> On Wed, Nov 16, 2016 at 04:45:52PM +0100, Andreas Tille wrote:
> > Yes - if you tell me exactly what Git URL to clone and what branch is
> > the Debian branch to build.
> 
> git clone git+ssh://git.debian.org/git/collab-maint/rdflib.git -b debian
> 
> sorry, I thought you already had a current checkout.

While I have fixed the clean target in Git to make the build start at
all there is one remaining unit test error:


...
No SPARQL endpoint for SPARQLUpdateStore (tests skipped)
SS/usr/lib/python2.7/dist-packages/SPARQLWrapper/Wrapper.py:408:
 UserWarning: keepalive support not available, so the execution of this method 
has no effect
  warnings.warn("keepalive support not available, so the execution of this 
method has no effect")
...SSS...SSS.....SS..SSS.SSS..SSSSSS.S...S...S.SS..Traceback
 (most recent call last):
  File "rdflib/tools/rdfpipe.py", line 185, in 
main()
  File "rdflib/tools/rdfpipe.py", line 181, in main
outfile, opts.output_format, ns_bindings)
  File "rdflib/tools/rdfpipe.py", line 49, in parse_and_serialize
graph.parse(fpath, format=use_format, **kws)
  File "/build/rdflib-4.2.1/rdflib/graph.py", line 1464, in parse
location=location, file=file, data=data, **args)
  File "/build/rdflib-4.2.1/rdflib/graph.py", line 1037, in parse
parser.parse(source, self, **args)
  File "/build/rdflib-4.2.1/rdflib/plugins/parsers/structureddata.py", line 
145, in parse
check_lite=check_lite
  File "/build/rdflib-4.2.1/rdflib/plugins/parsers/structureddata.py", line 
178, in _process
_check_error(processor_graph)
  File "/build/rdflib-4.2.1/rdflib/plugins/parsers/structureddata.py", line 58, 
in _check_error
raise Exception("RDFa parsing Error! %s" % msg)
Exception: RDFa parsing Error! __init__() got an unexpected keyword argument 
'encoding'
F..S..SSS..SS..SSSS..SS.SSS.S..
==
FAIL: Issue 375: rdfpipe command generates bytes vs. str TypeError
--
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
  File "/build/rdflib-4.2.1/test/test_issue375.py", line 168, in 
test_rdfpipe_bytes_vs_str
assert res.strip() == rdfa_expected
AssertionError

--
Ran 2268 tests in 47.580s

FAILED (SKIP=79, failures=1)
Running nose with: --exclude=test_conneg --attr= test rdflib --where=./
E: pybuild pybuild:276: test: plugin custom failed with: exit code=1: python2.7 
run_tests.py  --exclude=test_conneg
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 returned 
exit code 13


I