Skip to content

Requesting Help with _nodes ImportError in PyDataStructs #681

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

Open
Susmita331 opened this issue Apr 22, 2025 · 0 comments
Open

Requesting Help with _nodes ImportError in PyDataStructs #681

Susmita331 opened this issue Apr 22, 2025 · 0 comments

Comments

@Susmita331
Copy link

Dear @czgdp1807,

I'm currently facing a critical issue while working with the PyDataStructs repository. When I try to run or test the project, I encounter a repeated ImportError:

ImportError: cannot import name '_nodes' from 'pydatastructs.utils._backend.cpp' (unknown location)

This error is occurring across several files, all pointing to the same problem—Python is unable to locate or import _nodes from the cpp backend. I've checked that _nodes.cpp is present and that the .so file exists (e.g., _nodes.cpython-311-darwin.so), but the issue still persists.

Since this seems to be tied to the backend implementation, and I'm not allowed to modify any mentor-authored C++ code or backend structure, I'm unsure how to proceed without guidance.

Would you be able to suggest what might be causing this error or point me to the correct way to resolve or rebuild the backend so that these modules are properly recognized?
I truly appreciate your time and help on this. Thank you in advance!

Best regards,
Susmita Chakrabarty

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

No branches or pull requests

1 participant