KGerhardt / RecruitPlotEasy

A tool for interactive Recruitment Plot generation and viewing
4 stars 3 forks source link

Error in initiate() : object 'recplot_py' not found #2

Closed michaelwoodworth closed 3 years ago

michaelwoodworth commented 3 years ago

Hi Kenji, excited to use the updated recruitment plots.

I just tried to install from your github repo and got the following install error:

✓  checking for file ‘/private/var/folders/1y/qj4xwzys6nz0n6ss0d564zj00000gq/T/RtmpUbzmD8/remotesa1776539181/KGerhardt-RecruitPlotEasy-1ae6aee/DESCRIPTION’ ...
─  preparing ‘RecruitPlotEasy’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘RecruitPlotEasy_0.0.0.1000.tar.gz’

* installing *source* package ‘RecruitPlotEasy’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RecruitPlotEasy)
> library(RecruitPlotEasy)
> RecruitPlotEasy()
Initiating recruitment plot environment. Please wait a moment. 
Performing first-time setup. Wait a moment, please.
Checking for Miniconda and installing if necessary...
Pysam already installed. You probably shouldn't be seeing this warning. Did you call prepare_environment() twice?
Attempting to install RecruitPlotEasy python... Collecting RecruitPlotEasy
  Downloading RecruitPlotEasy-1.0.7-py3-none-any.whl (22 kB)
Installing collected packages: RecruitPlotEasy
Successfully installed RecruitPlotEasy-1.0.7
Done!
Error in initiate() : object 'recplot_py' not found

I didn't call prepare_environment(). I do have separate bash and zshell conda installs since MacOS changed the default shell, could that be part of the confusion in the install steps? Any other potential workaround thoughts for getting it going?

KGerhardt commented 3 years ago

Blake ran into the same problem yesterday. Call RecruitPlotEasy() again and it actually should work. The python module is loaded as recplot_py, but the code seems to have had an error in how it passed the object around during initial setup.

I'm working on solving it so that message never comes up, but the current fix is to just call the GUI again. Let me know if it works for you, and I'll upload the new code with a solution in place when I find one.

michaelwoodworth commented 3 years ago

success!