Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure in test_ncut_stable_subgraph on Python 3.6 #2450

Closed
matthew-brett opened this issue Jan 13, 2017 · 10 comments · Fixed by #2511
Closed

Failure in test_ncut_stable_subgraph on Python 3.6 #2450

matthew-brett opened this issue Jan 13, 2017 · 10 comments · Fixed by #2511
Assignees
Labels
🔧 type: Maintenance Refactoring and maintenance of internals
Milestone

Comments

@matthew-brett
Copy link
Contributor

Test failure for Python 3.6 (when testing current release wheel):

======================================================================
FAIL: Test to catch an error thrown when subgraph has all equal edges.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/venv/lib/python3.6/site-packages/numpy/testing/decorators.py", line 147, in skipper_func
    return f(*args, **kwargs)
  File "/venv/lib/python3.6/site-packages/skimage/future/graph/tests/test_rag.py", line 180, in test_ncut_stable_subgraph
    assert new_labels.max() == 0
AssertionError

https://travis-ci.org/scikit-image/scikit-image-wheels/jobs/191712740

@JDWarner
Copy link
Contributor

Could be an upstream bug; it looks like NetworkX doesn't test against 3.6 on Travis. NetworkX uses dictionaries heavily and a more compact dict was a banner change in the release of Python 3.6. Can't reproduce right now at work, but will look into it this weekend unless someone else beats me to the punch.

@matthew-brett
Copy link
Contributor Author

I added a Python 3.6 entry for travis here:

#2451

It finds the same error for Python 3.6: https://travis-ci.org/matthew-brett/scikit-image/jobs/191828439#L3521

@matthew-brett
Copy link
Contributor Author

See #2451 (comment) - I suspect this is not a Networkx bug, but a bug in our assumptions about the graph, and the graph has changed as a result of the change in Python 3.6 dict ordering.

matthew-brett added a commit to matthew-brett/scikit-image that referenced this issue Jan 16, 2017
Disable Python 3.6 matrix entry until we've got the tests passing on
Python 3.6.  Outstanding issue is scikit-image#2450.
@matthew-brett
Copy link
Contributor Author

I think this is a blocker for the 0.13 release - see discussion at #2451 .

Enabling the Python 3.6 tests now just involves uncommenting the section in the .travis.yml file (now we've merged #2451).

@sciunto sciunto added the 🔧 type: Maintenance Refactoring and maintenance of internals label Jan 18, 2017
@sciunto sciunto added this to the 0.13 milestone Jan 18, 2017
@matthew-brett
Copy link
Contributor Author

Any progress here? It would be great to get out some Python 3.6 wheels, that pass the tests.

@soupault
Copy link
Member

@jni Could you help us with the name of a person who is familiar with this part?

Borda pushed a commit to Borda/scikit-image that referenced this issue Jan 30, 2017
Disable Python 3.6 matrix entry until we've got the tests passing on
Python 3.6.  Outstanding issue is scikit-image#2450.
@jni
Copy link
Member

jni commented Feb 3, 2017

Sorry for the delays! @vighneshbirodkar is the expert, but I'll have a look also.

sciunto pushed a commit to sciunto/scikit-image that referenced this issue Feb 14, 2017
Disable Python 3.6 matrix entry until we've got the tests passing on
Python 3.6.  Outstanding issue is scikit-image#2450.
@sciunto
Copy link
Member

sciunto commented Feb 14, 2017

Networkx released a version 1.11 by the end of January. Does it solve the issue @matthew-brett? https://github.com/networkx/networkx/releases

@sciunto
Copy link
Member

sciunto commented Feb 14, 2017

oops, wrong year... :(

@soupault
Copy link
Member

@matthew-brett should be closed soon via #2511 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 type: Maintenance Refactoring and maintenance of internals
Projects
None yet
5 participants