-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Key errors while running pytest #3112
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
Comments
GitMate.io thinks the contributor most likely able to help you is @The-Compiler. |
The problem seems to be:
You are importing
(I see you are not using a virtual environment, I would recommend to use them in the future) |
I installed Pandas, and now I see the following errors: During handling of the above exception, another exception occurred: During handling of the above exception, another exception occurred: During handling of the above exception, another exception occurred: There's nothing wrong with the testsuite, because it seems to be running just fine for a few of my friends. |
It looks like an issue reported by Pandas while parsing your |
I'm closing this for now because of lack of feedback, but feel free to follow up if there is more information available. |
Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
getting the same issue |
Conftest.pyimport pytest @pytest.yield_fixture() @pytest.yield_fixture(scope="class")
#Adding parser @pytest.fixture(scope="session") @pytest.fixture(scope="session")
|
please start using the actual github code formatting instead of dumping unreadable massive posts 😠 |
Try deleting all your This is a problem I've seen when using the same project folder with two very different environment contexts. In my case, it happens when switching between Mac OS and Docker; |
I've come to the same github issue, when I clearly had no reason to. Because of that, I think this is a pytest issue, in that the error message should make it clearer that it's not a pytest issue, so people like me don't end up here. The reason I thought it was a pytest issue is that the first couple exceptions were key errors, and all others occur "during handling of the above exception". Can this be fixed? Some message along the lines of "WARN: the error actually seems to originate with your code, disregard KeyErrors" would have saved some time :) |
oh, sorry. 3.8.2, guess I better update :) |
Yep, that change landed in 3.9. So yeah, you did indeed clearly not have any reason to come to this issue 😉 |
Any resolution for this issue? pytest 5.0 Using custom pyenv: Is this the culprit? |
@Azee77 I doubt you're seeing the same issue, given that the stacktrace above points to a custom |
Thanks for submitting an issue!
Here's a quick checklist in what to include:
pip list
of the virtual environment you are usingI have been seeing key errors while running pytest.
I have a test suite written in pytest, and when I try to run it, I see the following errors all the time:
My system was is running 2 versions of python. Python 2.7 and Python 3.6
Python 3.6 is what my test suite is written on. I have tried uninstalling and reinstalling python3.6 multiple times, but have not had any luck with it so far. I am using pycharm as my IDE.
pytest version: 3.3.2
operating system: MacOS Sierra 10.12.6
Can someone please help me on this?
edited by @The-Compiler to add code tags
The text was updated successfully, but these errors were encountered: