vimagick / dockerfiles

:whale: A curated list of delicious docker recipes 🇺🇦🇮🇱 (Let's Fight Against Dictatorship)
https://hub.docker.com/u/vimagick/
3.15k stars 794 forks source link

ImportError: No module named scrapyd.scripts.scrapyd_run #97

Open philiphoyos opened 5 years ago

philiphoyos commented 5 years ago

docker-compose.yml

scrapyd:
  image: vimagick/scrapyd
  ports:
    - "6800:6800"
  volumes:
    - ./data:/var/lib/scrapyd
    - /usr/local/lib/python2.7/dist-packages
  restart: always

Using docker-compose up yields the following

Creating docker-scrapyd_scrapyd_1 ... done
Attaching to docker-scrapyd_scrapyd_1
scrapyd_1  | Traceback (most recent call last):
scrapyd_1  |   File "/usr/local/bin/scrapyd", line 7, in <module>
scrapyd_1  |     from scrapyd.scripts.scrapyd_run import main
scrapyd_1  | ImportError: No module named scrapyd.scripts.scrapyd_run

Any clue to what I could be doing wrong?

dart-x commented 5 years ago

Happening to me too, @philiphoyos did u resolved this ?

philiphoyos commented 5 years ago

No, I was searching around, but have been unable to find the solution yet. And have not had the time to digg into the problem.

quocnguyenh commented 5 years ago

i had same the problem and after tried with configuration below, it works like a charm. should use --> image: vimagick/scrapyd:py3

scrapyd: image: vimagick/scrapyd:py3 ports: