-
Notifications
You must be signed in to change notification settings - Fork 84
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
Python requirements.txt file on Windows includes local file paths #494
Comments
Do you know whether these packages were installed by |
Not entirely sure I know what I'm doing so apologies if my answers are a
little imprecise...
On this development box I didn't have a python installation configured, so
the R console prompted me to install and use miniconda - which seemed to
bundle most of these packages with it.
The only addition was pandas - i installed that using py_install from
within R.
Not sure if that answers your question...
…On Fri, 26 Mar 2021, 21:49 Kevin Ushey, ***@***.***> wrote:
Do you know whether these packages were installed by pip, or via the conda
package repository?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#494 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAECJHSETTMAZIMUXYN432DTFT6ORANCNFSM4Z3R22UA>
.
|
@mmarchetti Do you know why this might happen? |
Yes. Conda leaves metadata hanging around, and pip (as of pip 20.1) picks it up and includes it in the output from Some options here:
|
Since there hasn't been any follow up in the last few months, and it sounds like there's a good chance this is fixed in main, I'm going to close this issue. Happy to reopen if there's more work to be done. |
…ntation on removal of local paths
I'm using python inside connect for the first time this week - so apologies if these are "newbie" errors.
I'm working on Windows desktop and discovering that the generated pip requirements.txt file includes some nasty local file paths which cause pip on the server to fail.
For example, using a standard notebook like https://github.com/sol-eng/python-examples/tree/master/rmarkdown-notebook
This causes
rsconnect::writeManifest("reticulate", "FirstAttempt.Rmd")
to generate arequirements.txt
file:This will not upload to the server unless I manually edit it down to:
I think this is somehow related to pypa/pip#8174 - it seems like the miniconda distribution that RStudio installed has
pip --version
ofpip 21.0.1
For now I'm working around this by manually editing the requirements files.
Is this just a bug in pip? Or is it something rsconnect needs to be aware of too?
The text was updated successfully, but these errors were encountered: