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

pip install plyvel not working on Windows platform #60

Open
josephernest opened this issue Nov 11, 2017 · 66 comments
Open

pip install plyvel not working on Windows platform #60

josephernest opened this issue Nov 11, 2017 · 66 comments

Comments

@josephernest
Copy link

josephernest commented Nov 11, 2017

Are there no binaries for Python 2.7 - Windows?
Currently

pip install plyvel 

produces installation error on Python 2.7 - Windows if you don't have the right compiler installed.

Thanks in advance.

@wbolster
Copy link
Owner

there are no binaries (wheels) at all on pypi. and i have not used windows in 15 years so i'm afraid i cannot help you with that.

@josephernest
Copy link
Author

Thank you for your answer @wbolster. Is plyvel the "official" LevelDB for Python 2.7, or is there another implementation ready-to-use for Linux, Mac, Windows? (including binaries)

@wbolster
Copy link
Owner

not that i am aware of. plyvel is (or at least was) the fastest and most feature complete leveldb library for python.

would be an idea for you to provide a windows build in the form of a .whl package? i can publish it on pypi.

@wbolster
Copy link
Owner

wbolster commented Jan 5, 2018

plyvel 1.0.1 is on pypi, with binary linux packages! please give it a try!

https://plyvel.readthedocs.io/en/latest/news.html#plyvel-1-0-1

https://twitter.com/wbolster/status/949394305893924865

@wbolster
Copy link
Owner

wbolster commented Jan 6, 2018

if you have experience with making builds for windows using https://www.appveyor.com/ i would be more than happy to bless these as official and submit them to pypi. (update: actually no:#60 (comment))

however, i have neither time, skill, nor interest to accomplish this myself.

@metatsmith
Copy link

I believe the problem here is that the C Standard Library headers have become platform dependent. I'm also running into this same problem, and I've looked around the web a bit after a lot of frustration (which I imagine @josephernest is also feeling. The potential solution I am testing right now is to install the windows SDK kit for my system. I have windows 7, so I'm using the windows 7 SDK.

This article leads me to believe this should work:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/cfa48739-cd32-43d2-9d27-2b6653da6645/canf-find-standard-c-header-file-in-visual-studio-2015-community-version?forum=vclanguage

Windows7 SDK : https://www.microsoft.com/en-us/download/details.aspx?id=3138
Windows10 SDK: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

I'll post a follow up after I do some experimentation.

@wbolster
Copy link
Owner

wbolster commented Feb 7, 2018

see also #70, perhaps it helps

@wbolster
Copy link
Owner

@bauerj #60 (comment)

i see you are working on this?
bauerj@5acbdea

@bauerj
Copy link

bauerj commented Feb 27, 2018

Yes, well, I'm trying: https://ci.appveyor.com/project/bauerj/plyvel/build/job/rpfrwrjvoj26ffjf

The current issue is that Microsoft does not supply stdint.h with their SDK (although it seems to be part of the C standard).

This could be solved by adding the header file to this project. What do you think about doing that?

Or maybe the library can be changed to not use that file. As far as I can see it only uses uint64_t from there. I'm a C noob but maybe unsigned long long could be used instead?

@vaskomitanov
Copy link

Few months ago I needed windows build of the latest LevelDB and I worked a little bit to have usable windows build. Here is the link in case you may find it useful for above problems: https://github.com/vaskomitanov/leveldb

@ofek
Copy link

ofek commented Dec 9, 2018

Any progress on this? Many of us Windows users would greatly appreciate binary wheels 🙏

@wbolster
Copy link
Owner

wbolster commented Dec 9, 2018

i am not working on this myself. if anyone gets automatic builds working on appveyor on (a fork of) this repo, i would be happy to merge it

@Myriad-Dreamin
Copy link

Myriad-Dreamin commented Feb 21, 2019

Few months ago I needed windows build of the latest LevelDB and I worked a little bit to have usable windows build. Here is the link in case you may find it useful for above problems: https://github.com/vaskomitanov/leveldb

tx. i created a lib with vs2017, then modified the setup.py,like that

Extension(
		...
		libraries=['leveldb vaskomitanov-r x64',
				   'libboost_chrono-vc141-mt-x64-1_69',
				   'libboost_date_time-vc141-mt-x64-1_69',
				   'libboost_filesystem-vc141-mt-x64-1_69',
				   'libboost_system-vc141-mt-x64-1_69',
				   'libboost_thread-vc141-mt-x64-1_69'],
		...
    )

finally my plyvel was installed.

@renkexinmay
Copy link

renkexinmay commented Mar 20, 2019

Few months ago I needed windows build of the latest LevelDB and I worked a little bit to have usable windows build. Here is the link in case you may find it useful for above problems: https://github.com/vaskomitanov/leveldb

tx. i created a lib with vs2017, then modified the setup.py,like that

Extension(
		...
		libraries=['leveldb vaskomitanov-r x64',
				   'libboost_chrono-vc141-mt-x64-1_69',
				   'libboost_date_time-vc141-mt-x64-1_69',
				   'libboost_filesystem-vc141-mt-x64-1_69',
				   'libboost_system-vc141-mt-x64-1_69',
				   'libboost_thread-vc141-mt-x64-1_69'],
		...
    )

finally my plyvel was installed.

@Myriad-Dreamin
Could you give some more details about creating the lib? which set.py did you modify? I'm new to vs, and I'm suffering from the same plyvel installation problem. Thank you a lot!

UPD: solved! for people who may need help: compile boost.lib and LevelDB.lib using VS, you'll see how to reach this step following a tutorial for it.

@xyqyear
Copy link

xyqyear commented Apr 13, 2019

It seems like the latest release of leveldb (1.21) added native support for Windows. Would you consider to figure this out and add this support also for plyvel? I also don't know how to compile a program on windows, so I cannot offer help. (I'm from China, so sorry for my poor English)
Thanks very much!

@wbolster
Copy link
Owner

i do not use windows. #60 (comment)

@namuyan
Copy link

namuyan commented Apr 22, 2019

https://gist.github.com/namuyan/1a8aef3482fa17c6b206ff028efc9807
I wrote how to install on winodws, how about MSYS2? but this way require window.
Many people will find it helpful to install with PIP, I think.

@ppolxda
Copy link

ppolxda commented Apr 26, 2019 via email

@Ovyerus
Copy link

Ovyerus commented Jun 17, 2019

Personally using binary/wheel provided by #98 and they seem to be working fine.

@ppolxda
Copy link

ppolxda commented Nov 27, 2019

@crb912
Copy link

crb912 commented Dec 17, 2019

update new appveyor.yml.
https://gist.github.com/ppolxda/1ebc6bdd2053984bc5ff7a799647bf75
windows wheel release
https://github.com/ppolxda/plyvel/releases/tag/1.1.0.build-v0-win
appveyor test build
https://ci.appveyor.com/project/ppolxda/plyvel

Seems not work, I test with plyvel-1.1.0-cp36-cp36m-win_amd64.whl

Error:

  File "plyvel\_plyvel.pyx", line 356, in plyvel._plyvel.DB.__iter__
  File "plyvel\_plyvel.pyx", line 362, in plyvel._plyvel.DB.iterator
  File "plyvel\_plyvel.pyx", line 788, in plyvel._plyvel.Iterator.__init__
  File "plyvel\_plyvel.pyx", line 91, in plyvel._plyvel.raise_for_status
plyvel._plyvel.CorruptionError: b'Corruption: corrupted compressed block contents'

@wbolster
Copy link
Owner

b'Corruption: corrupted compressed block contents

that may be due to a missing libsnappy

@ppolxda
Copy link

ppolxda commented Dec 17, 2019

update new appveyor.yml.
https://gist.github.com/ppolxda/1ebc6bdd2053984bc5ff7a799647bf75
windows wheel release
https://github.com/ppolxda/plyvel/releases/tag/1.1.0.build-v0-win
appveyor test build
https://ci.appveyor.com/project/ppolxda/plyvel

Seems not work, I test with plyvel-1.1.0-cp36-cp36m-win_amd64.whl

Error:

  File "plyvel\_plyvel.pyx", line 356, in plyvel._plyvel.DB.__iter__
  File "plyvel\_plyvel.pyx", line 362, in plyvel._plyvel.DB.iterator
  File "plyvel\_plyvel.pyx", line 788, in plyvel._plyvel.Iterator.__init__
  File "plyvel\_plyvel.pyx", line 91, in plyvel._plyvel.raise_for_status
plyvel._plyvel.CorruptionError: b'Corruption: corrupted compressed block contents'

I testing, but can't reproduce error.

PS C:\Python36> ./python -m pip install https://github.com/ppolxda/plyvel/releases/download/1.1.0.build-v0-win/plyvel-1.1.0-cp36-cp36m-win_amd64.whl
Collecting plyvel==1.1.0 from https://github.com/ppolxda/plyvel/releases/download/1.1.0.build-v0-win/plyvel-1.1.0-cp36-cp36m-win_amd64.whl
  Downloading https://github.com/ppolxda/plyvel/releases/download/1.1.0.build-v0-win/plyvel-1.1.0-cp36-cp36m-win_amd64.whl (200kB)
    100% |████████████████████████████████| 204kB 29kB/s
Installing collected packages: plyvel
Successfully installed plyvel-1.1.0
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
PS C:\Python36> ./python -m pytest .\test_plyvel.py
============================================================================================= test session starts =============================================================================================
platform win32 -- Python 3.6.8, pytest-5.3.2, py-1.8.0, pluggy-0.13.1
rootdir: C:\Python36
collected 51 items

test_plyvel.py ...................................................                                                                                                                                       [100%]

============================================================================================= 51 passed in 2.18s ==============================================================================================
PS C:\Python36>

@bwanaaa
Copy link

bwanaaa commented Mar 12, 2020

Win10pro
Anaconda latest
Visual Studio 2019 community edition v16.4.6
Visual Studio Build Tools 2019 16.4.6

pip install plyvel

 plyvel/_plyvel.cpp(620): fatal error C1083: Cannot open include file: 'leveldb/db.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Stefan\Anaconda3\envs\TF\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Stefan\\AppData\\Local\\Temp\\pip-install-k6yh4h2t\\plyvel\\setup.py'"'"'; __file__='"'"'C:\\Users\\Stefan\\AppData\\Local\\Temp\\pip-install-k6yh4h2t\\plyvel\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Stefan\AppData\Local\Temp\pip-record-w3xpi6ee\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

What is the recommended solution?

@ppolxda
Copy link

ppolxda commented Mar 14, 2020

Win10pro
Anaconda latest
Visual Studio 2019 community edition v16.4.6
Visual Studio Build Tools 2019 16.4.6

pip install plyvel

 plyvel/_plyvel.cpp(620): fatal error C1083: Cannot open include file: 'leveldb/db.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Stefan\Anaconda3\envs\TF\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Stefan\\AppData\\Local\\Temp\\pip-install-k6yh4h2t\\plyvel\\setup.py'"'"'; __file__='"'"'C:\\Users\\Stefan\\AppData\\Local\\Temp\\pip-install-k6yh4h2t\\plyvel\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Stefan\AppData\Local\Temp\pip-record-w3xpi6ee\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

What is the recommended solution?

you must include leveldb library.
try to install vcpkg to build leveldb or use wheel package.

https://github.com/ppolxda/plyvel/releases/tag/1.1.0.build-v0-win

pip install https://github.com/ppolxda/plyvel/releases/download/1.1.0.build-v0-win/plyvel-1.1.0-cp37-cp37m-win_amd64.whl

@bwanaaa
Copy link

bwanaaa commented Mar 20, 2020

Running win10

(Db36) G:\Dropbox>pip install https://github.com/ppolxda/plyvel/releases/download/1.1.0.build-v0-win/plyvel-1.1.0-cp37-cp37m-win_amd64.whl
ERROR: plyvel-1.1.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.

this fails too

(Db36) G:\Dropbox>pip install https://github.com/ppolxda/plyvel/releases/download/1.1.0.build-v0-win/plyvel-1.1.0-cp35-cp35m-win_amd64.whl
ERROR: plyvel-1.1.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.


(Db36) G:\Dropbox>pip install https://github.com/ppolxda/plyvel/releases/download/1.1.0.build-v0-win/plyvel-1.1.0-cp38-cp38-win_amd64.whl
ERROR: plyvel-1.1.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

@Avnsx
Copy link

Avnsx commented Mar 6, 2022

For anyone who wants to install on windows, I've build a windows x64 version using github action which build against the main branch of leveldb.

If this windows built works it would be huge! I will check out soon

@synodriver
Copy link

synodriver commented Mar 6, 2022

For anyone who wants to install on windows, I've build a windows x64 version using github action which build against the main branch of leveldb.

If this windows built works it would be huge! I will check out soon

I've tested it on my pc(win10) and it works fine. Although I don't know why there are so many compiler warnings

@Avnsx
Copy link

Avnsx commented Mar 17, 2022

Well @synodriver I did install and run it on python 3.10 and it works in terms of importing and basic stuff; but I still end up with the same error as explained here: #137

so @wbolster to get back to your comment #137 (comment)
I'm guessing this is a issue with your repo, since now that I could directly install your repos windows build provided by @synodriver and still ended up with the same issue ...

@Avnsx
Copy link

Avnsx commented Mar 17, 2022

I've tested it on my pc(win10) and it works fine. Although I don't know why there are so many compiler warnings

Wait is there maybe any warning that could point to the decompression algorithm or whatever in plyvel to get broken; which would than cause my issue? in #137 @synodriver

@synodriver
Copy link

I've tested it on my pc(win10) and it works fine. Although I don't know why there are so many compiler warnings

Wait is there maybe any warning that could point to the decompression algorithm or whatever in plyvel to get broken; which would than cause my issue? in #137 @synodriver

You can check the warnings here. Basicly, the warnings occurs during compilation.

@Avnsx
Copy link

Avnsx commented Mar 17, 2022

I've tested it on my pc(win10) and it works fine. Although I don't know why there are so many compiler warnings

Wait is there maybe any warning that could point to the decompression algorithm or whatever in plyvel to get broken; which would than cause my issue? in #137 @synodriver

You can check the warnings here. Basicly, the warnings occurs during compilation.

Can you access chromes local storage level db with your own windows build? or do u get the same issue as in my ticket?

@synodriver
Copy link

I've tested it on my pc(win10) and it works fine. Although I don't know why there are so many compiler warnings

Wait is there maybe any warning that could point to the decompression algorithm or whatever in plyvel to get broken; which would than cause my issue? in #137 @synodriver

You can check the warnings here. Basicly, the warnings occurs during compilation.

Can you access chromes local storage level db with your own windows build? or do u get the same issue as in my ticket?

I'm afraid I can't because I dont't use chrome.

@lifegpc
Copy link

lifegpc commented Mar 17, 2022

I've tested it on my pc(win10) and it works fine. Although I don't know why there are so many compiler warnings

Wait is there maybe any warning that could point to the decompression algorithm or whatever in plyvel to get broken; which would than cause my issue? in #137 @synodriver

You can check the warnings here. Basicly, the warnings occurs during compilation.

Can you access chromes local storage level db with your own windows build? or do u get the same issue as in my ticket?

You need another library, snappy.
I mean your leveldb library need linked with snappy.

@Avnsx
Copy link

Avnsx commented Mar 17, 2022

I've tested it on my pc(win10) and it works fine. Although I don't know why there are so many compiler warnings

Wait is there maybe any warning that could point to the decompression algorithm or whatever in plyvel to get broken; which would than cause my issue? in #137 @synodriver

You can check the warnings here. Basicly, the warnings occurs during compilation.

