-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug]: No module named 'lightrag.kg.shared_storage' #1031
Comments
I'm also getting this error on MacOS, python 3.10 using pip install lightrag-hku |
Looks like it's because of the change between 1.2.3 and 1.2.4, - pipy does not yet have 1.2.4, so I've reverted to using 1.2.3 example |
I had 1.2.3 installed and got this error (in the initial description, I did
a pip list installed).
…On Sun, Mar 9, 2025 at 8:38 AM Bryan ***@***.***> wrote:
Looks like it's because of the change between 1.2.3 and 1.2.4,
<v1.2.3...v1.2.4> - pipy does
not yet have 1.2.4, so I've reverted to using 1.2.3 example
—
Reply to this email directly, view it on GitHub
<#1031 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHKKOVLRIEBYIPDBK3EVE32TRVBZAVCNFSM6AAAAABYTJHEC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYHEZDANZYGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: b-d055]*b-d055* left a comment (HKUDS/LightRAG#1031)
<#1031 (comment)>
Looks like it's because of the change between 1.2.3 and 1.2.4,
<v1.2.3...v1.2.4> - pipy does
not yet have 1.2.4, so I've reverted to using 1.2.3 example
—
Reply to this email directly, view it on GitHub
<#1031 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHKKOVLRIEBYIPDBK3EVE32TRVBZAVCNFSM6AAAAABYTJHEC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYHEZDANZYGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@thistleknot yeah - if you look at the diff I linked, |
I'm confused. Does this mean I must be mistaken? I know I did a pip install whatever hku version they had, then after the error tried to install from source... and then did a pip list installed = 1.2.3 so do I install 1.2.4? |
@thistleknot I'm not sure what you think you are mistaken on - You have 1.2.3 installed (via pip as you say). However, you're using code (probably from their examples) which makes uses of 1.2.4 features. You can see in pipy that 1.2.4 isn't available via pip yet. To get their new examples to work you can try building form source, but I haven't been able to get that to work in my environment yet. Like I said, I just stuck to examples which were compatible with v1.2.3. You can explore those here. I'm sure they'll release v1.2.4 via pip soon but I don't know how that process works. |
Isnt cloning the repo and doing a pip install-e .
An install from source?
…On Sun, Mar 9, 2025, 10:08 AM Bryan ***@***.***> wrote:
@thistleknot <https://github.com/thistleknot> I'm not sure what you
*think* you are mistaken on - You have 1.2.3 installed (via pip as you
say). However, you're using code (probably from their examples) which makes
uses of 1.2.4 features.
You can see in pipy <https://pypi.org/project/lightrag-hku/#history> that
1.2.4 isn't available via pip yet.
To get their new examples to work you can try building form source, but I
haven't been able to get that to work in my environment yet.
Like I said, I just stuck to examples which were compatible with v1.2.3.
You can explore those here <https://github.com/HKUDS/LightRAG/tree/v1.2.3>
.
I'm sure they'll release v1.2.4 via pip soon but I don't know how that
process works.
—
Reply to this email directly, view it on GitHub
<#1031 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHKKOWXQQR5DVFQLL2V3HD2TR7QDAVCNFSM6AAAAABYTJHEC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYHE3DKNBQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: b-d055]*b-d055* left a comment (HKUDS/LightRAG#1031)
<#1031 (comment)>
@thistleknot <https://github.com/thistleknot> I'm not sure what you
*think* you are mistaken on - You have 1.2.3 installed (via pip as you
say). However, you're using code (probably from their examples) which makes
uses of 1.2.4 features.
You can see in pipy <https://pypi.org/project/lightrag-hku/#history> that
1.2.4 isn't available via pip yet.
To get their new examples to work you can try building form source, but I
haven't been able to get that to work in my environment yet.
Like I said, I just stuck to examples which were compatible with v1.2.3.
You can explore those here <https://github.com/HKUDS/LightRAG/tree/v1.2.3>
.
I'm sure they'll release v1.2.4 via pip soon but I don't know how that
process works.
—
Reply to this email directly, view it on GitHub
<#1031 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHKKOWXQQR5DVFQLL2V3HD2TR7QDAVCNFSM6AAAAABYTJHEC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYHE3DKNBQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes, but you said
Which means you don't have 1.2.4 installed. I can't help you here since I have 1.2.3 installed from pipy and switched to just using v1.2.3 compatible APIs (per comments above) - perhaps you need to do an uninstall/fresh install from github? Make sure you're using tag |
There was a misunderstanding I left out the fact I did a pip install -e . But i did after pypi install I only showed what was installed after |
cd LightRAG Traceback (most recent call last): |
I'm having the same problem. however
|
I was able to fix the issue, the problem was an older global lightrag pip package that was already present vs the package in the current venv. |
I think you should deploy the last version to pypi asap, as the main example in the README does not seem work without it. @thistleknot if you comment the code for initialize_pipeline_status and logging it should work, as a workaround while your real problem (installing from source) is fixed |
Do you need to file an issue?
Describe the bug
windows
python 3.10
pip install lightrag-hku
lightrag-hku 1.2.3
Setup and Imports
import os
import asyncio
import nltk
from nltk.corpus import brown
from lightrag import LightRAG, QueryParam
from lightrag.llm.ollama import ollama_model_complete, ollama_embed
from lightrag.kg.shared_storage import initialize_pipeline_status
from lightrag.utils import setup_logger
ModuleNotFoundError Traceback (most recent call last)
Cell In[6], line 10
8 from lightrag import LightRAG, QueryParam
9 from lightrag.llm.ollama import ollama_model_complete, ollama_embed
---> 10 from lightrag.kg.shared_storage import initialize_pipeline_status
11 from lightrag.utils import setup_logger
13 # Set up logging
ModuleNotFoundError: No module named 'lightrag.kg.shared_storage'
Steps to reproduce
No response
Expected Behavior
No response
LightRAG Config Used
Paste your config here
Logs and screenshots
No response
Additional Information
The text was updated successfully, but these errors were encountered: