Hi,
I have been trying to install Qiime 2 studio on my Windows 10 computer using Ubuntu. On the final step trying to launch the Interface using nmp start this Message was recieved.
q2studio@2019.1.0 start /home/charlottenilsen/q2studio-2019.1.0
cross-env NODE_ENV=production electron -r babel-register build/main.js
/home/charlottenilsen/q2studio-2019.1.0/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! q2studio@2019.1.0 start: cross-env NODE_ENV=production electron -r babel-register build/main.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the q2studio@2019.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/charlottenilsen/.npm/_logs/2019-02-12T09_43_40_409Z-debug.log
I have tried reinstalling, do you have any other suggestions?
Hey there @charlotte.nilsen! Are you using Ubuntu 18.04 on the Windows Subsystem for Linux (WSL)? I just recently upgrading our Virtualbox images from Ubuntu 16.04 to 18.04 and learned that there were a few dependencies that Ubuntu used to ship with, but doesn't as of 18.04:
q2studio@2019.1.0 start /home/charlottenilsen/q2studio-2019.1.0
cross-env NODE_ENV=production electron -r babel-register build/main.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! q2studio@2019.1.0 start: cross-env NODE_ENV=production electron -r babel-register build/main.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the q2studio@2019.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/charlottenilsen/.npm/_logs/2019-02-13T13_27_12_964Z-debug.log
Hi,
tried to start q2studio today, but the error message has changed:
(qiime2-2019.1) charlottenilsen@AAS-8QGRNR2:~/q2studio-2019.1.0$ sudo npm start
[sudo] password for charlottenilsen:
q2studio@2019.1.0 start /home/charlottenilsen/q2studio-2019.1.0
cross-env NODE_ENV=production electron -r babel-register build/main.js
npm ERR! Linux 4.4.0-17763-Microsoft
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! q2studio@2019.1.0 start: cross-env NODE_ENV=production electron -r babel-register build/main.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the q2studio@2019.1.0 start script 'cross-env NODE_ENV=production electron -r babel-register build/main.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the q2studio package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production electron -r babel-register build/main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs q2studio
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls q2studio
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/charlottenilsen/q2studio-2019.1.0/npm-debug.log
Any solutions to this: npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production electron -r babel-register build/main.js
Here is the debug log:
(qiime2-2019.1) charlottenilsen@AAS-8QGRNR2:~/q2studio-2019.1.0$ cat /home/charlottenilsen/q2studio-2019.1.0/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@3.5.2
3 info using node@v8.10.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle q2studio@2019.1.0~prestart: q2studio@2019.1.0
6 silly lifecycle q2studio@2019.1.0~prestart: no script for prestart, continuing
7 info lifecycle q2studio@2019.1.0~start: q2studio@2019.1.0
8 verbose lifecycle q2studio@2019.1.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle q2studio@2019.1.0~start: PATH: /usr/share/npm/bin/node-gyp-bin:/home/charlottenilsen/q2studio-2019.1.0/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
10 verbose lifecycle q2studio@2019.1.0~start: CWD: /home/charlottenilsen/q2studio-2019.1.0
11 silly lifecycle q2studio@2019.1.0~start: Args: [ '-c',
11 silly lifecycle 'cross-env NODE_ENV=production electron -r babel-register build/main.js' ]
12 silly lifecycle q2studio@2019.1.0~start: Returned: code: 1 signal: null
13 info lifecycle q2studio@2019.1.0~start: Failed to exec start script
14 verbose stack Error: q2studio@2019.1.0 start: cross-env NODE_ENV=production electron -r babel-register build/main.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at EventEmitter.emit (events.js:214:7)
14 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at ChildProcess.emit (events.js:214:7)
14 verbose stack at maybeClose (internal/child_process.js:925:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid q2studio@2019.1.0
16 verbose cwd /home/charlottenilsen/q2studio-2019.1.0
17 error Linux 4.4.0-17763-Microsoft
18 error argv "/usr/bin/node" "/usr/bin/npm" "start"
19 error node v8.10.0
20 error npm v3.5.2
21 error code ELIFECYCLE
22 error q2studio@2019.1.0 start: cross-env NODE_ENV=production electron -r babel-register build/main.js
22 error Exit status 1
23 error Failed at the q2studio@2019.1.0 start script 'cross-env NODE_ENV=production electron -r babel-register build/main.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the q2studio package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error cross-env NODE_ENV=production electron -r babel-register build/main.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs q2studio
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls q2studio
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Sorry I didn't pick up on this in the initial post.
q2studio will not be able to start because there is not a corresponding X server for it to communicate with (this is how graphics show up on Linux typically). WSL is essentially a "headless" environment, which will work fine for almost anything as long as you don't attempt to draw a graphical UI.
This guide suggests it may be possible to run GUIs on WSL after some tinkering:
But I don't know how well that will work as I haven't tried it myself.
Are you familiar with X-forwarding or is this all new? It would be a good learning oppurtunity, however don't get discouraged if it doesn't seem to be working as X servers and forwarding X sessions is a really complicated thing that even a lot of programmers are unfamiliar with.
Another option would include using VirtualBox (which conflicts with the Hyper V system that WSL uses, so you could only use one or the other between system restarts).