Difficulties when trying to build aepps

Hello my name is Goodness, i’m a computer science student at the university of jos Nigeria
I participated at the aeternity hackerthon conducted in the university of jos.I was introduced to building smart contract with the sophia language
I’ve been playing with the sophia syntax and i’ve encoutered alot of issues:
I can’t install the forgae tool and also the aeternity js sdk(for a node app) which keeps breaking
Hard to connect the browser sdk to our client side application
I need professional support at least a developer on the aeternity team who could help me and is avialable to help me solve this issues.
Here’s the github link to my dacade’s challenge GitHub - GoodnessEzeokafor/Dacade-Challenge: For This challenge i built a decentralized bucketlist app on the Aeternity Blockchain using Sophia
I’m having issues displaying the bucketlists i created on the blockchain on the client side
I want to begin development of a voting app which I want to deploy on the blockchain for Nigerian Universities but this current challenge is slowing me down

3 Likes

@vlad.chain Can you help with this pls

hey @Goodness, glad to have you around! As all the components are still very young, your insights will be very valuable to us. Let’s go step by step on multiple routes:

forgae : How did you try t install it and what were the results ?

JS-sdk : How did you try using it, where/in what context (nodejs?), and what were the difficulties ?

1 Like

Thanks for the reply
npm i -g forgae
C:\Users\goote_000\Documents\smart_contracts\contracts>npm i -g forgae
C:\Users\goote_000\AppData\Roaming\npm\forgae → C:\Users\goote_000\AppData\Roam
ing\npm\node_modules\forgae\forgae-cli.js

[email protected] install C:\Users\goote_000\AppData\Roaming\npm\node_modules\forg
ae\node_modules\argon2
node-gyp rebuild

C:\Users\goote_000\AppData\Roaming\npm\node_modules\forgae\node_modules\argon2>i
f not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\np
m\node_modules\npm-lifecycle\node-gyp-bin.…\node_modules\node-gyp\bin\node-
gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_mod
ules\node-gyp\bin\node-gyp.js” rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
C:\Users\goote_000\AppData\Roaming\npm\node_modules\forgae\node_modules\argon2
build\libargon2.vcxproj(20,3): error MSB4019: The imported project “C:\Microsof
t.Cpp.Default.props” was not found. Confirm that the path in the decla
ration is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:248:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\goote_000\AppData\Roaming\npm\node_modules\forgae\node_mod
ules\argon2
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\for
gae\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}
)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\goote_000\AppData\Roaming\npm-cache_logs\2019-07-10T22_50
_57_070Z-debug.log

C:\Users\goote_000\Documents\smart_contracts\contracts>npm install @Albert/ae
pp-sdk

[email protected] install C:\Users\goote_000\Documents\smart_contracts\contracts\n
ode_modules\argon2
node-gyp rebuild

C:\Users\goote_000\Documents\smart_contracts\contracts\node_modules\argon2>if no
t defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\no
de_modules\npm-lifecycle\node-gyp-bin.…\node_modules\node-gyp\bin\node-gyp.
js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules
\node-gyp\bin\node-gyp.js” rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
C:\Users\goote_000\Documents\smart_contracts\contracts\node_modules\argon2\buil
d\libargon2.vcxproj(20,3): error MSB4019: The imported project “C:\Microsoft.Cp
p.Default.props” was not found. Confirm that the path in the declarati
on is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:248:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\goote_000\Documents\smart_contracts\contracts\node_modules
\argon2
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\goote_000\Docu
ments\smart_contracts\contracts\package.json’
npm WARN contracts No description
npm WARN contracts No repository field.
npm WARN contracts No README data
npm WARN contracts No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}
)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\goote_000\AppData\Roaming\npm-cache_logs\2019-07-10T22_42
_04_453Z-debug.log

hey @martingrigorov.chain, doesn’t this or other parts of the error above sound like one needs to have some of microsoft’s .NET distributables installed or whatever? I work with mac and linux so no clue about this, do you maybe know ? If it’s any of that stuff, could you maybe add it as a side node in the forgae installation steps in your github readme and gitbook doc ?

Same thing for the SDK I think, maybe @shekhar-shubhendu knows ?

error MSB4019: The imported project “C:\Microsoft.Cp
p.Default.props” was not found. Confirm that the path in the declarati
on is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1

@Goodness could you try installing Microsoft .NET Framework 4.7.2 Offline-Installer für Windows - Microsoft-Support and give it one more try ?

It seems to be an issue on your local machine. I’ve never tried running all this on windows. Can you tell us your system configuration, that might help debugging it.

@nikitafuchs.chain @Goodness

I think we have saw an issue like this. The issue is with the argon library as far as I remember. The version of python that you use is probably 3.7? Can you try to downgrade the python version, to 2.7.* ?

We will keep investigating this.

Best,
Martin

1 Like

@Goodness do you have windows-build-tools installed?

@Goodness as pointed out by @martingrigorov.chain this seems like an issue with the argon2 library and windows. Since i don’t have a windows machine i’m unable to test it out.
can you(or someone with windows machine) please run this provide the results: npm install [email protected]

windows 8.1
npm 6.9.0
node 10.16.0
python2.7

i did and i got an error
C:\Users\goote_000\Documents\smart_contracts\new_aepps> npm install [email protected].
0

[email protected] install C:\Users\goote_000\Documents\smart_contracts\new_aepps\n
ode_modules\argon2
node-gyp-build

C:\Users\goote_000\Documents\smart_contracts\new_aepps\node_modules\argon2>if no
t defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\no
de_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.
js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules
\node-gyp\bin\node-gyp.js” rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
C:\Users\goote_000\Documents\smart_contracts\new_aepps\node_modules\argon2\buil
d\libargon2.vcxproj(20,3): error MSB4019: The imported project “C:\Microsoft.Cp
p.Default.props” was not found. Confirm that the path in the declarati
on is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:248:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\goote_000\Documents\smart_contracts\new_aepps\node_modules
\argon2
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\goote_000\Docu
ments\smart_contracts\new_aepps\package.json’
npm WARN new_aepps No description
npm WARN new_aepps No repository field.
npm WARN new_aepps No README data
npm WARN new_aepps No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\goote_000\AppData\Roaming\npm-cache_logs\2019-07-13T18_52
_42_589Z-debug.log

C:\Users\goote_000\Documents\smart_contracts\new_aepps>

i’ve tried that, and i got that error

So i finally installed the sdk and forgae this morning
i had to install visual studio 2017
thanks alot for your help

visual studio 2017 did the trick

2 Likes

@Goodness so probably visual studio 2017 has installed some configurations that help on this… Great!

3 Likes

Is someone around who can help me with running a node on an amazon aws ec2? I think i finally managed to raise ulimit but i think i can not start the node in a way that it is reachable from public (i’ve tried ./bin/aeternity start and then i tried to query the top with the ip of my server but that times out so i guess its not running curl http://18.222.106.194:3013/v2/blocks/top ) - do i have to open the 3013 port somewhere on Amazon to make it possible to query it?
Shareit Vidmate APk