i just create new hello_world_fibonacci
$ stack new haskellfib simple
and get next message
Downloading template "simple" to create project "haskellfib" in haskellfib/ ...
The following parameters were needed by the template but not provided: author-name
You can provide them in /home/user/.stack/config.yaml, like this:
templates:
params:
author-name: value
Or you can pass each one as parameters like this:
stack new haskellfib simple -p "author-name:value"
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /home/user/.stack/config.yaml, like this:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: value
Or you can pass each one as parameters like this:
stack new haskellfib simple -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- haskellfib/
Selecting the best among 16 snapshots...
Downloading lts-14.1 build plan ...
RedownloadInvalidResponse Request {
host = "raw.githubusercontent.com"
port = 443
secure = True
requestHeaders = []
path = "/fpco/lts-haskell/master//lts-14.1.yaml"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
"/home/user/.stack/build-plan/lts-14.1.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'; sandbox"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","1; mode=block"),("X-GitHub-Request-Id","8D1A:6A24:D2FA6:11AF88:5D58C6D9"),("Content-Length","15"),("Accept-Ranges","bytes"),("Date","Sun, 18 Aug 2019 03:32:42 GMT"),("Via","1.1 varnish"),("Connection","keep-alive"),("X-Served-By","cache-hhn4053-HHN"),("X-Cache","MISS"),("X-Cache-Hits","0"),("X-Timer","S1566099162.021944,VS0,VE137"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","ec29716cf18bc8d965b29000ecf4622037c6f27c"),("Expires","Sun, 18 Aug 2019 03:37:42 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})
what means this message and what to do?
Stack version
$ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1
Method of installation
- Official binary, downloaded from stackage.org or fpcomplete’s package repository
wget -qO- https://get.haskellstack.org/ | sh
Overview of the issue
The JDL generator fails on simple Cassandra and Postgres apps.
In the console looks like an issue on https://raw.githubusercontent.com site.
Motivation for or Use Case
This is the default JDL execution.
Reproduce the error
Step 1. create an empty cassandra project.
? Which type of application would you like to create? Monolithic application (recommended for simple projects)
? What is the base name of your application? jhipster
? Do you want to make it reactive with Spring WebFlux? No
? What is your default Java package name? com.mycompany.myapp
? Which type of authentication would you like to use? JWT authentication (stateless, with a token)
? Which type of database would you like to use? Cassandra
? Which cache do you want to use? (Spring cache abstraction) No cache — Warning, when using an SQL database, this will disable the Hibernate 2nd level cache!
? Would you like to use Maven or Gradle for building the backend? Maven
? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
? Which other technologies would you like to use?
? Which Framework would you like to use for the client? Angular
? Do you want to generate the admin UI? Yes
? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Default JHipster
? Would you like to enable internationalization support? No
? Please choose the native language of the application English
? Besides JUnit and Jest, which testing frameworks would you like to use? Gatling, Cucumber
? Would you like to install other generators from the JHipster Marketplace? No
Step 2. add the following jhipster-jdl.jdl with this content:
entity Employee {
firstName String,
lastName String,
email String,
phoneNumber String,
hireDate Instant,
salary Long,
commissionPct Long
}
Step 3. Run entity generator
C:Tempjhipster-cassandra>jhipster jdl jhipster-jdl.jh
INFO! Using JHipster version installed locally in current project’s node_modules
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/jhipster-jdl.jh
INFO! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/v7.1.0/jhipster-jdl.jh: 404 — Not Found
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh
ERROR! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh: 404 — Not Found
Error: Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh: 404 — Not Found
at ClientRequest. (C:Tempjhipster-cassandranode_modulesgenerator-jhipsterclidownload.js:33:25)
at Object.onceWrapper (events.js:483:26)
at ClientRequest.emit (events.js:376:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:647:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:376:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at TLSSocket.Readable.push (internal/streams/readable.js:223:10)
Related issues
Suggest a Fix
no idea.
JHipster Version(s)
7.1.0
7.2.0
both on windows laptops.
JHipster configuration
JHipster configuration, a .yo-rc.json
file generated in the root folder
.yo-rc.json file
{ "generator-jhipster": { "applicationType": "monolith", "baseName": "jhipster", "jhipsterVersion": "7.1.0", "skipClient": false, "skipServer": false, "skipUserManagement": false, "skipCheckLengthOfIdentifier": false, "skipFakeData": false, "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "testFrameworks": ["gatling", "cucumber"], "blueprints": [], "otherModules": [], "pages": [], "creationTimestamp": 1632472163474, "serviceDiscoveryType": false, "reactive": false, "authenticationType": "jwt", "packageName": "com.mycompany.myapp", "serverPort": "8080", "cacheProvider": "no", "enableHibernateCache": false, "databaseType": "cassandra", "buildTool": "maven", "serverSideOptions": [], "websocket": false, "searchEngine": false, "messageBroker": false, "enableSwaggerCodegen": false, "clientFramework": "angularX", "withAdminUi": true, "clientTheme": "none", "enableTranslation": false, "nativeLanguage": "en", "packageFolder": "com/mycompany/myapp", "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons", "devDatabaseType": "cassandra", "prodDatabaseType": "cassandra", "devServerPort": 4200, "clientPackageManager": "npm", "clientThemeVariant": "", "languages": ["en", "fr"] } }
JDL for the Entity configuration(s) entityName.json
files generated in the .jhipster
directory
No files generated in the directory .jhipster
Environment and Tools
java version «11.0.11» 2021-04-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode)
git version 2.32.0.windows.2
node: v14.17.0
npm: 6.14.13
Docker version 19.03.12, build 48a66213fe
docker-compose version 1.26.2, build eefe0d31
No change to package.json was detected. No package manager install will be executed.
Entity configuration(s) entityName.json
files generated in the .jhipster
directory
Unfortunatelly the entities are not created.
The .jhipster directory is empty.
Browsers and Operating System
Windows.
Latest Chrome.
- [ x] Checking this box is mandatory (this is just to show you read everything)
Hi all. I’m just getting started. Following the instructions here I got 404 errors on a few of the files, causing further failures in the script, pasted below.
As a side note, is there no support for preformatted text in this forum?
nao@life-server:~/movidius/mvncsdk/ncapi$ ./setup.sh
[sudo] password for nao:
Selecting previously unselected package mvnc.
(Reading database … 210759 files and directories currently installed.)
Preparing to unpack redist/mvnc_1.07_amd64.deb …
Unpacking mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Selecting previously unselected package mvnc-dev.
Preparing to unpack redist/mvnc-dev_1.07_amd64.deb …
Unpacking mvnc-dev (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Selecting previously unselected package python3-mvnc.
Preparing to unpack …/python3-mvnc_1.07_all.deb …
Unpacking python3-mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Setting up mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Setting up mvnc-dev (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Setting up python3-mvnc (0.0.36+0~20170713190651.36~1.gbpef8e6c) …
Processing triggers for libc-bin (2.23-0ubuntu9) …
—2017-09-06 16:57:36— http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel
Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)… 169.229.222.251
Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 53533754 (51M) [application/octet-stream]
Saving to: ‘../networks/GoogLeNet/bvlc_googlenet.caffemodel’
bvlc_googlenet.caffemod 100%[=============================>] 51,05M 1,21MB/s in 46s
2017-09-06 16:58:22 (1,11 MB/s) — ‘../networks/GoogLeNet/bvlc_googlenet.caffemodel’ saved [53533754/53533754]
—2017-09-06 16:58:22— http://dl.caffe.berkeleyvision.org/bvlc_alexnet.caffemodel
Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)… 169.229.222.251
Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 243862414 (233M) [application/octet-stream]
Saving to: ‘../networks/AlexNet/bvlc_alexnet.caffemodel’
bvlc_alexnet.caffemodel 100%[=============================>] 232,56M 2,10MB/s in 4m 10s
2017-09-06 17:02:33 (952 KB/s) — ‘../networks/AlexNet/bvlc_alexnet.caffemodel’ saved [243862414/243862414]
—2017-09-06 17:02:33— https://github.com/DeepScale/SqueezeNet/raw/master/SqueezeNet_v1.0/squeezenet_v1.0.caffemodel
Resolving github.com (github.com)… 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.0/squeezenet_v1.0.caffem… [following]
—2017-09-06 17:02:34— https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.0/squeezenet_v1.0.caffem…
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 5001403 (4,8M) [application/octet-stream]
Saving to: ‘../networks/SqueezeNet/squeezenet_v1.0.caffemodel’
squeezenet_v1.0.caffemo 100%[=============================>] 4,77M 15,4MB/s in 0,3s
Last-modified header missing — time-stamps turned off.
2017-09-06 17:02:35 (15,4 MB/s) — ‘../networks/SqueezeNet/squeezenet_v1.0.caffemodel’ saved [5001403/5001403]
sh: 0: Can’t open /opt/movidius/caffe/data/ilsvrc12/get_ilsvrc_aux.sh
cp: cannot stat ‘/opt/movidius/caffe/data/ilsvrc12/synset_words.txt’: No such file or directory
—2017-09-06 17:02:35— https://dl.dropboxusercontent.com/u/38822310/gender_net.caffemodel
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 162.125.65.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.65.6|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-09-06 17:02:35 ERROR 404: Not Found.
—2017-09-06 17:02:35— https://dl.dropboxusercontent.com/u/38822310/age_net.caffemodel
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 162.125.65.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.65.6|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-09-06 17:02:35 ERROR 404: Not Found.
—2017-09-06 17:02:35— https://dl.dropboxusercontent.com/u/38822310/mean.binaryproto
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 162.125.65.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.65.6|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-09-06 17:02:36 ERROR 404: Not Found.
Traceback (most recent call last):
File «convert_mean.py», line 7, in
data = open( ‘../mean/age_gender/mean.binaryproto’, ‘rb’ ).read()
FileNotFoundError: [Errno 2] No such file or directory: ‘../mean/age_gender/mean.binaryproto’
—2017-09-06 17:02:40— https://github.com/BVLC/caffe/raw/master/examples/images/cat.jpg
Resolving github.com (github.com)… 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://raw.githubusercontent.com/BVLC/caffe/master/examples/images/cat.jpg [following]
—2017-09-06 17:02:40— https://raw.githubusercontent.com/BVLC/caffe/master/examples/images/cat.jpg
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 140391 (137K) [image/jpeg]
Saving to: ‘../images/cat.jpg’
cat.jpg 100%[=============================>] 137,10K —.-KB/s in 0,03s
Last-modified header missing — time-stamps turned off.
2017-09-06 17:02:40 (4,76 MB/s) — ‘../images/cat.jpg’ saved [140391/140391]
../../bin
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
[Error 9] Argument Error: Network weight cannot be found.
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
[Error 9] Argument Error: Network weight cannot be found.
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
nao@life-server:~/movidius/mvncsdk/ncapi$