g3w-suite / g3w-client

Map viewer addon for G3W-SUITE
https://g3w-suite.readthedocs.io/en/latest/g3wsuite_client.html
Mozilla Public License 2.0
20 stars 17 forks source link

ubuntu 16.04 problem with the installation #1

Closed enzococca closed 6 years ago

enzococca commented 6 years ago
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.3
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.3
npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.3
npm WARN karma-chai@0.1.0 requires a peer of chai@* but none was installed.
npm WARN karma-requirejs@1.1.0 requires a peer of requirejs@^2.1.0 but none was installed.
npm WARN generator-browserify@0.4.1 requires a peer of yo@>=1.0.0 but none was installed.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none was installed.
npm WARN g3w-client@0.0.1 license should be a valid SPDX license expression
volterra79 commented 6 years ago

Hi @enzococca , it seems that are just npm warning messages related to optional packages installation and not blocking errors. Which is your npm version? Can you follow all steps of the installation and let me know. Thanks

enzococca commented 6 years ago

npm 3.5.2

enzo@enzo-VirtualBox:~/g3w-client$ npm install npm WARN deprecated gulp-minify-css@1.2.4: Please use gulp-clean-css npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated gulp-clean-css@2.4.0: breaking changes from clean-css 4.x. Please install gulp-clean-css 3.x loadDevDep:yargs → fetch ▄ ╢████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine webpack-dev-middleware@2.0.6: wanted: {"node":">=6"} (current: {"nodloadDevDep:yargs → addTmp ▐ ╢████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine webpack-dev-server@2.11.2: wanted: {"node":">=4.7"} (current: {"nodeloadDevDep:yargs → get ▄ ╢████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine webpack@3.11.0: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (currentnpm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select' npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what' npm WARN deprecated simple-bufferstream@0.0.4: no longer maintained loadDep:uuid → addNamed ▀ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine hawk@6.0.2: wanted: {"node":">=4.5.0"} (current: {"node":"4.2.6","npnpm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated formatio@1.2.0: This package is unmaintained. Use @sinonjs/formatio instead loadDep:resolve-url → 200 ▀ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine atob@2.1.1: wanted: {"node":">= 4.5.0"} (current: {"node":"4.2.6","nnpm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated natives@1.1.3: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x. npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead. npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead loadDep:webpack-sources → ▀ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine loader-runner@2.3.0: wanted: {"node":">=4.3.0 <5.0.0 ||

=5.10"} (current: {"node":"4.2.6","npm":"3.5.2"}) WARN engine enhanced-resolve@3.4.1: wanted: {"node":">=4.3.0 <5.0.0 || =5.10"} loadDep:webpack-sources → ▐ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine uglifyjs-webpack-plugin@0.4.6: wanted: {"node":">=4.3.0 <5.0.0 || >=loadDep:uri-js → afterAdd ▐ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine punycode@2.1.0: wanted: {"node":">=6"} (current: {"node":"4.2.6","nploadDep:webpack-log → 304 ▄ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine webpack-log@1.2.0: wanted: {"node":">=6"} (current: {"node":"4.2.6",loadDep:uuid → 200 ▀ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine loglevelnext@1.0.5: wanted: {"node":">= 6"} (current: {"node":"4.2.6 uws@9.14.0 install /home/enzo/g3w-client/node_modules/uws node-gyp rebuild > build_log.txt 2>&1 || exit 0

spawn-sync@1.0.15 postinstall /home/enzo/g3w-client/node_modules/spawn-sync node postinstall

uglifyjs-webpack-plugin@0.4.6 postinstall /home/enzo/g3w-client/node_modules/uglifyjs-webpack-plugin node lib/post_install.js

Il giorno mer 2 mag 2018 alle ore 16:11 Francesco Boccacci < notifications@github.com> ha scritto:

Hi Enzo, it seems that are just npm warning messages and not error. Which is your npm version? Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/g3w-suite/g3w-client/issues/1#issuecomment-385991263, or mute the thread https://github.com/notifications/unsubscribe-auth/ADT-qMFsNicMWWixIEvEpPYG-zcPw1Ywks5tub6FgaJpZM4Tvevj .

-- Enzo Cocca PhD in "Science and Technology for Archaeology and Cultural Heritage" mail: enzo.ccc@gmail.com cell: +393495087014

enzococca commented 6 years ago

it says npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.3 do you have the same warning?

volterra79 commented 6 years ago

@enzococca please ignore WARNING message for now and follow all the installation steps. The package.json file contains some package not used for now. I''ll provide to clean up all unused pagaes. Please le me know if the last step "gulp default" it run without isses. Thanks

volterra79 commented 6 years ago

@enzococca same Warning because it is an optional package that can be installed only on OSX.

enzococca commented 6 years ago

ok I will try and than I will say you

enzococca commented 6 years ago

when try to gulp default;

~/g3w-client$ gulp default Comando "gulp" non trovato. Forse si intendeva: Comando "gslp" dal pacchetto "ghostscript" (main) gulp: comando non trovato

volterra79 commented 6 years ago

@enzococca i changed Readme and package.json. The issue is referred to a gulp package installation. I have a gulp globally so i can run gulp from any path. Now if you follow the documentation you can find a new command "npm run default" that wiull run gulp deafult using loally gulp installation inside /node_modules/: Please let me know

enzococca commented 6 years ago

enzo@enzo-VirtualBox:~/g3w-client$ npm run default npm ERR! Linux 4.13.0-39-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "default" npm ERR! node v4.2.6 npm ERR! npm v3.5.2

npm ERR! missing script: default npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /home/enzo/g3w-client/npm-debug.log

volterra79 commented 6 years ago

@enzococca did you pull changes?

enzococca commented 6 years ago

I followed the documentation in readme. so wich changes?

volterra79 commented 6 years ago

@enzococca you have to run : git pull from g3w-client folder to get repository changes, I update package.json file

enzococca commented 6 years ago

ah ok no. I will try

Il giorno mer 2 mag 2018 alle ore 18:30 Francesco Boccacci < notifications@github.com> ha scritto:

@enzococca https://github.com/enzococca you have to run : git pull from g3w-client folder to get repository changes, I update package.json file

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/g3w-suite/g3w-client/issues/1#issuecomment-386039055, or mute the thread https://github.com/notifications/unsubscribe-auth/ADT-qK4IcdgetcpEPsx7WmJDjruh15qeks5tud8WgaJpZM4Tvevj .

-- Enzo Cocca PhD in "Science and Technology for Archaeology and Cultural Heritage" mail: enzo.ccc@gmail.com cell: +393495087014

enzococca commented 6 years ago

enzo@enzo-VirtualBox:~/g3w-client$ npm run default

g3w-client@0.0.1 default /home/enzo/g3w-client gulp default

/home/enzo/g3w-client/gulpfile.js:45 let production = false; ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Liftoff.handleArguments (/home/enzo/g3w-client/node_modules/gulp/bin/gulp.js:116:3) at Liftoff.execute (/home/enzo/g3w-client/node_modules/liftoff/index.js:203:12) at module.exports (/home/enzo/g3w-client/node_modules/flagged-respawn/index.js:51:3)

npm ERR! Linux 4.13.0-39-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "default" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! g3w-client@0.0.1 default: gulp default npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the g3w-client@0.0.1 default script 'gulp default'. 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 g3w-client package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! gulp default npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs g3w-client npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls g3w-client npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/enzo/g3w-client/npm-debug.log

enzococca commented 6 years ago

In the first installation I need to install in var/www? maybe this is the problem?

volterra79 commented 6 years ago

@enzococca is a problem of node version. Which is your node version? I have installed v8.11.1

enzococca commented 6 years ago

yes I believe this is the problem. I have 4.2, but in Linux is the last version. I need to update manually

Il giorno mer 2 mag 2018 alle ore 19:20 Francesco Boccacci < notifications@github.com> ha scritto:

@enzococca https://github.com/enzococca is a problem of node version. Which is your node version? I have installed v8.11.1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/g3w-suite/g3w-client/issues/1#issuecomment-386054332, or mute the thread https://github.com/notifications/unsubscribe-auth/ADT-qF9dbhnEf2NqY4nRasiyhY-aDxAzks5tuer0gaJpZM4Tvevj .

-- Enzo Cocca PhD in "Science and Technology for Archaeology and Cultural Heritage" mail: enzo.ccc@gmail.com cell: +393495087014

volterra79 commented 6 years ago

@enzococca. Please let me know if you can install new node version, otherwise i 'll change the code

enzococca commented 6 years ago

ok I managed to install but using this method: 1- in the folder where I put g3w-client I given this comand: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash 2- nvm install lts/* (to install the last version of nodejs) 3- npm install

  1. npm default run

but now I have a problem; the port :3000 work but I cant see nothing the port 8000 have the error: { Error: connect ECONNREFUSED 127.0.0.1:8000 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect',

and if try the comand nmp run g3w-admin;

npm ERR! missing script: g3w-admin

address: '127.0.0.1', port: 8000 }

volterra79 commented 6 years ago

@enzococca . Now the client works. Now you have to install the ther server (you can find here https://github.com/g3w-suite/g3w-admin). After install the admin , you have to change the config file of the g3w-client (config.js in main folder). Please let me know. Thanks

wlorenzetti commented 6 years ago

Hi Enzo,

g3w-client is the 'raw' developing client, not compiled.

For use it, you have to clone also g3w-admin (main suite app) the main Django server suite app and run following the README.

W

Il 03/05/2018 09:34, enzo ha scritto:

ok I managed to install but using thi method: 1- in the folder where I g3w-client I given this comand: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash^C 2- nvm install lts/* (to install the last version of nodejs) 3- npm install

  1. npm default run

but now I have a problem; the port :3000 work but I cant see nothing the port 8000 have the error: { Error: connect ECONNREFUSED 127.0.0.1:8000 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect',

and if try the comand nmp run g3w-admin;

npm ERR! missing script: g3w-admin

address: '127.0.0.1', port: 8000 }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/g3w-suite/g3w-client/issues/1#issuecomment-386213221, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMAyS3Sb4QTHqni1F9zOqbeGa2bJNnVks5turMHgaJpZM4Tvevj.

--

Walter Lorenzetti phD email: lorenzetti@gis3w.it skype: aiki74 twitter:w_lorenzetti https://twitter.com/w_lorenzetti g+:aiki74 https://plus.google.com/117055903318462447104/ Tel/Cell: (+39) 347-6597931 Viale Verdi 24 - 51016 Montecatini Terme (PT) Nuovi corsi QGIS e GFOSS http://gis3w.it/it/calendario-corsi-software-geografici

enzococca commented 6 years ago

Ciao Walter yesssss!!! Ok I will try and let ypu know

enzococca commented 6 years ago

the path to virtualenvs directory is the path where I have di g3w-admin folder? export WORKON_HOME=

volterra79 commented 6 years ago

@enzococca this is referred to admin part installatio. Check http://virtualenvwrapper.readthedocs.io/en/latest/install.html. WORKON_HOME is the directory here you want to install your virtualenv. For example:
1)mkdir /home/enzo/virtualenvs (create a folder wher you store all your virtualenvs) 2)from /home/enzo type nano .bashrc 3)At the and of the file write and save export WORKON_HOME=/home/enzo/vitualenvs source /usr/local/bin/virtualenvwrapper.sh 4) source ~/.bashrc (to reaload) 5) Create vitualenv (follow https://github.com/g3w-suite/g3w-admin steps)

enzococca commented 6 years ago

thanks a lot Francesco.

So my installation has been very well but i cant connect to server and if I try npm run g3w-admin he says missing scripts

(g3wsuite) enzo@enzo-VirtualBox:/var/www/g3w-client$ npm run default

g3w-client@0.0.1 default /var/www/g3w-client gulp default

[11:43:43] Using gulpfile /var/www/g3w-client/gulpfile.js [11:43:43] Starting 'serve'... [11:43:43] Starting 'clean'... [11:43:43] Finished 'clean' after 29 ms [11:43:43] Starting 'browserify'... [11:43:52] Finished 'browserify' after 8.58 s [11:43:52] Starting 'fonts'... [11:43:52] Starting 'images'... [11:43:52] Starting 'less-skins'... [11:43:52] Starting 'datatable-images'... [11:43:52] Starting 'watch'... [11:43:52] Finished 'watch' after 87 ms [11:43:52] Starting 'plugins'... [11:43:52] Starting 'plugins-less-skin'... [11:43:52] Finished 'plugins' after 11 ms [11:43:52] Finished 'plugins-less-skin' after 11 ms [11:43:52] Finished 'images' after 616 ms [11:43:52] Finished 'datatable-images' after 636 ms [11:43:53] Finished 'fonts' after 929 ms [11:43:53] Starting 'less'... [11:43:53] Finished 'less' after 435 ms [11:43:53] Finished 'less-skins' after 1.48 s [11:43:53] Starting 'assets'... [11:43:53] Finished 'assets' after 31 μs [11:43:53] Starting 'browser-sync'... [11:43:53] Finished 'browser-sync' after 13 ms [11:43:53] Finished 'serve' after 10 s [11:43:53] Starting 'default'... [11:43:53] Finished 'default' after 2.17 μs [Browsersync] Access URLs:

   Local: http://localhost:3000/
External: http://10.0.2.15:3000/

      UI: http://localhost:3001

UI External: http://10.0.2.15:3001

[Browsersync] Serving files from: src [Browsersync] Serving files from: . [11:44:03] { Error: connect ECONNREFUSED 127.0.0.1:8000 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 8000 }

volterra79 commented 6 years ago

@enzococca the last step from server side (g3w-admin) is to run development webserver. From main g3w-admin folder you have to type: 1) cd g3w-admin 2) python manage.py runserver (default run on port 8000) Please let me know

enzococca commented 6 years ago

ok the server run now two question: 1- to use qgis client I must publish a project? (becpuse if run localhost:3000 I have error)

2- i can publish only project qgis2x or I can use also qgis3x? thanks a lot

Il giorno gio 3 mag 2018 alle ore 11:53 Francesco Boccacci < notifications@github.com> ha scritto:

@enzococca https://github.com/enzococca the last step from server side (g3w-admin) is to run development webserver. From main g3w-admin folder you have to type:

  1. cd g3w-admin
  2. python manage.py runserver (default run on port 8000) Please let me know

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/g3w-suite/g3w-client/issues/1#issuecomment-386244627, or mute the thread https://github.com/notifications/unsubscribe-auth/ADT-qAx5KeM0eJzGNddjUKw7VfW3ndjKks5tutOlgaJpZM4Tvevj .

-- Enzo Cocca PhD in "Science and Technology for Archaeology and Cultural Heritage" mail: enzo.ccc@gmail.com cell: +393495087014

volterra79 commented 6 years ago

@enzococca Yes. You have to publish a qgis project (2.x for now). After that you can do 2 things: 1) use development client (localhost:3000) and in the url you have to type: http://localhost:3000/?project=// example http://localhost:3000/?project=testgroup/qdjango/1 2) npm run admin (compile client adn put all files inside client folder of g3w-dmin) and from admin click on map icon of the project