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

DistributionNotFound: The 'greenlet==1.1.3' distribution was not found and is required by the application #90

Open
mdczaplicki opened this issue Sep 19, 2022 · 3 comments

Comments

@mdczaplicki
Copy link

Running liccheck on this requirements.txt

alembic==1.8.1 
anyio==3.6.1 
aredis==1.1.8 
certifi==2022.6.15.2 
click==8.1.3 
colorama==0.4.5 
fastapi==0.83.0 
greenlet==1.1.3
h11==0.12.0 
httpcore==0.15.0 
httpx==0.23.0 
idna==3.4 
importlib-metadata==4.2.0 
importlib-resources==5.9.0 
mako==1.2.2 
markupsafe==2.1.1 
pydantic==1.10.2 
rfc3986[idna2008]==1.5.0 
sentry-sdk==1.9.8 
sniffio==1.3.0 
sqlalchemy-utils==0.38.3 
sqlalchemy==1.4.41 
starlette==0.19.1 
typing-extensions==4.3.0 
urllib3==1.26.12 
uvicorn==0.18.3 
zipp==3.8.1 

raises

gathering licenses...
Traceback (most recent call last):
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/bin/liccheck", line 8, in <module>
    sys.exit(main())
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/lib/python3.7/site-packages/liccheck/command_line.py", line 399, in main
    sys.exit(run(args))
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/lib/python3.7/site-packages/liccheck/command_line.py", line 389, in run
    args['no_deps'])
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/lib/python3.7/site-packages/liccheck/command_line.py", line 250, in process
    pkg_info = get_packages_info(requirement_file, no_deps)
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/lib/python3.7/site-packages/liccheck/command_line.py", line 166, in get_packages_info
    packages = [transform(dist) for dist in resolve_func(requirements)]
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/lib/python3.7/site-packages/liccheck/command_line.py", line 166, in <listcomp>
    packages = [transform(dist) for dist in resolve_func(requirements)]
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/lib/python3.7/site-packages/liccheck/requirements.py", line 51, in resolve
    for dist in pkg_resources.working_set.resolve(requirements):
  File "/Users/marek/Library/Caches/pypoetry/virtualenvs/big-battery-Zhirr-W2-py3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 795, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'greenlet==1.1.3' distribution was not found and is required by the application

Same goes for colorama==0.4.5

@Merinorus
Copy link

Merinorus commented Sep 22, 2022

Hi,
Same with selenium==4.4.3 or just selenium here.

Traceback (most recent call last):
  File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\Scripts\liccheck.EXE\__main__.py", line 7, in <module>
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\lib\site-packages\liccheck\command_line.py", line 399, in main
    sys.exit(run(args))
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\lib\site-packages\liccheck\command_line.py", line 388, in run
    return process(args['requirement_txt_file'], strategy, args['level'], args['reporting_txt_file'],
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\lib\site-packages\liccheck\command_line.py", line 250, in process
    pkg_info = get_packages_info(requirement_file, no_deps)
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\lib\site-packages\liccheck\command_line.py", line 166, in get_packages_info
    packages = [transform(dist) for dist in resolve_func(requirements)]
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\lib\site-packages\liccheck\command_line.py", line 166, in <listcomp>
    packages = [transform(dist) for dist in resolve_func(requirements)]
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\lib\site-packages\liccheck\requirements.py", line 51, in resolve
    for dist in pkg_resources.working_set.resolve(requirements):
  File "C:\Users\merinorus\.cache\pre-commit\repoc2e43htu\py_env-python3.10\lib\site-packages\pkg_resources\__init__.py", line 795, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'selenium==4.4.3' distribution was not found and is required by the application
gathering licenses...

@Sahith-8055
Copy link

Sahith-8055 commented Apr 18, 2023

Hi,
Same here with wrapt==1.15.0.

gathering licenses... Traceback (most recent call last): File "/usr/local/bin/liccheck", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.11/site-packages/liccheck/command_line.py", line 517, in main sys.exit(run(args)) ^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/liccheck/command_line.py", line 497, in run return process( ^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/liccheck/command_line.py", line 313, in process pkg_info = get_packages_info(requirement_file, no_deps) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/liccheck/command_line.py", line 198, in get_packages_info packages = [transform(dist) for dist in resolve_func(requirements)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/liccheck/command_line.py", line 198, in <listcomp> packages = [transform(dist) for dist in resolve_func(requirements)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/liccheck/requirements.py", line 51, in resolve for dist in pkg_resources.working_set.resolve(requirements): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pkg_resources/__init__.py", line 795, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'wrapt==1.15.0' distribution was not found and is required by the application

@omercnet
Copy link

this happens when liccheck does not run in the same venv as the installed packages

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

4 participants