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

Running scripts is not longer working on Scrapycloud #84

Closed
VMRuiz opened this issue Jun 25, 2024 · 2 comments
Closed

Running scripts is not longer working on Scrapycloud #84

VMRuiz opened this issue Jun 25, 2024 · 2 comments

Comments

@VMRuiz
Copy link
Contributor

VMRuiz commented Jun 25, 2024

Traceback (most recent call last):
  File "/app/python/lib/python3.11/site-packages/sh_scrapy/crawl.py", line 162, in _run_usercode
    _run(args, settings)
  File "/app/python/lib/python3.11/site-packages/sh_scrapy/crawl.py", line 112, in _run
    _run_pkgscript(args)
  File "/app/python/lib/python3.11/site-packages/sh_scrapy/crawl.py", line 142, in _run_pkgscript
    d.run_script(scriptname, {'__name__': '__main__'})
    ^^^^^^^^^^^^
AttributeError: 'PathDistribution' object has no attribute 'run_script'

The reason is this change

d.run_script(scriptname, {'__name__': '__main__'})

It looks like PathDistribution from importlib doesn't implements run_script method.

@VMRuiz
Copy link
Contributor Author

VMRuiz commented Sep 17, 2024

Hello @wRAR , Was this solved by #85?

@wRAR
Copy link
Member

wRAR commented Sep 17, 2024

I think so.

@VMRuiz VMRuiz closed this as completed Sep 17, 2024
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

2 participants