-
Notifications
You must be signed in to change notification settings - Fork 334
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
py_install() Error: lexical error: invalid char in json text. #474
Comments
Have the same issue and from what I can tell it's caused by the warning in the first line
There is a check for something similar in conda_list() but this one gets through. Line 50 in bfac80b
Basically what we'd want is something like this to be added to the code:
|
I got the same error after trying to implement LSTM using keras. Everything worked 2 days ago. |
I think this correctly diagnoses both the issue and the fix (extraneous warnings being included in output we are attempting to parse as JSON). While we could look for and discard the warning, I wonder if there is something we could do here proactively: Lines 29 to 31 in bfac80b
i.e. pass @kevinushey Could you take a look at this ASAP? (I think it's breaking reticulate installs for anyone using Anaconda >= 3.7). |
Will take a look! |
@jjallaire should we prepare a CRAN release of |
Looking fwd to updates here since I also get the same errors and warnings (imho based upon "WARNING: The conda.compat modul ..." ) as described above. Since up to a few weeks ago ie before I updated Anaconda (to currently 3.7.1) everything ('everything' being the use of the reticulate and keras packages based on conda environments) worked fairly smooth it does seem to be an issue that surfaced vie update along the 'conda_envs' lilnes. |
@kevinushey Yes I think we should prepare a CRAN release for this. Maybe before we update we should confirm that the |
I installed from github but I keep getting the same error.
|
@smouksassi I suspect you need to restart after installing from GitHub. (note that the old CRAN release of reticulate is still loaded in your session) |
yes after restart all went well and could produce my first python outputs thank you ! |
We've just pushed an updated version of |
I got this error when I re-install reticulate from github..
Installing package into ‘C:/Users/Nigel/OneDrive/Documents/R/win-library/3.5’
*** arch - i386 *** arch - x64
|
You need to make sure you're installing reticulate from a fresh R session (without reticulate already loaded). Also make sure you don't have any other R sessions open with reticulate loaded. (Simplest way forward is to just restart the computer and then install reticulate in a clean R session) |
I downloaded Anaconda 3.7 for Windows (64-bit Graphical Installer), following these instructions, and then downloaded Python 3.7.3.
After installing
reticulate
I'm getting an error frompy_install()
:It looks like this is similar to issue #360 at least in terms of warning at the top. And also the closed issue #100. My
conda info --json
returns:py_discover_config()
yields the same lexical error.This is my
sessionInfo()
:The text was updated successfully, but these errors were encountered: