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

Support using Python 3.12 with Khoj #690

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Conversation

debanjum
Copy link
Member

@debanjum debanjum commented Apr 7, 2024

Why

Changes

  • The latest PyTorch now supports Python 3.12
  • RapidOCR for indexing image PDFs doesn't currently support python 3.12
    But it's an optional dependency, so only install it if python < 3.12

Testing

  • Verified Khoj installs fine on Windows and Mac with Python 3.12
  • Verified Khoj chat works fine on Mac, Windows with Python 3.12

Resolves #522

@debanjum debanjum force-pushed the support-python-312-with-khoj branch from 7aaae09 to 4c2c59c Compare April 7, 2024 05:42
@debanjum debanjum requested a review from sabaimran April 7, 2024 05:43
debanjum added 2 commits April 7, 2024 11:23
- RapidOCR for indexing image PDFs doesn't currently support python 3.12.
  It's an optional dependency anyway, so only install it if python < 3.12
- Run unit tests with python version 3.12 as well

Resolves #522
@debanjum debanjum force-pushed the support-python-312-with-khoj branch from 4c2c59c to e3deb29 Compare April 7, 2024 05:54
@debanjum debanjum merged commit 4eda79c into master Apr 8, 2024
8 checks passed
@debanjum debanjum deleted the support-python-312-with-khoj branch April 8, 2024 08:27
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.

Incompatible with Python 3.12
1 participant