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

cannot import name 'get_build_manager' #1119

Closed
tbenst opened this issue Dec 10, 2019 · 3 comments
Closed

cannot import name 'get_build_manager' #1119

tbenst opened this issue Dec 10, 2019 · 3 comments
Labels
category: bug errors in the code or code behavior

Comments

@tbenst
Copy link

tbenst commented Dec 10, 2019

Description

I am trying to build 1.1.2 and am running into what appears to be #203.

build_fake_data (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: build_fake_data (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: build_fake_data
Traceback (most recent call last):
  File "/nix/store/c2n0xp0j3nacr1l17lmrdzwp16ljsvll-python3-3.7.5/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/build/pynwb-1.1.2/tests/build_fake_data.py", line 3, in <module>
    from pynwb import NWBFile, get_build_manager
ImportError: cannot import name 'get_build_manager' from 'pynwb' (/build/pynwb-1.1.2/src/pynwb/__init__.py)


----------------------------------------------------------------------
Ran 364 tests in 63.636s

FAILED (errors=1, skipped=115)

I think

from pynwb import NWBFile, get_build_manager
should be get_manager instead. It seems like not all tests are running on CI?

@tbenst tbenst added the category: bug errors in the code or code behavior label Dec 10, 2019
@rly
Copy link
Contributor

rly commented Dec 10, 2019

Thanks for the report @tbenst . You're correct - that is legacy dead code that will be removed in #1117. The only tests that run on CI are in tests/unit/ and tests/integration/ (and soon to exist tests/back_compat/)

@tbenst
Copy link
Author

tbenst commented Dec 10, 2019

great thx! can confirm that tests succeed after rm tests/build_fake_data.py tests/build_fake_extension.py.

@rly
Copy link
Contributor

rly commented Jan 22, 2020

The legacy file tests/build_fake_data.py and tests/build_fake_extension.py have been removed in #1117, so this is no longer an issue.

@rly rly closed this as completed Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug errors in the code or code behavior
Projects
None yet
Development

No branches or pull requests

2 participants