rstudio / rstudio/reticulate

Path error when using reticulate functions

Open
#360 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.8k
Forks
349
Avg merge
5h 13m
Merged PRs (30d)
4

Description

After having used reticulate previously on my Windows machine. I am now getting a strange error with many reticulate functions. When I call functions like reticulate::py_config(), I get:

Error: lexical error: invalid char in json text.
                                       C:\PROGRA~3\MINICO~1\lib\site-p
                     (right here) ------^

I have tried changed to the GitHub version of the package, and I have tried reinstalling Anaconda python, neither which has made the error go away. Is this a known issue? Any suggestions for fixing it? Thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error with reticulate::py_config() on Windows after using Anaconda, using the reported C:\PROGRA3\MINICO1\lib\site-p path as a clue. Done means py_config() and the other affected reticulate functions run without the invalid JSON character error.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, python, r
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.