Don't install networkx with version 2.8.1 (#11718)

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
f50fc70b8c
This commit is contained in:
Mateusz Tabaka
2022-05-24 14:07:36 +02:00
committed by GitHub
parent 22ee17fda6
commit 3a202c2775
8 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -70,7 +70,7 @@ INSTALL_REQUIRES = [
"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",