You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling Pagerank results in an input type check that requires NetworkX. This should be an optional check performed only if NetworkX is already installed.
(rapids) [root@923fab474292 cugraph]# python pagerank_demo.py
Traceback (most recent call last):
File "pagerank_demo.py", line 5, in <module>
ranks = cugraph.pagerank(G)
File "/opt/conda/envs/rapids/lib/python3.8/site-packages/cugraph-0+untagged.1.gc41ffd4-py3.8-linux-x86_64.egg/cugraph/link_analysis/pagerank.py", line 98, in pagerank
G, isNx = cugraph.utilities.check_nx_graph(G, weight)
File "/opt/conda/envs/rapids/lib/python3.8/site-packages/cugraph-0+untagged.1.gc41ffd4-py3.8-linux-x86_64.egg/cugraph/utilities/nx_factory.py", line 99, in check_nx_graph
raise RuntimeError("NetworkX could not be imported, cannot check G")
RuntimeError: NetworkX could not be imported, cannot check G
…new docstrings, import cleanups (#1853)
* Changed type check code to no longer require NetworkX and instead only check Nx types if installed. #1851
* Cleaned up imports, removed unused imports.
* Changed `import_optional` to use `importlib` instead, and return `MissingModule` instances for easier error reporting.
* Fixed format of example in `rmat` docstring #1807
* Added docstrings for `pylibcugraph` `*_connected_components` APIs. #1782
Tested changes to optional import and type checking code by uninstalling `NetworkX`, observing the failure shown in #1851, applying change, then testing to observe the same script runs to completion without Nx installed.
closes#1851closes#1807closes#1782
Authors:
- Rick Ratzel (https://github.com/rlratzel)
Approvers:
- Brad Rees (https://github.com/BradReesWork)
- Joseph Nke (https://github.com/jnke2016)
URL: #1853
Calling Pagerank results in an input type check that requires NetworkX. This should be an optional check performed only if NetworkX is already installed.
cc @ChuckHastings
The text was updated successfully, but these errors were encountered: