Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dev install troubleshooting#19962

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

story645
Copy link
Member

Don't really know where to put this, but I just spent like half an hour and a lot of install/uninstall/banging my head against a wall trying to figure out why pytest and numpy were conflicting in weird ways until I remembered that in conda you have to usually explicitly install pytest. Figure there are a couple of other really common things that mostly don't go out of date that might be worth including.


Troubleshooting
===============
* pytest - If the test runner is failing, verify that the pytest you are using is installed in your environment using the ``which pytest`` and ``which python`` commands. If the paths are not the same, install pytest in your environment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please line-wrap this to 80 characters.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

installed the rewrap extension, dunno why my wraps are wonky

@tacaswell
Copy link
Member

Might also be worth changing the "how to run the tests" docs to usepython -m pytest which avoids exactly this situation?

story645 and timhoffm reacted with thumbs up emoji

@jklymak
Copy link
Member

Ha, I just had this problem until it twigged that I had to install pytest "locally".

It would not hurt to add this tohttps://matplotlib.org/stable/devel/dependencies.html as well since it really needs to be installed in your development environment

@story645
Copy link
MemberAuthor

There's also a dependency section in this doc, so uh@timhoffm is there a plan to consolidate?

@story645story645force-pushed thestory645-install-troubleshooting branch fromdef249f to5a4ad91CompareApril 15, 2021 02:13
Copy link
Member

@timhoffmtimhoffm left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It's probably worth moving the testing and docs dependencies sections to this site.

Note also that there is#17096, which should help preventing dependency errors in dev setups based on conda.

@@ -37,7 +37,7 @@ Running the tests

In the root directory of your development repository run::

pytest
python -mpytest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There's anotherpytest call some lines down.

Comment on lines 137 to 141
Troubleshooting
===============
* pytest - If the test runner is failing, verify that the pytest you are using
is installed in your environment using the ``which pytest`` and ``which python``
commands. If the paths are not the same, install pytest in your environment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I have doubts about troubleshooting / FAQ sections. My impression is that they get cluttered with the next best thing someone comes across and accumulate lots of clutter between relevant information.

In this specific case:

  • do we need this at all, if we suggestpython -m pytest?
  • If so, this should move totesting.rst. While it's a dependency error, users won't know that. It will happen in the context of running tests, so that's the first place to look at in the docs.

jklymak reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

what about having a troubleshooting section in the wiki, and linking to it from the docs? Would be easier to maintain, but still provide info.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I mostly agree with@timhoffm here: we should just usepython -mpytest everywhere and perhaps just document "always usepython -mpytest, notpytest", not end up with neverending faq entries.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

changed to -m pytest and dropped the troubleshooting

Don't really know where to put this, but I just spent like half an hour and a lot of install/uninstall/banging my head against a wall trying to figure out why pytest and numpy were conflicting in weird ways until I remembered that in conda you have to usually explicitly install pytest. Figure there are a couple of other really common things that mostly don't go out of date that might be worth including.
@story645story645force-pushed thestory645-install-troubleshooting branch from5a4ad91 to6c46b59CompareApril 18, 2021 20:36
@timhoffmtimhoffm added this to thev3.4.2 milestoneApr 18, 2021
@timhoffmtimhoffm merged commitbf9ae97 intomatplotlib:masterApr 18, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestApr 18, 2021
timhoffm added a commit that referenced this pull requestApr 18, 2021
…962-on-v3.4.xBackport PR#19962 on branch v3.4.x (Dev install troubleshooting)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell left review comments

@anntzeranntzeranntzer left review comments

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.4.2
Development

Successfully merging this pull request may close these issues.

5 participants
@story645@tacaswell@jklymak@anntzer@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp