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

Python 3: TypeError: unorderable types: list() < int() #80

Closed
smspillaz opened this issue Jan 3, 2015 · 1 comment
Closed

Python 3: TypeError: unorderable types: list() < int() #80

smspillaz opened this issue Jan 3, 2015 · 1 comment

Comments

@smspillaz
Copy link
Contributor

Invoking prospector with Python 3 yields a traceback like this:

  File "/home/travis/virtualenv/python3.4.2/bin/prospector", line 9, in <module>
    load_entry_point('prospector==0.8', 'console_scripts', 'prospector')()
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/prospector/run.py", line 125, in main
    config = ProspectorConfig()
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/prospector/config/__init__.py", line 25, in __init__
    self.libraries = self._find_used_libraries(self.config)
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/prospector/config/__init__.py", line 140, in _find_used_libraries
    for name, adaptor in autodetect_libraries(self.workdir):
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/prospector/autodetect.py", line 142, in autodetect_libraries
    if libraries < len(POSSIBLE_LIBRARIES):
TypeError: unorderable types: list() < int()

This is due to comparing libraries and len(POSSIBLE_LIBRARIES). I imagine len(libraries) < len(POSSIBLE_LIBRARIES) was intended.

@jquast
Copy link
Contributor

jquast commented Jan 4, 2015

this issue may be closed, you fixed this in e70a441

@carlio carlio closed this as completed Jan 4, 2015
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

3 participants