Module ''langchain_core.runnables'.'base'' not found (No module named 'jsonpointer')

Hello Team,

I am using the latest version of langchain V1.1.x.
from langchain_community.document_loaders import PyPDFLoader

while this import i get this error again and again.

Error Line: ImportError: module ‘‘langchain_core.runnables’.‘base’’ not found (No module named ‘jsonpointer’)

I did trying installing jsonpointer. folloing is my dependencies can anyone please check and let me know why i am getting this error?

dependencies = [
    "django>=5.2.5",
    "django-cors-headers>=4.7.0",
    "djangorestframework>=3.16.1",
    "djangorestframework-simplejwt>=5.5.1",
    "drf-spectacular>=0.28.0",
    "drf-yasg>=1.21.10",
    "pytest>=8.4.2",
    "pytest-django>=4.11.1",
    "python-dotenv>=1.1.1",
    "psycopg2-binary>=2.9.10",
    "drf-api-logger>=1.1.21",
    "django-import-export>=4.3.13",
    "pandas>=2.3.3",
    "pgvector>=0.4.2",
    "langchain-community>=0.4.1",
    "langchain>=1.1.2",
    "jsonpointer>=3.0.0",
    "pypdf>=6.4.0",
]




also when i try to import from

from langchain_classic.document_loaders import PyPDFLoader

ImportError: cannot import name ‘PyPDFLoader’ from ‘langchain_classic.document_loaders’ (c:\Users\rxrj9717\Downloads\WORK\langgraph2\AakashGanga-RAG\backend.venv\Lib\site-packages\langchain_classic\document_loaders_init_.py)

and i get seggesion to user langchain_community import, and when i import from langchain_community again i get that same error of jsonpointer.

please help

Thanks.

Ismail

hi @mdism

I think you have to add an explicit dependency: langchain-core>=1.1.0 to the dependencies array

Hello **pawel-twardziak,

Thanks for the reply.**

Yes you are right, I added it explicetly while debugging the issue.

Anywhys the issue got resolved.

Actully, i noticed that I was facing the same whenever i use langchain or langgraph.

So, i though that might be the issue heppens while installing packges and intedepencies.

So, I reinstalled everything use –no-cache flag and after that its stared working without any error.

silly me. :blush:

Thanks,

Ismail

1 Like

Yeah, the cache is the true enemy :smiley:
Great you have solved that!

Huge favour: mark this as solved for others, please :slight_smile:

1 Like