Closed Tset-Noitamotua closed 6 years ago
It looks like you end up here: https://github.com/pypa/pip/blob/8.1.2/pip/req/req_install.py#L197-L201
Which would mean that os.path.isfile(p)
returns False. Could you check the value of p
?
Do you mean like that:
>>> os.path.isfile('C:\PyRFC_sap_nwrfc_64bit\pyrfc-1.9.4-cp35-none-win_amd64.whl')
True
?
He means dropping a print(p)
into that section of the code and seeing what the value of p
is there to see what it's checking if it is a file exactly.
Hey! It seems like it's been a while since this issue was active.
Could someone try reproducing this on the current master?
Thanks and sorry for the wait.
Closing due to a lack of a response.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
pip 8.1.2
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016) [MSC v.1900 64 bit (AMD64)]
Description:
I have a
requirements.txt
with this content:I want to do
pip freeze -r requirements.txt
. When I do it I get a false warningRequirement 'C:/PyRFC_sap_nwrfc_64bit/pyrfc-1.9.4-cp35-none-win_amd64.whl' looks like a filename, but the file does not exist
I know that that warning is wrong because the file is there and actually I get the same result (but without warning) when I replace the
/
(slash) inC:/PyRFC_sap_nwrfc_64bit/pyrfc-1.9.4-cp35-none-win_amd64.whl
with\
(back-slash) -->C:\PyRFC_sap_nwrfc_32bit\pyrfc-1.9.4-cp35-none-win_amd64.whl
What I've run:
Same result without warning after replacing
/
with\