dselivanov / text2vec

Fast vectorization, topic modeling, distances and GloVe word embeddings in R.
http://text2vec.org
Other
850 stars 135 forks source link

Install Apparently Failed (Mac OSX 10.13.5) #273

Closed mdtdev closed 6 years ago

mdtdev commented 6 years ago

Installed text2vec with usual install:

> install.packages("text2vec")

this apparently worked, no errors. But upon running library() it fails to load:

> library(text2vec)
Error: package or namespace load failed for ‘text2vec’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘futile.options’

Tried installing futile.options but then the failure was:

> library(text2vec)
Error: package or namespace load failed for ‘text2vec’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘lambda.r’

This seems to be a cascading failure. Is there a way to install all supporting packages? Shouldn't these have installed by default? What did I do wrong here?

Please let me know what additional info I should provide for you to help with this. Here is some system info from diagnose.py (via mxnet's Github).

----------System Info----------
Platform     : Darwin-17.6.0-x86_64-i386-64bit
system       : Darwin
node         : XXXXXX.local
release      : 17.6.0
version      : Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT2018; root:xnu-4570.61.1~1/RELEASE_X86_64
----------Hardware Info----------
machine      : x86_64
processor    : i386
b'machdep.cpu.brand_string: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz'
b'machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TMPBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64TSCTMR AVX1.0 RDRAND F16C'
b'machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 AVX2 BMI2 INVPCID FPU_CSDS'
b'machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT RDTSCP TSCI'

Any help appreciated!

dselivanov commented 6 years ago

What about install.packages("text2vec", dependencies = TRUE) ?

чт, 19 июл. 2018 г. в 19:58, Matthew Turner notifications@github.com:

Installed text2vec with usual install:

install.packages("text2vec")

this apparently worked, no errors. But upon running library() it fails to load:

library(text2vec) Error: package or namespace load failed for ‘text2vec’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘futile.options’

Tried installing futile.options but then the failure was:

library(text2vec) Error: package or namespace load failed for ‘text2vec’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘lambda.r’

This seems to be a cascading failure. Is there a way to install all supporting packages? Shouldn't these have installed by default? What did I do wrong here?

Please let me know what additional info I should provide for you to help with this. Here is some system info from diagnose.py (via mxnet's Github).

----------System Info---------- Platform : Darwin-17.6.0-x86_64-i386-64bit system : Darwin node : XXXXXX.local release : 17.6.0 version : Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT2018; root:xnu-4570.61.1~1/RELEASE_X86_64 ----------Hardware Info---------- machine : x86_64 processor : i386 b'machdep.cpu.brand_string: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz' b'machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TMPBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64TSCTMR AVX1.0 RDRAND F16C' b'machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 AVX2 BMI2 INVPCID FPU_CSDS' b'machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT RDTSCP TSCI'

Any help appreciated!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dselivanov/text2vec/issues/273, or mute the thread https://github.com/notifications/unsubscribe-auth/AE4u3XSMk9yPQ7b3Wb9ZS7C7J3x2cFYoks5uIKyqgaJpZM4VWqz4 .

-- Regards Dmitriy Selivanov

mdtdev commented 6 years ago

I have not tested if it works yet, but it no longer fails on the call to library(). Note that I did what you said and also had to manually install a few others as well. Also I had installed some of the other missing dependencies in between posting this issue and running your suggestion above. Here is what I saw:

> install.packages("text2vec", dependencies = TRUE)
also installing the dependency ‘tokenizers’

trying URL 'https://cran.cnr.Berkeley.edu/bin/macosx/el-capitan/contrib/3.5/tokenizers_0.2.1.tgz'
Content type 'application/x-gzip' length 887117 bytes (866 KB)
==================================================
downloaded 866 KB

trying URL 'https://cran.cnr.Berkeley.edu/bin/macosx/el-capitan/contrib/3.5/text2vec_0.5.1.tgz'
Content type 'application/x-gzip' length 5785354 bytes (5.5 MB)
==================================================
downloaded 5.5 MB

The downloaded binary packages are in
    /var/folders/l_/4h1b3fgd4xz99v5xv60lr7kh0000gn/T//Rtmpyh9oHk/downloaded_packages
> library(text2vec)
Error: package or namespace load failed for ‘text2vec’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘lambda.r’
> install.packages("lambda.r")
also installing the dependency ‘formatR’

trying URL 'https://cran.cnr.Berkeley.edu/bin/macosx/el-capitan/contrib/3.5/formatR_1.5.tgz'
Content type 'application/x-gzip' length 143861 bytes (140 KB)
==================================================
downloaded 140 KB

trying URL 'https://cran.cnr.Berkeley.edu/bin/macosx/el-capitan/contrib/3.5/lambda.r_1.2.3.tgz'
Content type 'application/x-gzip' length 108760 bytes (106 KB)
==================================================
downloaded 106 KB

The downloaded binary packages are in
    /var/folders/l_/4h1b3fgd4xz99v5xv60lr7kh0000gn/T//Rtmpyh9oHk/downloaded_packages
> library(text2vec)
text2vec is still in beta version - APIs can be changed.
For tutorials and examples visit http://text2vec.org.

For FAQ refer to
  1. https://stackoverflow.com/questions/tagged/text2vec?sort=newest
  2. https://github.com/dselivanov/text2vec/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3Aquestion
If you have questions please post them at StackOverflow and mark with 'text2vec' tag.

Attaching package: ‘text2vec’

The following object is masked from ‘package:topicmodels’:

    perplexity

...but it looks like it works now, at least without testing. Any short test script I should try??

Thanks!

dselivanov commented 6 years ago

Any scripts from tests dir