-
Notifications
You must be signed in to change notification settings - Fork 21.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
Cannot open db - LMDB, via python, Windows 10 #9736
Comments
Did you make sure to clear the cmake cache and all build artifacts before rebuilding with -DUSE_LMDB=ON ? Can you tell me more about your lmdb? Where did you install it from? Where did you install it to? What version and how did you download it? This is the logic used to find lmdb https://github.com/pytorch/pytorch/blob/master/cmake/Modules/FindLMDB.cmake and it's called from https://github.com/pytorch/pytorch/blob/master/cmake/Dependencies.cmake#L219 . If you want to iterate quickly, you can add a |
Hi @pjh5 , thanks for your help. When the compilation fails, I delete the folder pytorch\build and then set configurations(including set USE_LMDB=ON) and finally execute build_windows.bat for the next try. I installed lmdb via python 2.7 using: lmdb is installed in path C:\Python27\Lib\site-packages. There are two folders: There is no error for code lines like: However when the execution reaches the following: |
I have the same problem when I run the MNIST example and I install caffe2 by miniconda. error is:
my env is
|
@zhaiyuqiang looks like CMake can't find LMDB when building. Can you see if there's some adjustment to
to
Unfortunately I don't think we test LMDB installs on CI. |
@zhaiyuqiang to add to this, the binaries are not built with lmdb, so if by "install caffe2 by miniconda" you mean you used "conda install" then it won't work. To use lmdb right now you'd have to build with source. |
Hello @orionr , I try changing the cmake file as you mentioned. However, it still does not work. I got the same error:
I noticed that the LMDB flag was OFF even when I set it to ON before executing build_windows.bat. Is it possible to get a LMDB fix/patch for the tag v0.4.0? I already developed some CNN predictors using that tag on ubuntu and I would like to extend the support for windows 10. |
Apologies for the slow response. Unfortunately it would be difficult to get a patch in place for 0.4, but 1.0 will be moving from nightly to release shortly, so please verify everything works there and we can try to patch there as needed. |
If you have a question or would like help and support, please ask at our
forums.
If you are submitting a feature request, please preface the title with [feature request].
If you are submitting a bug report, please fill in the following details.
Issue description
I was able to compile pytorch with the aim of using Caffe2. I have tested some libraries using python and it works well. However, I would like to use data bases for training but when I try to use lmdb there is an error:
For the setup I used python 2.7 and installed all required packages. I installed the package lmdb as well. However, it seems that it is not recognized for the compilation of Caffe2. Furthermore, I set USE_LMDB=ON but it is not recognized by CMake since it has no impact in the CMake configuration that is printed out in the console. The file CMake_Cache.txt (attached)
CMakeCache.txt
also indicates that path for LMDB was not found LMDB_DIR:PATH=LMDB_DIR-NOTFOUND . How can I successfully use LMDB for Caffe2 using my configuration? I am stuck at this step for a while, any help would be very appreciated.
Provide a short description.
LMDB error - cannot open db
Code example
Follow Cifar10 or MNIST Tutorial.
Please try to provide a minimal example to repro the bug.
Error messages and stack traces are also helpful.
System Info
Please copy and paste the output from our
environment collection script
(or fill out the checklist below manually).
You can get the script and run it with:
The text was updated successfully, but these errors were encountered: