-
Notifications
You must be signed in to change notification settings - Fork 126
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
ModuleNotFoundError: No module named 'magic' #8
Comments
look at : https://github.com/ahupp/python-magic you need to install also for example : for other hardware, to can see there. |
Thanks @jeugregg I've tried that as well, after it said it's already installed, I tried running Please do let me know if there are any other steps that I am missing. Thanks again for the help. |
Yes, I still an issue, so I have to update with that : |
If you're on Windows (like me) and using python (like me) and have spent 2 hours messing around with this (like me) you'll be glad to know that this is the solution to your nighmares: https://pypi.org/project/python-magic-win64/. You will need to change code to: |
Thanks @Freffles I am not ok windows, I am on macbook, are there any workarounds? |
Sorry, I don't know about Mac. I'm sure there must be other methods that can be used, even just for the sake of completing this specific task. If all the files are html, just hard code that in. I stuck at it because I'm playing around with the idea of different chunking strategies for different source data types. Even when I got magic working, I found it was not particularly accurate. |
Hey there team,
I am super grateful for all the hard work that you are doing for the Open Source LLM community,
I will come to the point, I was trying to follow
2024-04-04-build-rag-with-python
tutorial on building rag with python and after everything is done and tried runningpython3 import.py
then there's magic library error I paste below.If you can help me address this issue or find a workaround for me, I am would be more happy :) I am really excited to seeing this work.
Thanks
The text was updated successfully, but these errors were encountered: