-
Notifications
You must be signed in to change notification settings - Fork 351
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
Fail to install nevergrad following demo
#189
Comments
I'm having the same issue. I'm on OSX and using Robyn 3.0.0. I tested exactly the same with pandas - from download to install - and it worked fine. It populated the same folder in the VM. R: 3.6.3
|
environment issue is really quite tricky. Have you tried forcing python path with this? python: /Users/gufengzhou/Library/r-miniconda/envs/r-reticulate/bin/python |
I believe most Nevergrad installation issue is related to python path specification in reticulate. Could you check this issue and see if it helps? |
Hello guys, I'm facing similar issues too. However, going into these folders via the finder reveleas that everything is there as per your output @gufengzhou (an example below) I've found these thread out rstudio/reticulate#637 Which actually turned out to print the required output NOTE: Python version was forced by use_python function So now I'm trying to understand how to fix that [NOT FOUND] as I'm yet to find the correct way. |
To force python path, please try this Then restart R session, re-create and use virtual environment, either via conda with Then re-check |
I tried as you suggested @gufengzhou The env was correctly created (I suppose) But then py-config returns just the same I noticed I've bot Anaconda and Miniconda installed may this be an issue? Moreover if I try P.S. I'm Cristian Nozzi from the facebook group anyway |
This is new to me that not even py_config is working. Could you also try |
Yes this still works like before. |
So guys after many failed tries on fixing the [NOT FOUND] error on the libpython i came to understand that it was probably using a wrong version of python and not the one I meant to. I restarted R Session again an tried the following
@gufengzhou the difference here is that I restarted first and then launched this command (earlier I did the reverse). Again, I'm using a M1 Macbook Pro so I'm afraid this may be some CPU limitations here. |
Ok I just got it solved...I also ran into nevergrad install problem after I've updated python to 3.10 that is still too new and probably some dependencies are not updated yet. I'm using a macbook. First, I've removed python 3.10 by removing the folder
Then I've uninstalled and re-installed miniconda by just downloading the latest .pkg installer here Then restart Rstudio, load reticulate
Finally, running |
Hi there. I've just installed Robyn in my new MacBook Pro, with M1 chip and ran smoothly. These were the steps I followed:
For further details, I'm sharing my
|
Hello guys I'll try to keep this short and share my experience so far hoping this can help somebody. In particular I deleted Python3.10, and configured 3.8. Then I saw @laresbernardo's solution so I decided to give it a try. So I decided to give it a try: I've installed Xcode, created a dummy app, launched once and then closed everything. So now my py_config works fine and automatically referenced the Xcode's libpython
NOTE: Python version was forced by RETICULATE_PYTHON
NOTE: Python version was forced by RETICULATE_PYTHON I had to force the Python version in order to be sure I was getting the right now. In particular, between the errors I'm getting, the reason should be this: I'm now trying to fix this out and make numpy install with BLAS. Will keep you posted. EDIT:
|
Hey guys, I was also experiencing an error message when trying to install nevergrad with conda. Problem was coming from Python 3.10 package in my r-reticulate env. I have just run: conda_create("r-reticulate","Python 3.8") to change the version of the Python package, and all is working now. Seems you can use all previous version up to 3.9 Hope it helps. |
After many testes I'm still stuck here on my M1 Macbook. This is what happens when I try to Besides the fact that I don't get why P.S.In the meantime I borrowed an older 2016 Macbook Pro (with Intel CPU ofc) on which I managed to make Robyn run smoothly with one little trick: I was still having troubles with the missing "shared Python library" error. |
Thanks, this actually solved it for me. For reference I:
My py_config was
|
Thank you. This fix helped me resolve the following error: "Error in py_module_import(module, convert = convert) : ImportError: DLL load failed while importing _ctypes: The specified module could not be found." Recreating the r-reticulate environment with python version 3.8 resolved the problem. |
Win10: I hope it will help someone - Win10 Instructions
|
I have an HP Windows laptop. Running Anaconda 2.1.1
|
I had similar issue. After I pointed use_python to the right python version and restart a new R session. py_config was able to pick up the correct version and everything worked. |
my issue display like you:"there's "nevergrad" right after "numpy" which is missing on mine. "do you solve this?ths! |
Nope, I've done some other tries over time with no luck (tried uninstalling and re-installing everything aswell) but I now had the chance to switch to an older intel-based mackbook which worked just fine right from the beginning using conda. I haven't completely given up on my M1 tho, so I'll be glad to share once everything is fixed. |
thanks buddy,Looking forward to your good news |
I tried to install nevergrad with Option 1: nevergrad installation via PIP of the demo.R reticulate is installed and loaded virtualenv_create("r-reticulate") worked an I have this folder: I also have the pip.exe here But when I try py_install("nevergrad", pip = TRUE) I get the following error py_config() brings this output NOTE: Python version was forced by use_python function Installing via Anaconda Prompt with pip install works well. Would be grateful if someone has an idea how I can install nevergrad. |
Hiya, first off - great project, I'm really impressed. Second - I'm one of the people who hit a bit of a wall with this and really struggled to get further. I was working on Macbook Pro did find that downgrading to a laptop with a non-Apple chipset meant it breezed through the start phase (but then struggled a bit with the model build, understandably). Most effective solution I found was creating a cloud-hosted notebook with Google's Vertex AI. Unfortunately Colab (even Colab Pro+) crashed when I got to the model building stage, but the Vertex Jupyter notebook seems to have coped with it all really well. Tried Azure's equivalent but that struggled a bit. Not to advertise the service but it's roughly 35p per hour for the core-number needed, so could be worth people giving it a try if you're stuck. |
hi,buddy, I have successfully installed it on the m1 chip, macos big sur 11.6.1; the r version of rstudio is 4.1.2, the python is 3.8 or 3.9, and the method of “use conda” is used【at the top of this page】, but the last step command cannot use pip, it needs to be changed become:conda_install("r-reticulate", "nevergrad");hope you can get it!and you can use
hi,buddy, I have successfully installed it on the m1 chip, macos big sur 11.6.1; the r version of rstudio is 4.1.2, the python is 3.8 or 3.9, and the method of “use conda” is used【at the top of this page】, but the last step command cannot use pip, it needs to be changed become:conda_install("r-reticulate", "nevergrad");hope you can get it!and you can use command "reticulate::py_module_available("nevergrad")" to find whether the installation was successful, this is more efficient than py_config; remember "library (reticulate)" |
Hey there, thanks for the suggestion. I tried it but surprisingly enough I get stuck here: It just stands there and doesn't progress. The thing is if I open a terminal via Anaconda and I do "pip install nevergrad" in there, it actually works and tells me that Nevergrad is installed. At this point I believe there's just something screwed up somewhere between all the tests I've done. |
Hi I had the
|
Describe issue
I tried to copy-paste
demo
locally to my Rstudio. However, I haven't been able to get pass the stage of installing nevergrad. Any help is appreciated.pip
But it fails during Step 3 (run
robyn_run
):conda
and this takes forever with some following messages:
use_python
withpip
still can't run
robyn_run
:USE
use_python
withconda
Same message with 2.
Force Python path for reticulate:
Not working either.
Environment & Robyn version
R version 4.1.1
Please make sure you're using the latest Robyn version -- YES
The text was updated successfully, but these errors were encountered: