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

Error involving Collections Module #148

Open
mbridgwater opened this issue Jul 15, 2023 · 0 comments
Open

Error involving Collections Module #148

mbridgwater opened this issue Jul 15, 2023 · 0 comments

Comments

@mbridgwater
Copy link

When trying to access ML-Ensemble through PyPI, I would be sure to run in terminal:
pip3 install sklearn
pip3 install mlens
pip3 install pandas
pip3 install -U mlens
and I have Python 3.11.3 installed.

I would then run the attached file.
init_iris.py.zip

This led to the issue ImportError: cannot import name 'Sequence' from 'collections' (/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/collections/init.py).

When I tried to install via Github and checked my build, I got the error:
---------------------------------- Build log ----------------------------------

nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
Traceback (most recent call last):
File "/Users/missybridgwater/Developer/mii/whi/whivenv/bin/nosetests", line 8, in
sys.exit(run_exit())
^^^^^^^^^^
File "/Users/missybridgwater/Developer/mii/whi/whivenv/lib/python3.11/site-packages/nose/core.py", line 118, in init
unittest.TestProgram.init(
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/unittest/main.py", line 101, in init
self.parseArgs(argv)
File "/Users/missybridgwater/Developer/mii/whi/whivenv/lib/python3.11/site-packages/nose/core.py", line 179, in parseArgs
self.createTests()
File "/Users/missybridgwater/Developer/mii/whi/whivenv/lib/python3.11/site-packages/nose/core.py", line 193, in createTests
self.test = self.testLoader.loadTestsFromNames(self.testNames)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/missybridgwater/Developer/mii/whi/whivenv/lib/python3.11/site-packages/nose/loader.py", line 481, in loadTestsFromNames
return unittest.TestLoader.loadTestsFromNames(self, names, module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/unittest/loader.py", line 220, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/unittest/loader.py", line 220, in
suites = [self.loadTestsFromName(name, module) for name in names]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/missybridgwater/Developer/mii/whi/whivenv/lib/python3.11/site-packages/nose/loader.py", line 454, in loadTestsFromName
return LazySuite(
^^^^^^^^^^
File "/Users/missybridgwater/Developer/mii/whi/whivenv/lib/python3.11/site-packages/nose/suite.py", line 53, in init
super(LazySuite, self).init()
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/unittest/suite.py", line 22, in init
self._tests = []
^^^^^^^^^^^
File "/Users/missybridgwater/Developer/mii/whi/whivenv/lib/python3.11/site-packages/nose/suite.py", line 106, in _set_tests
if isinstance(tests, collections.Callable) and not is_suite:
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Callable'

Thus, there seems to maybe be an error here with the installation. Not sure if it is due to my configuration or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant