Code Monkey home page Code Monkey logo

Comments (8)

carlio avatar carlio commented on July 21, 2024

Hi @svenstaro , could you post the full stack trace? I haven't been able to reproduce this yet.

from prospector.

carlio avatar carlio commented on July 21, 2024

Closing as cannot reproduce.

from prospector.

erlingbo avatar erlingbo commented on July 21, 2024

I got the same problem. I do not have a requirements.txt but a folder (requirements/) containing files for different environments (eg. dev.txt and prod.txt). Our project is using python 3.4.2 and prospector 0.9.9

Traceback (most recent call last):
  File "/home/erlingbo/.virtualenvs/project_name/bin/prospector", line 9, in <module>
    load_entry_point('prospector==0.9.9', 'console_scripts', 'prospector')()
  File "/home/erlingbo/.virtualenvs/project_name/lib/python3.4/site-packages/prospector/run.py", line 127, in main
    config = ProspectorConfig()
  File "/home/erlingbo/.virtualenvs/project_name/lib/python3.4/site-packages/prospector/config/__init__.py", line 33, in __init__
    self.libraries = self._find_used_libraries(self.config, self.profile)
  File "/home/erlingbo/.virtualenvs/project_name/lib/python3.4/site-packages/prospector/config/__init__.py", line 153, in _find_used_libraries
    map(libraries.append, autodetect_libraries(self.workdir))
  File "/home/erlingbo/.virtualenvs/project_name/lib/python3.4/site-packages/prospector/autodetect.py", line 136, in autodetect_libraries
    libraries = find_from_requirements(path)
  File "/home/erlingbo/.virtualenvs/project_name/lib/python3.4/site-packages/prospector/autodetect.py", line 117, in find_from_requirements
    reqs = find_requirements(path)
  File "/home/erlingbo/.virtualenvs/project_name/lib/python3.4/site-packages/requirements_detector/detect.py", line 114, in find_requirements
    requirements.sort()
  File "/home/erlingbo/.virtualenvs/project_name/lib/python3.4/site-packages/requirements_detector/requirement.py", line 101, in __gt__
    return self.name > other.name
TypeError: unorderable types: str() > NoneType()

from prospector.

erlingbo avatar erlingbo commented on July 21, 2024

I see on the stack-trace that the bug probably is in requirements_detector

from prospector.

erlingbo avatar erlingbo commented on July 21, 2024

Here is the content of ./requirements/

#requirements/base.txt
django==1.7.5
djangorestframework==3.0.5
django-filter==0.9.2
Markdown==2.5.2
django-cors-headers==1.0.0
python-social-auth==0.2.1
djangorestframework-jwt==1.2.0
djangorestframework-camel-case==0.2.0
------------
#requirements/dev.txt
-r base.txt
------------
#requirements/prod.txt
-r base.txt
http://www.lfd.uci.edu/~gohlke/pythonlibs/z94jfosk/pyodbc-3.0.7-cp34-none-win32.whl
django-pyodbc-azure
------------

from prospector.

carlio avatar carlio commented on July 21, 2024

Thanks @erlingbo - this is already fixed in a PR on requirements-detector (see landscapeio/requirements-detector#4) and I will make a new release soon including that fix (currently on holiday!)

from prospector.

erlingbo avatar erlingbo commented on July 21, 2024

Great. I figured out that I could go round the problem by removing the pyodbc wheel from my prod requirements :)

from prospector.

carlio avatar carlio commented on July 21, 2024

The upcoming 0.10 release of prospector will mandate requirements-detector 0.4 to include a fix for this.

from prospector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.