Skip to content
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

File not found error #9

Open
arkp1612 opened this issue Jul 12, 2024 · 4 comments
Open

File not found error #9

arkp1612 opened this issue Jul 12, 2024 · 4 comments
Assignees

Comments

@arkp1612
Copy link

I have crated a VectorDB and I am trying to open the db and collection to run some searches on it. When I do my_db.list_databases() I get this following error

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\\.LynseDB\databases\databases'

The file exists in the folder, I have checked it. I tried resaving it as databases.json, the error goes but the list returned is empty.

What is the proper way of opening a collection once it has been created?

@BirchKwok
Copy link
Owner

Apologies, but I do not have a Windows device to duplicate this issue. Could you please provide your code so that I might review it?

@BirchKwok BirchKwok self-assigned this Jul 13, 2024
@BirchKwok
Copy link
Owner

Apologies, but I do not have a Windows device to duplicate this issue. Could you please provide your code so that I might review it?

I have identified the issue and determined that it is associated with the path handling mechanism within the lynse/api/native_api/database_manager.py module. I will incorporate a resolution into the upcoming version, which is currently in its development phase. Please continue to monitor for updates.

@BirchKwok
Copy link
Owner

BirchKwok commented Jul 14, 2024

Apologies, but I do not have a Windows device to duplicate this issue. Could you please provide your code so that I might review it?

I have identified the issue and determined that it is associated with the path handling mechanism within the lynse/api/native_api/database_manager.py module. I will incorporate a resolution into the upcoming version, which is currently in its development phase. Please continue to monitor for updates.

Alternatively, you may opt to omit the 'list_databases' function, in which case, the remaining collection methods should operate correctly without any issues.

@arkp1612
Copy link
Author

I have managed to do it with the create_database and require_collection with drop_if_exists = False for now. I tried making changes to the database_manager.py but it did not work for me. I was also on a tight deadline for this.

Thank you for looking into this so promptly. Awaiting the upcoming version so I can do it the proper way later! 👍

BirchKwok pushed a commit that referenced this issue Jul 21, 2024
BirchKwok pushed a commit that referenced this issue Jul 21, 2024
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

2 participants