scrapy / scrapyd

A service daemon to run Scrapy spiders
https://scrapyd.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
2.96k stars 569 forks source link

Failed to load application: cannot import name 'get_application' from 'scrapyd' #357

Closed allran closed 3 years ago

allran commented 5 years ago
(VideoManage) ➜  video_scrapy git:(master) ✗ scrapyd
Unhandled Error
Traceback (most recent call last):
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/twisted/application/app.py", line 674, in run
    runApp(config)
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/twisted/scripts/twistd.py", line 25, in runApp
    runner.run()
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/twisted/application/app.py", line 381, in run
    self.application = self.createOrGetApplication()
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/twisted/application/app.py", line 453, in createOrGetApplication
    application = getApplication(self.config, passphrase)
--- <exception caught here> ---
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/twisted/application/app.py", line 464, in getApplication
    application = service.loadApplication(filename, style, passphrase)
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/twisted/application/service.py", line 416, in loadApplication
    application = sob.loadValueFromFile(filename, 'application')
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/twisted/persisted/sob.py", line 177, in loadValueFromFile
    eval(codeObj, d, d)
  File "/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/scrapyd/txapp.py", line 2, in <module>
    from scrapyd import get_application
builtins.ImportError: cannot import name 'get_application' from 'scrapyd' (/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/scrapyd/__init__.py)

Failed to load application: cannot import name 'get_application' from 'scrapyd' (/Users/allran/.virtualenv/VideoManage/lib/python3.7/site-packages/scrapyd/__init__.py)
Lofoer commented 4 years ago

+1

my8100 commented 4 years ago

For comparison, can you new a virtual env and install Scrapyd solely? If still fails, please post the result of command “pip list” in the new virtual env?

jpmckinney commented 3 years ago

Cannot reproduce, and no answer to the question in over a year.