amazon-connect / ai-powered-speech-analytics-for-amazon-connect

The AI Powered Speech Analytics for Amazon Connect solution provides the combination of speech to text transcription, translation into preferred languages, and insights for agents and supervisors all in real-time
https://aws.amazon.com/solutions/implementations/ai-powered-speech-analytics-for-amazon-connect/
Other
55 stars 54 forks source link

Build fails with 'manifest-generator: No such file or directory' #39

Open gevial opened 2 years ago

gevial commented 2 years ago

I cloned the repo (tag v1.1.2) and followed the instructions in README to build distributable for customisation, got the following error:

./build-s3-dist.sh: line 262: cd: /Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/deployment/../source/../deployment/manifest-generator: No such file or directory

After that the build failed with this:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/source/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/source/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Gennadii_Aleksandrov/.npm/_logs/2022-08-12T16_47_09_881Z-debug-0.log
node:internal/modules/cjs/loader:959
  throw err;
  ^

Error: Cannot find module '/Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/source/app.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
    at Module._load (node:internal/modules/cjs/loader:804:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.7.0
rhamnett commented 2 years ago

Same issue

rhamnett commented 2 years ago

@gevial I coped manifest-generator from here:

https://github.com/aws-solutions/real-time-insights-account-activity/tree/master/deployment/manifest-generator

then edited the build file line 264: node app.js --target "$build_dist_dir/web_site" --output "$build_dist_dir/web-site-manifest.json"

Hope that helps.