Skip to content

在cloud9中运行wechaty报错 #67

@lijiarui

Description

@lijiarui

steps:

1.click the button you gave in readme to open in cloud9

2.install node in cloud9:

curl https://raw.githubusercontent.com/creationix/nvm/v0.11.1/install.sh | bash
nvm install 6
sudo apt-get update

3.run wechaty:

npm install
npm run demo

encounter following error message:

INFO Wechaty v#git[461dc84 code clean] initializing...
WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium

then I tried following steps to install:

1.I thought maybe I didn't install google-chrome, then I test as follows:

lijiarui:~/workspace (master) $ google-chrome --version
bash: google-chrome: command not found

then , I run your script: "install-chrome-linux.sh "

lijiarui:~/workspace/script (master) $ bash install-chrome-linux.sh 
...
Building dependency tree       
Reading state information... Done
E: Unable to locate package google-chrome-stable
install-chrome-linux.sh: line 12: google-chrome: command not found

It seems I failed to install chrome, then I tried following steps to install chrome:

sudo apt-get update
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -f

It seems success:

lijiarui:~/workspace/script (master) $ google-chrome --version
Google Chrome 54.0.2840.71 

then " npm run demo"

occurs the same I have showed above...

2.I guess maybe I should set headless right for Xvfb
then I run your script "xvfb.sh "

lijiarui:~/workspace/script (master) $ bash xvfb.sh 
...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Xvfb installed
export DISPLAY=:99.0
Xvfb started

export DISPLAY=:99.0
Xvfb ready.
lijiarui:~/workspace/script (master) $ export DISPLAY=:99.0

then " npm run demo"

occurs the same I have showed above...

At last I open the log to run demo , error log as follows:

WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium

Need your help badly....
Thanks..

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions