Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error? #9

Open
furtman opened this issue Aug 27, 2020 · 7 comments
Open

Installation error? #9

furtman opened this issue Aug 27, 2020 · 7 comments

Comments

@furtman
Copy link

furtman commented Aug 27, 2020

The installation seemed successful but I don't seem to be able to load the library successfully? And thus can't use the functions?

@furtman
Copy link
Author

furtman commented Aug 28, 2020

synthesizer <- ctgan()
Error in py_module_import(module, convert = convert) :
ModuleNotFoundError: No module named 'ctgan'
This is the error I am getting!

@schwa021
Copy link

schwa021 commented Apr 26, 2022

I have the exact same experience as @furtman

Sorry! Very stupid error on my part. Failed to uncomment the "install_ctgan()" line.

But now get

Error in py_call_impl(callable, dots$args, dots$keywords) :
TypeError: init() got an unexpected keyword argument 'gen_dim'

when running the example code:

library(ctgan)

# Install dependencies before first usage
# install_ctgan()

synthesizer <- ctgan()
synthesizer %>% 
  fit(iris, epochs = 20)

@eribul
Copy link

eribul commented Apr 27, 2022

I got excactly the same error as @Schwa21 ! Othervise, it seems like a really nice package! Would love to use it :-)

@schwa021
Copy link

schwa021 commented Apr 27, 2022

I got excactly the same error as @Schwa21 ! Othervise, it seems like a really nice package! Would love to use it :-)

Honestly, this would be a life-saver for me. I work in health care, and do "big data" research - but have a terrible time trying to figure out how to share/make-reproducible my work.

I think the error has something to do with my python installation - but, honestly, this whole python/reticulate/etc... stuff is beyond my comprehension. I can say that OTHER python packages (e.g. shapper, which is a wrapper for the python shap package) DO work.

help us @kasaai, you're our only hope. Plus - the fact that there's a recent generable talk (how I heard of it) makes me think a lot more people will be trying this soon.

@jfeldman396
Copy link

Same error here

@Midnightcatpatrol
Copy link

Likewise

@Midnightcatpatrol
Copy link

Traceback below

traceback()
4: stop(structure(list(message = "TypeError: init() got an unexpected keyword argument 'gen_dim'\n",
call = py_call_impl(callable, dots$args, dots$keywords),
cppstack = structure(list(file = "", line = -1L, stack = c("1 reticulate.so 0x000000011545f8e4 _ZN4Rcpp9exceptionC2EPKcb + 196",
"2 reticulate.so 0x0000000115468135 _ZN4Rcpp4stopERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE + 53",
"3 reticulate.so 0x0000000115475a4c Z12py_call_impl11PyObjectRefN4Rcpp6VectorILi19ENS0_15PreserveStorageEEES3 + 684",
"4 reticulate.so 0x0000000115453a24 _reticulate_py_call_impl + 180",
"5 libR.dylib 0x000000010836e922 R_doDotCall + 1458",
"6 libR.dylib 0x00000001083ba7fa bcEval + 105338",
"7 libR.dylib 0x00000001083a0541 Rf_eval + 385",
"8 libR.dylib 0x00000001083c0a71 R_execClosure + 2193",
"9 libR.dylib 0x00000001083bf849 Rf_applyClosure + 473",
"10 libR.dylib 0x00000001083a7728 bcEval + 27304",
"11 libR.dylib 0x00000001083a0541 Rf_eval + 385",
"12 libR.dylib 0x00000001083c0a71 R_execClosure + 2193",
"13 libR.dylib 0x00000001083bf849 Rf_applyClosure + 473",
"14 libR.dylib 0x00000001083a7728 bcEval + 27304",
"15 libR.dylib 0x00000001083a0541 Rf_eval + 385",
"16 libR.dylib 0x00000001083c0a71 R_execClosure + 2193",
"17 libR.dylib 0x00000001083bf849 Rf_applyClosure + 473",
"18 libR.dylib 0x00000001083a0a16 Rf_eval + 1622",
...
3: py_call_impl(callable, dots$args, dots$keywords)
2: ctgan$CTGANSynthesizer(embedding_dim = embedding_dim, gen_dim = gen_dim,
dis_dim = dis_dim, l2scale = l2_scale, batch_size = batch_size)
1: ctgan()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants