#🔒 Cant install plyvel/leveldb on windows11 python version 3.12

38 messages · Page 1 of 1 (latest)

spiral kite
#

Hey guys, this is my 3rd attempt
I cant install plyvel or leveldb, can someone help me?

hybrid shoalBOT
#

@spiral kite

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

stiff zenith
#

You should show a transcript of the install failure.

spiral kite
stiff zenith
# spiral kite

Looking at this: https://plyvel.readthedocs.io/en/latest/installation.html
it might only work on linux.

Anyway, it looks like your install relies on having the leveldb source code lying around (at least the library and header files).

      plyvel/_plyvel.cpp(1227): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "leveldb/db.h": No such file or directory
spiral kite
finite turret
#

Plyvel is trying to compile a C++ extension and cannot find LevelDB headers (leveldb/db.h). Plyvel is a Python binding for LevelDB, so you need LevelDB installed on your system before it can compile.

#

Try to install like this
choco install leveldb

stiff zenith
#

I'm not a Windows person.

#

You could run inside linux for this. Windows Services For Linux runs a proper Linux VM on your windows box. ANd if you have docker, docker also runs a linux system.

spiral kite
finite turret
#

What is it

spiral kite
# finite turret What is it

choco : Die Benennung "choco" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des
Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1

  • choco install leveldb
  •   + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
finite turret
#

That error means Chocolatey isn't installed on your system.

#
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
finite turret
#

PS

#

PowerShell

#

As admin

spiral kite
#

Set-ExecutionPolicy : Die Benennung "
Set-ExecutionPolicy" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren
Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und
wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1

  •   + CategoryInfo          : ObjectNotFound: (`
    

Set-ExecutionPolicy:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

WARNUNG: An existing Chocolatey installation was detected. Installation will not continue. This script will not
overwrite existing installations.
If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation
again.

Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.
If the existing installation is not functional or a prior installation did not complete, follow these steps:

  • Backup the files at the path listed above so you can restore your previous installation if needed.
  • Remove the existing installation manually.
  • Rerun this installation script.
  • Reinstall any packages previously installed, if needed (refer to the lib folder in the backup).

Once installation is completed, the backup folder is no longer needed and can be deleted.
: Die Benennung "" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren
Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und
wiederholen Sie den Vorgang.
In Zeile:5 Zeichen:1

  •   + CategoryInfo          : ObjectNotFound: (``:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
finite turret
#

Just google anddownload chocolatey

spiral kite
finite turret
#

run the command i gave you above bro

#

choco install leveldb

spiral kite
spiral kite
# finite turret run the command i gave you above bro

error again in the ps

PS C:\WINDOWS\system32> choco install leveldb
Chocolatey v2.4.3
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current Chocolatey configuration.  If you
   want to halt when this occurs, then either set the global feature
   using:
     choco feature enable --name="exitOnRebootDetected"
   or pass the option --exit-when-reboot-detected.

Installing the following packages:
leveldb
By installing, you accept licenses for the packages.
leveldb not installed. The package was not found with the source(s) listed.
 Source(s): 'https://community.chocolatey.org/api/v2/'
 NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
 the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
 assistance.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - leveldb - leveldb not installed. The package was not found with the source(s) listed.
 Source(s): 'https://community.chocolatey.org/api/v2/'
 NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
 the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
 assistance.```
finite turret
#

So reboooot

#

rebooooooooooooooooooooot

earnest drum
#

you should probably just follow LevelDB's instructions on how to build it instead of using chocolatey, whatever that is

spiral kite
#

yeah fuck all of this, chat gbt build the part so i dont need leveldb or plyvel

#

anyways thanks for the help guys

hybrid shoalBOT
#
Python help channel closed using Discord native close action

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.