Skip to content

Commit

Permalink
Don't install networkx with version 2.8.1 (openvinotoolkit#11718)
Browse files Browse the repository at this point in the history
With new networkx release (2.8.1) some of MO tests started to fail
with following error:
```
def __setstate__(self, state):
    self._graph = G = state["_graph"]
    self._adjdict = G._pred if hasattr(G, "pred") else G._adj
    AttributeError: 'Graph' object has no attribute '_adj'
```

Seems like regression that was introduced in
networkx/networkx@f50fc70
  • Loading branch information
mateusztabaka authored May 24, 2022
1 parent 22ee17f commit 3a202c2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tools/mo/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ tensorflow>=1.15.5,<2.6
mxnet~=1.2.0; sys_platform == 'win32'
mxnet~=1.7.0.post2; sys_platform != 'win32'
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
networkx<2.8.1; python_version > "3.6"
numpy>=1.16.6,<1.20
protobuf>=3.15.6
onnx>=1.8.1
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_caffe.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
networkx<2.8.1; python_version > "3.6"
numpy>=1.16.6,<1.20
protobuf>=3.15.6
defusedxml>=0.7.1
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_kaldi.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
networkx<2.8.1; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_mxnet.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mxnet~=1.2.0; sys_platform == 'win32'
mxnet~=1.7.0.post2; sys_platform != 'win32'
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
networkx<2.8.1; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
urllib3>=1.26.4
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_onnx.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
onnx>=1.8.1
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
networkx<2.8.1; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_tf.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tensorflow>=1.15.5,<2.6
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
networkx<2.8.1; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_tf2.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tensorflow~=2.5.0; python_version <= "3.6"
tensorflow~=2.5.3; python_version > "3.6"
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
networkx<2.8.1; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1
Expand Down
2 changes: 1 addition & 1 deletion tools/pot/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_version():
"numpy>=1.16.6,<1.20",
"addict>=2.4.0",
"networkx~=2.5;python_version<='3.6'",
"networkx~=2.6;python_version>'3.6'",
"networkx<2.8.1;python_version>'3.6'",
"tqdm>=4.54.1",
"texttable~=1.6.3",
"pandas~=1.1.5",
Expand Down

0 comments on commit 3a202c2

Please sign in to comment.