dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

ImportError: No module named scrapyd.scripts.scrapyd_run

Open philiphoyos opened this issue 6 years ago • 3 comments

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?

philiphoyos avatar Jan 18 '19 10:01 philiphoyos

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

dart-x avatar Jun 09 '19 13:06 dart-x

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.

philiphoyos avatar Jun 21 '19 13:06 philiphoyos

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: - "6800:6800" volumes: - ./data:/var/lib/scrapyd - /usr/local/lib/python3.4/dist-packages restart: always

quocnguyenh avatar Jul 23 '19 10:07 quocnguyenh