Bug 1708372 - Error loading networkx after spliting out tests folder
Summary: Error loading networkx after spliting out tests folder
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-networkx
Version: rawhide
Hardware: All
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-09 17:38 UTC by Alfredo Moralejo
Modified: 2019-05-26 01:04 UTC (History)
1 user (show)

Fixed In Version: python-networkx-2.3-2.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-26 01:04:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alfredo Moralejo 2019-05-09 17:38:04 UTC
Description of problem:

After spliting out tests in a different -tests subpackages, it fails to load networkx as it imports networks.tests in module __init__.py

https://github.com/networkx/networkx/blob/master/networkx/__init__.py#L126

ERROR:

[root@5099c49be804 /]# python3
Python 3.7.2 (default, Jan 16 2019, 19:49:22) 
[GCC 8.2.1 20181215 (Red Hat 8.2.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/networkx/__init__.py", line 126, in <module>
    from networkx.tests.test import run as test
ModuleNotFoundError: No module named 'networkx.tests'
>>> 



Version-Release number of selected component (if applicable):

python-networkx-2.3-1.fc31
python-networkx-2.3-1.fc30

How reproducible:

allways

Steps to Reproduce:
1. install python3-networkx-2.3-1.fc30
2. run python3
3. import networks

Actual results:

Fail to load the module with error:

ModuleNotFoundError: No module named 'networkx.tests'


Expected results:

Should load the module

Additional info:

Comment 1 Jerry James 2019-05-17 02:44:17 UTC
So much for that idea....  I'll merge it back into the main package.  Thanks for the report!

Comment 2 Fedora Update System 2019-05-17 03:29:21 UTC
python-networkx-2.3-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-903615491e

Comment 3 Fedora Update System 2019-05-18 00:53:58 UTC
python-networkx-2.3-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-903615491e

Comment 4 Fedora Update System 2019-05-26 01:04:06 UTC
python-networkx-2.3-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.