-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
UNC paths are not supported. Defaulting to Windows directory. #2295
Comments
Perhaps also related to using If I look at my |
Any chance we could use python 3's |
Yup of course, many parts of Pipenv already uses pathlib now (falling back to pathlib2 for Python 2). |
@uranusjr Any chance there is a fix for the UNC error? |
@ahendry2688 were you proposing to fix the problem or simply telling us about the pathlib module? also, if you would please attach logs as text, following the help instructions in the issue template, rather than screenshots and zipfiles, it would be much appreciated. |
@techalchemy Proposing to fix using the UNC capability within pathlib. Don’t have time right now. Can you? |
We’re in the middle of a new version release right now, so this will probably need to wait a while. |
@uranusjr @techalchemy Okay, understandable of course. Let me create a pull request and see what I can do. And sorry about the format from before (I'll use text logs from now on) |
@uranusjr @techalchemy I get error when running |
That’s a CI script. imdisk is a ramdisk utility that doesn’t come with windows. Don’t use that for local testing unless you want to mess with ramdisk installs |
@techalchemy Thank you. I'm just trying to run the tests because the
Do I need to run |
No you only need to run |
@uranusjr Okay, thank you. Ya, let me write up some instructions as I go through the tests (I usually find I write better instructions that way). |
@uranusjr @techalchemy I got several errors, and one that it said to report to you (see attached). |
PR #2331 should fix this. |
@uranusjr I don't see
if, e.g., I had 24 (virtual) cores? |
no. The |
@techalchemy Thanks Dan. I'm running tests on @erinxocon 's PR as we speak now. |
@techalchemy I reran tests and am still getting error outputs. I forwarded results to @erinxocon in PR #2331. (EDIT: I realized I'm running on a different machine. I should have run |
@techalchemy Corrected using |
@techalchemy If it helps, here is my output from running |
look, we have tests that run on windows, if you need help running tests please use our appveyor config as a reference. Our tests run in CI, failures on your personal environment are not an indication about the code in pipenv and will not be helpful to the PR. Your environment is not configured correctly, but these issues and their respective fixes are meant for us to triage and respond to technical problems with our software. It would be greatly appreciated if you could direct your testing questions to another channel of communication, like stackoverflow, or create a separate issue if there is a problem with pipenv, so that we can continue to use these issues to discuss the problems in question. For your reference: set PYPI_VENDOR_DIR=".\tests\pypi\"
set PYTHONIOENCODING="utf-8"
python -m pip install --upgrade pip
python -m pip install -e .
python -m pipenv install --dev
python -m pipenv run pytest -v -n 4 --ignore=".\\pipenv\\patched" --ignore=".\\pipenv\\vendor" tests |
@techalchemy If I have offended you in some way I did not mean to. I'm still a bit new to pytest and Github, so I apologize for all the comments. @erinxocon suggested a fix through her PR, and I was simply trying to confirm it. I'll be sure to leave my results there once I have "properly configured" my system. With respect, "Your environment is not configured correctly" is vague as well and feels slightly accusatory and without basis, as you did not state what aspect of the error logs lead you to believe it was not configured correctly. I don't doubt you. I'm sure something is wrong with my system, but I would also appreciate if you would adhere to your own rules of "Be kind, or be on your way." I will limit my comments in the future to only those affecting the software. I'm truly sorry for the trouble and thank you for your time. |
I'm not offended, however we are volunteers and while I get that you want to run our test suite, our test suite obviously doesn't catch this problem or it would have failed before you reported it. A better investment of your time would be trying the thing that previously didn't work and seeing if it works now, and then confirming it, rather than attempting to fully integrate yourself into our development workflow. And while I am fully familiar with our 'rules' about being kind, it also includes being aware of the demands you are placing on the time of others. We triage dozens of issues a day most days, and nobody is doing it on paid time. Every 30 minutes I spend explaining how to use pytest is 30 minutes I didn't spend cutting a pipenv release, and therefore 30 less minutes I can spend with my partner or having leisure time. So I'm not making accusations anymore than you reporting a bug in our software is an accusation. I also provided an example, of how we run them, in case you missed anything relevant. Beyond telling you how it works on the dozens of machines we've set this up on, any help is going to require us to basically google it for you, which is not a good use of our time. That's also the reason my comment was vague, since the test failures had nothing to do with pipenv. I don't think something is wrong with your system per se, but this stuff is kind of complex and layered so I really have no idea. I realize that this all probably doesn't matter to you as an end user, but that's why I'm explaining it. I'm not out to offend you, more to push you to find help on non-pipenv errors somewhere else if you continue to have them to avoid this becoming a troubleshooting forum. Put yourself in our shoes for a second-- you would want the same thing |
@techalchemy This affects my time too. I want to be a contributor, not just be an end user. What previously didn't work was I thought I was helping you and I thought you wanted contributers. Do you not want my text files? Then why does the error message say to inform you of the error? If you're a volunteer, then by definition you don't have to spend any time that you don't have on this project. You have no obligation to me. If you don't have time to help me right now, then don't. Be with your partner or have your lesiure time. I'm not stopping you. But don't tell me not to contribute. I'm simply reporting you information the error logs said to report. I'm just following the instructions on Contributing section to the best of my ability along with the limited test suite instructions. Moreover, I still ran per your instructions and am still getting errors. They say to report to you, so unless I'm doing something wrong, I'm technically helping, and this error is a flaw in the system (as confirmed by @erinxocon ). |
Actually, I can ask you not to contribute-- you are mistaking my being a volunteer with my authority on the project, and you are conflating your desire to contribute with your right to do so. Just because this project is run by volunteers doesn't mean that nobody is in charge of it or that nobody has the final say over contributions or moderation. If you want to be productive on pipenv, telling its maintainers that you have the right to contribute whatever you want and that I can just leave anytime I want is probably not a good strategy. We definitely want more contributors, but we definitely don't want contributors who are going to place high demands on our time and be antagonistic.
You are vastly misunderstanding how open source operates, Just because I am a volunteer doesn't mean I don't have an obligation to this project. It is used by hundreds of thousands of people to whom I am responsible if something is broken. I unfortunately don't have the luxury of simply dropping everything. I would strongly encourage you to watch https://www.youtube.com/watch?v=tzFWz5fiVKU You are welcome to engage in productive discussions going forward. The test failures on your machine are not relevant, one is a non-deterministic resolution failure which we are aware of, and the other is a permissions issue related to you running this on windows while using your operating system. |
@techalchemy Can we start over? I feel we got off on the wrong foot and I'm sorry. I was frustrated. I respect your authority as the maintainer and completely understand its importance and necessity. I'm sorry if I came across as though I had the right to contribute. I do not. I apologize. |
@ahendry2688 you bet, clean slate is good with me, I am very appreciative of the conciliatory effort and I also apologize for my less-than-patient language. Thank you for reaching out again, I realize it would be much easier to walk away |
@techalchemy So glad to hear it! And no worries. I had a chance to watch the YouTube video last night, and I must say that is quite a bit of work and responsibility! Thank you so much! |
Hello @techalchemy and @erinxocon. I can confirm on my machine that PR #2331 has solved the issue of this PR! (Must clone repo into site-packages and install with As an aside, I'm getting a few new interesting errors when trying to install packages now. This is a separate issue though. I'll post on StackOverflow to see if I can get any resolution on it, but here is the text file for your records. locking_devpackages_errors.txt Thank you again so much and have a great weekend! |
@ahendry2688 if you're installing from the master branch you may want to uninstall and reinstall -- find us on slack over in #pipenv on https://pyslackers.com/ if you keep having issues with the development branch so we can get ahead of those errors before we release, I've seen a few like that but I can't remember specifically how they were resolved |
Running
pipenv shell
from (Administrator) command prompt in Windows 10 Pro to launch virtual environment outputs:UNC paths are not supported. Defaulting to Windows directory.
when run from within a mapped network drive.
The virtual environment does not show up in
()
before the drive. (If I am in the virtual environment at this point, it is easy to forget that I am and I could forget to exit out. Moreover, it doesn't show which environment I'm in).If I type
activate
afterwards, the environment in()
shows up, but I don't have to be in the folder wherePipfile
orPipfile.lock
are located.The text was updated successfully, but these errors were encountered: