scalingexcellence / scrapybook

Scrapy Book Code
http://scrapybook.com/
475 stars 209 forks source link

ERROR: C:/Users/USER/Desktop/scrapybook/Vagrantfile:4: warning: constant ::TRUE is deprecated #44

Closed andy940255 closed 6 years ago

andy940255 commented 6 years ago

it is my .... problem I am NOT good at English,sorry I reference the first video in this (http://scrapybook.com/) but something wrong... I am a Beginners for this,I will thank you for your advice.

Microsoft Windows [版本 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\USER>Desktop 'Desktop' 不是內部或外部命令、可執行的程式或批次檔。

C:\Users\USER>cd Desktop

C:\Users\USER\Desktop>git clone https://github.com/scalingexcellence/scrapybook. git Cloning into 'scrapybook'... remote: Counting objects: 1218, done. emote: Total 1218 (delta 0), reused 0 (delta 0), pack-reused 1218Receiving objec Receiving objects: 100% (1218/1218), 621.32 KiB | 101.00 KiB/s, done.

Resolving deltas: 100% (599/599), done. Checking connectivity... done.

C:\Users\USER\Desktop>cd scrapybook

C:\Users\USER\Desktop\scrapybook>vagrant up --no-parallel

C:/Users/USER/Desktop/scrapybook/Vagrantfile:4: warning: constant ::TRUE is depr

ecated (I don't know why it appeared) Bringing machine 'web' up with 'docker' provider... Bringing machine 'spark' up with 'docker' provider... Bringing machine 'es' up with 'docker' provider... Bringing machine 'redis' up with 'docker' provider... Bringing machine 'mysql' up with 'docker' provider... Bringing machine 'scrapyd1' up with 'docker' provider... Bringing machine 'scrapyd2' up with 'docker' provider... Bringing machine 'scrapyd3' up with 'docker' provider... Bringing machine 'dev' up with 'docker' provider... ==> web: Docker host is required. One will be created if necessary...

it stop here

peterceyu commented 6 years ago

I am having essentially same problem. I think the problem is with incompatible character encoding as can be seen in below print outs. And after spending hours on this, I don't know how to solve this issue. Help! scrapy error


web: docker-provider: importing base box 'lookfwd/scrapybook'... C:\HashiCorp\Vagrant\embedded\gems\gems\childprocess-0.6.3\lib\childprocess\windows\process_builder.rb:43:in 'join': incompatible character encodings: CP949 and UTF-8 (Encoding::CompatibilityError)

lookfwd commented 6 years ago

This is the right approach with Windows. The username is non-utf-8 and the relevant discussion is here.

lookfwd commented 6 years ago

They follow-up here. Essentially they say to not install vagrant etc. on directories that have non-english characters if I understand correctly.

leon0707 commented 5 years ago

/.../scrapybook/Vagrantfile:4: warning: constant ::TRUE is deprecated

Warning will disappear if replace TRUE with true