Can you access chromes local storage level db with your own windows build? or do u get the same issue as in my ticket?

I'm afraid I can't because I dont't use chrome.

It doesn't matter what browser you use pretty much all of them have leveldb storages in similar paths

@synodriver
Copy link

synodriver commented Mar 17, 2022

I hava no idea whether snappy is linked against leveldb during the compilation. It just able to compile.

@lifegpc
Copy link

lifegpc commented Mar 17, 2022

image
You can use dumpbin to see dependents if u use shared library.

@Avnsx
Copy link

Avnsx commented Mar 17, 2022

I hava no idea whether snappy is linked against leveldb during the compilation. It just able to compile.

Your windows build is useless if it's not linked to snappy, because it most likely breaks every time there's a leveldb that uses compression (such as the leveldb that browsers create)

@synodriver
Copy link

I hava no idea whether snappy is linked against leveldb during the compilation. It just able to compile.

Your windows build is useless if it's not linked to snappy, because it most likely breaks every time there's a leveldb that uses compression (such as the leveldb that browsers create)

Would update the CI later to build against snappy. There are so many dependencies to compile against.

@Avnsx
Copy link

Avnsx commented Mar 17, 2022

I hava no idea whether snappy is linked against leveldb during the compilation. It just able to compile.

Your windows build is useless if it's not linked to snappy, because it most likely breaks every time there's a leveldb that uses compression (such as the leveldb that browsers create)

Would update the CI later to build against snappy. There are so many dependencies to compile against.

Please do regardless, I am waiting since Dec 21 for a working windows build 😭

@synodriver
Copy link

I hava no idea whether snappy is linked against leveldb during the compilation. It just able to compile.

Your windows build is useless if it's not linked to snappy, because it most likely breaks every time there's a leveldb that uses compression (such as the leveldb that browsers create)

Would update the CI later to build against snappy. There are so many dependencies to compile against.

Please do regardless, I am waiting since Dec 21 for a working windows build 😭

Would snappy-python works?

@Avnsx
Copy link

Avnsx commented Mar 17, 2022

Would snappy-python works?

i have no clue 🤯

maybe @lifegpc knows?

@synodriver
Copy link

Trying to build with vcpkg. Hope it work.

@synodriver
Copy link

synodriver commented Mar 17, 2022

Would snappy-python works?

i have no clue 🤯

maybe @lifegpc knows?

Ok, now I have the same error. But I'm sure that snappy is installed.
image
image

@synodriver
Copy link

synodriver commented Mar 17, 2022

What a strange error.

db = plyvel.DB(r"C:\Users\LAB\AppData\Local\Microsoft\Edge\User Data\Default\Local Storage\leveldb")
for k, v in db:
    print(k,v)
    
Traceback (most recent call last):
  File "F:\conda\lib\code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
  File "plyvel\_plyvel.pyx", line 841, in plyvel._plyvel.Iterator.__next__
  File "plyvel\_plyvel.pyx", line 886, in plyvel._plyvel.Iterator.real_next
  File "plyvel\_plyvel.pyx", line 91, in plyvel._plyvel.raise_for_status
plyvel._plyvel.CorruptionError: b'Corruption: corrupted compressed block contents'

@Avnsx
Copy link

Avnsx commented Apr 1, 2022

What a strange error.

db = plyvel.DB(r"C:\Users\LAB\AppData\Local\Microsoft\Edge\User Data\Default\Local Storage\leveldb")
for k, v in db:
    print(k,v)
    
Traceback (most recent call last):
  File "F:\conda\lib\code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
  File "plyvel\_plyvel.pyx", line 841, in plyvel._plyvel.Iterator.__next__
  File "plyvel\_plyvel.pyx", line 886, in plyvel._plyvel.Iterator.real_next
  File "plyvel\_plyvel.pyx", line 91, in plyvel._plyvel.raise_for_status
plyvel._plyvel.CorruptionError: b'Corruption: corrupted compressed block contents'

@wbolster please help 🥶

@wbolster
Copy link
Owner

wbolster commented Apr 1, 2022

sorry, can't help with specific windows builds, but the root cause is likely this: #60 (comment)

@rkr87
Copy link

rkr87 commented Jul 6, 2022

Has anyone managed to get plyvel working on Windows with Snappy support? If so, how? I feel like I've tried every version of pre-compiled wheel available in the various threads relating to this issue here on Github, always with the same result;

plyvel._plyvel.CorruptionError: b'Corruption: corrupted compressed block contents'

I'm currently using plyvel_wheels-1.3.0-cp310-cp310-win_amd64.whl and it works fine to a point, however as soon as any other app applies any kind of compression to the db, I start getting the above error in plyvel.

@Avnsx
Copy link

Avnsx commented Jul 6, 2022

Has anyone managed to get plyvel working on Windows with Snappy support?

Nope and repo maintainer don't give a fuck about windows, so this is pretty much a helpless case plyvel will never be compatible with windows

@lifegpc
Copy link

lifegpc commented Jul 6, 2022

Has anyone managed to get plyvel working on Windows with Snappy support? If so, how? I feel like I've tried every version of pre-compiled wheel available in the various threads relating to this issue here on Github, always with the same result;

plyvel._plyvel.CorruptionError: b'Corruption: corrupted compressed block contents'

I'm currently using plyvel_wheels-1.3.0-cp310-cp310-win_amd64.whl and it works fine to a point, however as soon as any other app applies any kind of compression to the db, I start getting the above error in plyvel.

You should link leveldb with snappy.

@Avnsx
Copy link

Avnsx commented Jul 7, 2022

You should link leveldb with snappy.

@lifegpc If you are using google chrome and are on windows, you can just open Run (by pressing Windows + R) and paste %LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Storage\leveldb to find a not plyvel decompressable leveldb database. I also had written a entire issue ticket explaining this issue a while ago #137

@lifegpc
Copy link

lifegpc commented Jul 7, 2022

You should link leveldb with snappy.

@lifegpc If you are using google chrome and are on windows, you can just open Run (by pressing Windows + R) and paste %LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Storage\leveldb to find a not plyvel decompressable leveldb database. I also had written a entire issue ticket explaining this issue a while ago #137

set "INCLUDE=%INCLUDE%;Path to snappy directory"
set "LIB=%LIB%;Path to the snappy library"

You should set these variables before build leveldb.

@rkr87
Copy link

rkr87 commented Jul 7, 2022

You should link leveldb with snappy.

@lifegpc If you are using google chrome and are on windows, you can just open Run (by pressing Windows + R) and paste %LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Storage\leveldb to find a not plyvel decompressable leveldb database. I also had written a entire issue ticket explaining this issue a while ago #137

set "INCLUDE=%INCLUDE%;Path to snappy directory"
set "LIB=%LIB%;Path to the snappy library"

You should set these variables before build leveldb.

Are the pre-compiled wheels packaged with plyvel-wheels not linked with snappy? I'd assumed they had to be otherwise what's the point of providing them?

@synodriver
Copy link

Update: I successfully linked plyvel with leveldb and snappy (using conda install -c conda-forge leveldb)
image
but when I test it with Edge's data with db = plyvel.DB(r"C:\Users\LAB\AppData\Local\Microsoft\Edge\User Data\Default\Local Storage\leveldb"), just got a segfault (Process finished with exit code -1073741819 (0xC0000005)). So something must be wrong with leveldb or snappy on windows, I think.

@synodriver
Copy link

Envs:

(py310) C:\Windows\system32>conda  list|findstr leveldb
leveldb                   1.23                 h699a171_1    conda-forge
(py310) C:\Windows\system32>conda  list|findstr snappy
snappy                    1.1.10               hfb803bf_0    conda-forge
(py310) C:\Windows\system32>python -V
Python 3.10.12

My fork at https://github.com/synodriver/plyvel, maybe someone else can have a try with conda environment to see what's wrong, at least it can link with snappy.

@yangfan069
Copy link

不支持中文路径的解析吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests