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

Install latest wxpython version of 4.2.2. with pip install #216

Closed
wants to merge 6 commits into from

Conversation

bobleesj
Copy link
Contributor

@bobleesj bobleesj commented Oct 1, 2024

It appears that the latest version (4.2.2) wxpython is not available on conda-forge. https://anaconda.org/conda-forge/wxpython

while pip install downloads the latest version of 4.2.2

conda install wxpython  # installs 4.2.1.
...
pip install wxpython  # installs 4.2.2

The main motivation for this PR is that I get the following error using 4.2.1 via conda install:

mportError: dlopen(/Users/imac/miniconda3/envs/pdfgui_env/lib/python3.12/site-packages/wx/_core.cpython-312-darwin.so, 0x0002): Library not loaded: @rpath/libwx_osx_cocoau_core-3.2.0.2.3.dylib
  Referenced from: <6182F180-9097-36BA-88EB-BC2D45892BDB> /Users/imac/miniconda3/envs/pdfgui_env/lib/python3.12/site-packages/wx/_core.cpython-312-darwin.so
  Reason: tried: '/Users/imac/miniconda3/envs/pdfgui_env/lib/python3.12/site-packages/wx/../../../libwx_osx_cocoau_core-3.2.0.2.3.dylib' (no such file), '/Users/imac/miniconda3/envs/pdfgui_env/lib/python3.12/site-packages/wx/../../../libwx_osx_cocoau_core-3.2.0.2.3.dylib' (no such file), '/Users/imac/miniconda3/envs/pdfgui_env/bin/../lib/libwx_osx_cocoau_core-3.2.0.2.3.dylib' (no such file), '/Users/imac/miniconda3/envs/pdfgui_env/bin/../lib/libwx_osx_cocoau_core-3.2.0.2.3.dylib' (no such file), '/usr/local/lib/libwx_osx_cocoau_core-3.2.0.2.3.dylib' (no such file), '/usr/lib/libwx_osx_cocoau_core-3.2.0.2.3.dylib' (no such file, not in dyld cache)

while when I use 4.2.2 via pip install via .whl, it's smooth and pytest runs well for Python 3.12.

The following runs locall (macOS):

# Move wxpython to pip install
CONDA_SUBDIR=osx-64 conda create -n pdfgui_env python=3.12
conda install --file requirements/run.txt --file requirements/test.txt
pip install -r requirements/pip.txt
pip install --no-deps .
pytest

@bobleesj
Copy link
Contributor Author

bobleesj commented Oct 1, 2024

Closing this - it appears that pip install should be the last option. Let's try to first test on conda-forge pre-release.

@bobleesj bobleesj closed this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant