NLP4L / attic-nlp4l

(deprecated) Please use new nlp4l instead.
Apache License 2.0
66 stars 5 forks source link

sbt pack not found error on AWS #42

Open pontsoleil opened 8 years ago

pontsoleil commented 8 years ago

I installed sbt and nlp4l on Amazon Web Service EC2. I encontered following err and can not start

sbt pack

[info] Loading project definition from /usr/local/src/nlp4l/project [info] Set current project to nlp4l (in build file:/usr/local/src/nlp4l/) [info] Main Scala API documentation to /usr/local/src/nlp4l/target/scala-2.11/api... [error] /usr/local/src/nlp4l/src/main/scala/org/nlp4l/colloc/BuddyWordsProcessor.scala:45: not found: value getStrParamRequired [error] val index = getStrParamRequired("index") [error] ^ ... [info] No documentation generated with unsuccessful compiler run [warn] one warning found [error] 17 errors found error Scaladoc generation failed [error] Total time: 25 s, completed Jan 18, 2016 10:33:29 AM

Do I need to install framework?

Following source imports org.nlp4l.framework package org.nlp4l.extract

import org.nlp4l.framework.models._ import org.nlp4l.framework.processors.{Processor, ProcessorFactory, DictionaryAttributeFactory} import org.nlp4l.lucene.LuceneDocTermVector import org.nlp4l.lucene.TermsExtractor import org.nlp4l.lucene.TermsExtractor.Config import org.slf4j.LoggerFactory

...

kojisekig commented 8 years ago

You don't need to install framework explicitly as it is downloaded automatically from maven repository while build process. Can you remove org.nlp4l directory from your ivy2 directory then run sbt pack again?

In my Mac:

$ find ~/.ivy2 | grep nlp4l
/Users/koji/.ivy2/cache/org.nlp4l
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/docs
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/docs/nlp4l-framework-library_2.11-0.1.0-javadoc.jar
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/ivy-0.1.0.xml
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/ivy-0.1.0.xml.original
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/ivydata-0.1.0.properties
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/jars
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/jars/nlp4l-framework-library_2.11-0.1.0.jar
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/srcs
/Users/koji/.ivy2/cache/org.nlp4l/nlp4l-framework-library_2.11/srcs/nlp4l-framework-library_2.11-0.1.0-sources.jar

$ rm -Rf ~/.ivy2/cache/org.nlp4l
$ sbt pack
pontsoleil commented 8 years ago

Thank you for your quick answer.

Unfortunately problem is not resolved. Please find attached. BTW I’m new to sbt and I’m afraid mis configuration on sbt.

Regards, sbt_pack.txt

kojisekig commented 8 years ago

I've upgraded nlp4l-framework to 0.2.0

https://github.com/NLP4L/nlp4l/commit/7369ab63e2aa58ca60bf849ee8731e3ef8d54f2e

It've not appeared in maven central repository yet, but can you try to git pull for master of this project and run sbt pack again later?