-
Notifications
You must be signed in to change notification settings - Fork 88
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
MacOS Install Instructions Require Review & Updates #970
Comments
Thanks for the information, I do not have a mac to test or check how the install process works. I am reliant on others to provide the install instructions needed for macOS. While it does not cover the most current code, I have been told that some people run the 3.5 Windows exe version within Wine on macOS. |
@rcurty: Thank you for bringing this up. There was indeed an error in the instructions for macOS. In step 2, you must download the current code, using the green code button in the upper right and "download zip". (The old instructions were directing you to the latest released code, which is still 3.5) I have now corrected the instructions in the readme. Could you please try again? As Colin already mentioned, we really need people that test the new version on macOS. It would be great if you could help a little with that. Thanks! |
@ccbogel and @kaixxx: |
If you want to use the 3.5 release, make sure to follow the instructions in the readme.md file that comes with the download. Good luck with your workshop! I'm curious to know how you like the new version 3.6 A few students of mine installed it on macOS, and it seems to work fine. |
@kaixxx For the LMU workshop I installed the qualcoder program in MacOS Sequoia 15.1. I had to remove the version restriction in ...
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Using cached wrapt-1.17.0-cp312-cp312-macosx_11_0_arm64.whl (38 kB)
Using cached zipp-3.21.0-py3-none-any.whl (9.6 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Using cached pyasn1-0.6.1-py3-none-any.whl (83 kB)
Building wheels for collected packages: chroma-hnswlib
Building wheel for chroma-hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for chroma-hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_ext
creating var/folders/qr/_v5_781s2dng7yqfszqps_xw0000gn/T
clang++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -I/opt/homebrew/opt/llvm/include -I/Users/tomasruiz/code/qualcoder/venv/include -I/Users/tomasruiz/.pyenv/versions/3.12.4/include/python3.12 -c /var/folders/qr/_v5_781s2dng7yqfszqps_xw0000gn/T/tmp65z_7v4p.cpp -o var/folders/qr/_v5_781s2dng7yqfszqps_xw0000gn/T/tmp65z_7v4p.o -std=c++14
clang++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -I/opt/homebrew/opt/llvm/include -I/Users/tomasruiz/code/qualcoder/venv/include -I/Users/tomasruiz/.pyenv/versions/3.12.4/include/python3.12 -c /var/folders/qr/_v5_781s2dng7yqfszqps_xw0000gn/T/tmp0169vfzn.cpp -o var/folders/qr/_v5_781s2dng7yqfszqps_xw0000gn/T/tmp0169vfzn.o -fvisibility=hidden
building 'hnswlib' extension
creating build/temp.macosx-14.5-arm64-cpython-312/python_bindings
clang++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -I/opt/homebrew/opt/llvm/include -I/private/var/folders/qr/_v5_781s2dng7yqfszqps_xw0000gn/T/pip-build-env-z0accz27/overlay/lib/python3.12/site-packages/pybind11/include -I/private/var/folders/qr/_v5_781s2dng7yqfszqps_xw0000gn/T/pip-build-env-z0accz27/overlay/lib/python3.12/site-packages/numpy/_core/include -I./hnswlib/ -I/Users/tomasruiz/code/qualcoder/venv/include -I/Users/tomasruiz/.pyenv/versions/3.12.4/include/python3.12 -c ./python_bindings/bindings.cpp -o build/temp.macosx-14.5-arm64-cpython-312/./python_bindings/bindings.o -O3 -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO=\"0.7.3\" -std=c++14 -fvisibility=hidden
In file included from ./python_bindings/bindings.cpp:1:
In file included from /opt/homebrew/Cellar/llvm/19.1.2/bin/../include/c++/v1/iostream:42:
In file included from /opt/homebrew/Cellar/llvm/19.1.2/bin/../include/c++/v1/ios:220:
In file included from /opt/homebrew/Cellar/llvm/19.1.2/bin/../include/c++/v1/__locale:14:
/opt/homebrew/Cellar/llvm/19.1.2/bin/../include/c++/v1/__locale_dir/locale_base_api.h:29:12: fatal error: 'xlocale.h' file not found
29 | # include <xlocale.h>
| ^~~~~~~~~~~
1 error generated.
error: command '/opt/homebrew/opt/llvm/bin/clang++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for chroma-hnswlib
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects |
Thank you very much. QualCoder needs more testing on Mac, so it's very helpful to get such feedback. The version restrictions for chromadb and chroma-hnswlib are related to an issue on Windows only, so it's probably fine to use a newer version on Mac. I will try to edit the requirements.txt accordingly. See you in Munich next week! |
@tomasruizt Could you try this requirements.txt on macOS: https://github.com/kaixxx/QualCoder/blob/ai_finalize/requirements.txt |
Installing using this |
@tomasruizt: Thank you for testing! I have now included this change into the master branch: 1ee5359 |
Using MacOS Ventura 13. Installed QualCoder Master Code today 1/28 and received error when running this script. ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' I continued with next script and was able to install and run 3.6. |
The requirements.txt contains a list of the required python packages to run QualCoder. Using
Make sure that you are in the root directory of the downloaded QualCoder code, or pip won't be able to find the requirements.txt file. Use |
I had the folder in Downloads so I moved it to Applications. Rather than use change directory, I opened Finder and right click on Qualcoder-master folder and selected New Terminal at folder. I then entered the scrip pip3 install -r requirements.txt and it works. So maybe direction to change directory should go before this. So step 6 should be step 5 and placing that instruction before step 5?
Thanks! |
You are right, I have changed it: 0c61a6f |
Thank you for making the change .
|
OK thanks for this. I have updated the macOS install instructions. |
on a MAC OS Big Sur v 11 intel Mastercode was installed but I ran into this error when launching: Vansorat@Vansorat QualCoder-master % python3 /applications/QualCoder-master/qualcoder/main.py Running 3.5 gets same error |
I think pip install "numpy<2" need to read pip3 install.... with a 3 after pip |
"I think pip install "numpy<2" need to read pip3 install.... with a 3 after pip" looking here for a solution: https://stackoverflow.com/questions/60761175/how-to-solve-importerror-dlopen-symbol-not-found-expected-in-flat-name Perhaps try, with pip or pip3: Also, as you have python 3.12 installed, can try this, which ensure the re-install is for the python 3.12 version :
|
Hi all, The current release: https://github.com/ccbogel/QualCoder/releases/tag/3.6 Make sure to follow the installation instructions at the top of the release page. (There is a small issue with the visibility of the icons in the "original" style. So, I would suggest switching to the "native" style in the settings.) |
I installed version 3.5 months ago without any issues, but the current instructions for macOS are causing multiple problems. For instance, the instructions mention installing dependencies from a requirements.txt file, but this file is missing from the distribution. Additionally, frequent warnings related to the x86 vs. M1 architecture complicate the installation process further. Other error messages have also appeared, making it difficult to follow the steps successfully. It would be helpful if those could be tested and reviewed and the documentation updated to reflect the latest changes and address compatibility for MacOS users. Thank you!
The text was updated successfully, but these errors were encountered: