Closed fuhengwu2021 closed 11 months ago
Thanks for filling the bug, @fuhengwu2021! We're looking into it!
Hi @fuhengwu2021 , thanks for reaching out with the issue. As a first step, I attempted to reproduce the issue you were facing but was unable to do so. Could you also share the following:
pip list | grep pydantic
?python 3.8.17
pip install lineapy
$pip list | grep pydantic
pydantic 2.1.1
pydantic_core 2.4.0
Thanks @fuhengwu2021 for sharing. I installed pydantic==2.1.1 on my environment, and then running lineapy jupyter lab
I was able to reproduce your issue. I have a strong confidence that pydantic
's version is the cause for this issue.
LineaPy depends on pydantic==1.9.0. Most likely there are breaking changes in pydantic >=2.0.0.
Could you install LineaPy in a fresh conda/venv environment, run pip install lineapy
(this will install correct versions of all libraries), and then try to run the command?
Alternatively (though strongly not recommended, as you could break some other stuff on your machine) you could simply downgrade pydantic to 1.9.0 on your current environment and try rerunning the command. Let me know how it turns out.
Thanks @aayan636 it worked after pinning it to 1.9.0 :-)
python version: 3.8
lineapy version latest and HEAD of master
Your code:
**Issue: I can not start jupyter lab with lineapy.
Notebook(s) or script(s) to reproduce the issue NA