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

Scripts not working when using pip install #63

Open
Gallaecio opened this issue Jan 26, 2022 · 0 comments
Open

Scripts not working when using pip install #63

Gallaecio opened this issue Jan 26, 2022 · 0 comments
Labels

Comments

@Gallaecio
Copy link
Member

pip is the preferred installer program.

However, when I use pip install . instead of python setup.py install, the declared scripts do not seem to be exposed to Scrapy Cloud, and when I try to execute them nonetheless I get:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/sh_scrapy/crawl.py", line 148, in _run_usercode
    _run(args, settings)
  File "/usr/local/lib/python3.10/site-packages/sh_scrapy/crawl.py", line 105, in _run
    _run_pkgscript(args)
  File "/usr/local/lib/python3.10/site-packages/sh_scrapy/crawl.py", line 128, in _run_pkgscript
    d.run_script(scriptname, {'__name__': '__main__'})
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1436, in run_script
    raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/history.py' not found in metadata at '/usr/local/lib/python3.10/site-packages/Veritec-1.0.0.dist-info'
@Gallaecio Gallaecio added the bug label Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant