Comments (8)
Hi @svenstaro , could you post the full stack trace? I haven't been able to reproduce this yet.
from prospector.
Closing as cannot reproduce.
from prospector.
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.
I see on the stack-trace that the bug probably is in requirements_detector
from prospector.
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.
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.
Great. I figured out that I could go round the problem by removing the pyodbc wheel from my prod requirements :)
from prospector.
The upcoming 0.10 release of prospector will mandate requirements-detector
0.4 to include a fix for this.
from prospector.
Related Issues (20)
- [BUG]Cannot run tool bandit as support was not installed. HOT 4
- [BUG] Mypy is described as experimental when it's now stable HOT 1
- [BUG] prospector2 won't install on Windows apparently since using forward slash instead of os.path.join HOT 1
- Prospector 1.10.2 does not support `with_mypy` optional tool [in conda] HOT 5
- [BUG] prospector fails when pyproject.toml contain multiple constraints dependencies
- [FEATURE REQUEST] MyPy check-untyped-defs option.
- [BUG] Incorrect additional_dependencies documentation to run prospector as a pre-commit hook with mypy support HOT 2
- [BUG] toml support is incomplete HOT 1
- [PKG SUPPORT] `pylint <3` and Python 3.12 HOT 11
- [PKG SUPPORT] changes for support of `flake >=6.0.0` (and Python 3.12, implicit) HOT 3
- [BUG] pre-commit hook fails on Python 3.12 because of deprecated pkg_resources HOT 3
- [BUG] False positive E231 error in pycodestyle HOT 3
- [BUG] Fatal error pylint: astroid-error HOT 1
- [FEATURE REQUEST] How to use `prospector` on a string
- [BUG] missing dependency: setuptools HOT 1
- [BUG] Crash with ValueError HOT 1
- [BUG] prospector fails with UnicodeDecodeError on requirements.txt having DOS (CRLF) line endings HOT 2
- [BUG] `prospector[with_pyroma]` not appearing to install pyroma when creating conda environments
- [FEATURE REQUEST] Baseline generation
- [BUG] Strange errors with python version 3.12.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prospector.