Author Topic: Building the light wallet  (Read 2739 times)

0 Members and 1 Guest are viewing this topic.

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
I got a lot of error´s on ubuntu 14.04

1. apt-get install npm
2. create user bitshares:bitshares with home directory and cd to it
3. git clone https://github.com/cryptonomex/graphene-ui
4. cd graphene-ui
5. for I in cli dl web; do cd $I; npm install; cd ..; done  (errors without an end)


Here are my steps:

1. apt-get install npm nodejs-legacy
2. git clone https://github.com/bitshares-2-ui/bitshares-2-ui (for bitshares2, otherwise graphene-ui)
3. cd bitshares-2-ui
4. for I in cli dl web; do cd $I; npm install; cd ..; done  (this works for me, otherwise try commands below)
cd cli
npm install
cd ..
cd dl
npm install
cd ..
cd web
npm install
npm run-script build
x-www-browser dist/index.html

if you want to build the electron (chromium) based browser:
cd electron
npm install
cp -a ../web/dist/* build/
npm start
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline fubly

  • Newbie
  • *
  • Posts: 9
  • this is fubly
    • View Profile
I got a lot of error´s on ubuntu 14.04

1. apt-get install npm
2. create user bitshares:bitshares with home directory and cd to it
3. git clone https://github.com/cryptonomex/graphene-ui
4. cd graphene-ui
5. for I in cli dl web; do cd $I; npm install; cd ..; done  (errors without an end)

trying this: $
Code: [Select]
npm cache clean
for this error:
Code: [Select]
code ENOENT npm ERR! errno 34
next run: /home/bitshares/graphene-ui/web# npm install

no solution.


Code: [Select]
npm WARN engine hawk@3.1.0: wanted: {"node":">=0.10.32"} (current: {"node":"v0.10.25","npm":"1.3.10"})

[u]and this:[/u]
sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

and this:

Code: [Select]
Error: ENOENT, lstat '/home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/node-gyp/lib/node-gyp.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/node-gyp/lib/node-gyp.js
npm ERR! fstream_path /home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/node-gyp/lib/node-gyp.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)

and this:

Code: [Select]
npm ERR! weird error 127
npm ERR! tar pack Error reading /root/tmp/npm-23270-KPH76_g-/1444864191012-0.3928379153367132/package
npm ERR! Error: ENOENT, lstat '/root/tmp/npm-23270-KPH76_g-/1444864193323-0.8836790595669299/package/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /root/tmp/npm-23270-KPH76_g-/1444864193323-0.8836790595669299/package/index.js
npm ERR! fstream_path /root/tmp/npm-23270-KPH76_g-/1444864193323-0.8836790595669299/package/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! addLocalDirectory Could not pack "/root/tmp/npm-23270-KPH76_g-/1444864191012-0.3928379153367132/package" to "/root/.npm/mime-db/1.19.0/package.tgz"
npm ERR! Error: ENOENT, open '/root/tmp/npm-23270-KPH76_g-/1444864192744-0.88031668914482/package/test/misc.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /root/tmp/npm-23270-KPH76_g-/1444864192744-0.88031668914482/package/test/misc.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, lstat '/home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/request/node_modules/bl/node_modules/readable-stream/doc/stream.markdown'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/request/node_modules/bl/node_modules/readable-stream/doc/stream.markdown
npm ERR! fstream_path /home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/request/node_modules/bl/node_modules/readable-stream/doc/stream.markdown
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/request/node_modules/hawk/test/browser.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/request/node_modules/hawk/test/browser.js
npm ERR! fstream_path /home/bitshares/graphene-ui/web/node_modules/node-sass/node_modules/request/node_modules/hawk/test/browser.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/root/tmp/npm-23270-KPH76_g-/1444864191726-0.015600745566189289/package/tools/jsstyle'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /root/tmp/npm-23270-KPH76_g-/1444864191726-0.015600745566189289/package/tools/jsstyle
npm ERR! fstream_path /root/tmp/npm-23270-KPH76_g-/1444864191726-0.015600745566189289/package/tools/jsstyle
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, open '/root/tmp/npm-23270-KPH76_g-/1444864154426-0.008865738520398736/package/dist/cjs/handlebars/helpers/block-helper-missing.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

Code: [Select]
npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /root/tmp/npm-23270-KPH76_g-/1444864154426-0.008865738520398736/package/dist/cjs/handlebars/helpers/block-helper-missing.js
npm ERR! code ENOENT
npm ERR! errno 34


and this:

Code: [Select]
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-042stab092.3
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/bitshares/graphene-ui/web/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

Code: [Select]
npm ERR! Error: ENOENT, lstat '/home/bitshares/graphene-ui/web/node_modules/jest-cli/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

Code: [Select]
npm ERR! System Linux 3.13.0-042stab092.3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitshares/graphene-ui/web
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/bitshares/graphene-ui/web/node_modules/jest-cli/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js
npm ERR! fstream_path /home/bitshares/graphene-ui/web/node_modules/jest-cli/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)


and this:

Code: [Select]
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm WARN engine boom@2.9.0: wanted: {"node":">=0.10.40"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"v0.10.25","npm":"1.3.10"})

last error:

Code: [Select]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/bitshares/graphene-ui/web/npm-debug.log
npm ERR! not ok code 0

thx for help




Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
proctologic@ubuntu:~$ graphene
[5214:1013/171559:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[5214:1013/171600:ERROR:browser_main_loop.cc(237)] Gtk: cannot open display:
proctologic@ubuntu:~$ [5216:0100/000000:ERROR:zygote_linux.cc(612)] write: Broken pipe

I think the graphene testnet servers aren't up any more, you have to use the new bitshares-2 version. That's in a different PPA
Code: [Select]
apt-add-repository ppa:showard314/bitshares
apt-get install bitshares2
bitshares2
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline proctologic

  • Full Member
  • ***
  • Posts: 58
    • View Profile
proctologic@ubuntu:~$ graphene
[5214:1013/171559:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[5214:1013/171600:ERROR:browser_main_loop.cc(237)] Gtk: cannot open display:
proctologic@ubuntu:~$ [5216:0100/000000:ERROR:zygote_linux.cc(612)] write: Broken pipe

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
do you know, whether deb package will be prepared for ubuntu and debian?

Yes, if the worker is approved (debian and ubuntu)
For now you can get a pre-release version by:

Code: [Select]
sudo apt-add-repository ppa:showard314/ppa
sudo apt-get update
sudo apt-get install graphene-ui
graphene

the cli_wallet and witness_node binaries are in the graphene package
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline noisy

do you know, whether deb package will be prepared for ubuntu and debian?
Take a look on: https://bitsharestalk.org/index.php/topic,19625.msg251894.html - I have a crazy idea - lets convince cryptonomex developers to use livecoding.tv

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
figured it out:
first in web/, build the app with "npm run-script build"
then copy everything from web/dist to electron/build
then you can go to electron/ and do "npm start"
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
From:
https://github.com/cryptonomex/graphene-ui

I'm trying out the electron build on linux (ubuntu 14.10). How is cryptonomex generating the windows and mac builds?

When using the start script, an an empty electron window pops up and does nothing (just white on the inside frame, no web page loaded).

When I used the release script (release_linux.js), a .deb is created. When installed, it behaves the same way.
I don't want to take away from development, but if I could get a hint as to how it is supposed to be built I can look at getting out linux binaries.

The web wallet works fine, looks great. I don't see much of a benefit to a web gui package as it's just as easy for someone to "git clone" "npm install" and "npm start," but the light client would have a wider use-case interesting.
« Last Edit: October 10, 2015, 06:07:44 pm by maqifrnswa »
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true