Skip to content
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

update development instructions for MacOS #4591

Closed
gvwilson opened this issue Apr 30, 2024 · 1 comment · Fixed by #4605
Closed

update development instructions for MacOS #4591

gvwilson opened this issue Apr 30, 2024 · 1 comment · Fixed by #4605
Assignees
Labels
documentation Issues related to docstrings or error messages (not online docs) testing Issues related to the unit tests or CI test suite

Comments

@gvwilson
Copy link
Contributor

gvwilson commented Apr 30, 2024

Following instructions in contributing.md on MacOS Sonoma 14.4.1 on Apple M3 with Apple clang version 15.0.0 installed via Xcode:

  • pip install -r packages/python/plotly/optional-requirements.txt fails while trying to install pyzmq if the conda environment has been created with Python 3.12. Fix: use conda create -n plotly-dev python=3.11.8.
  • The instructions in contributing.md leave the environment with pytest==3.5.1, which fails to run. Fix: install pytest=8.1.1.
  • pytest packages/python/plotly/plotly/tests produces failures in packages/python/plotly/plotly/tests/test_optional and packages/python/plotly/plotly/tests/test_orca. The latter may be caused by orca not being installed (which orca produces nothing). However, conda install -c plotly plotly-orca produces a PackagesNotFound error.
    • Temporary solution is to install orca manually (download .zip file etc.)
    • Had to conda install poppler as well (suggested by error messages that came up while running tests)
    • But still get errors from orca tests
@gvwilson gvwilson added the documentation Issues related to docstrings or error messages (not online docs) label Apr 30, 2024
@gvwilson gvwilson self-assigned this Apr 30, 2024
@gvwilson gvwilson added the testing Issues related to the unit tests or CI test suite label Apr 30, 2024
@emilykl
Copy link
Contributor

emilykl commented Apr 30, 2024

I was wondering why such an old version of Pytest gets installed... turns out it's pinned in optional-requirements.txt 😳 :

pytest==3.5.1

That's an easy fix and we should do ASAP.

Related issue: #4570

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues related to docstrings or error messages (not online docs) testing Issues related to the unit tests or CI test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants