#πŸ”’ GitHub Post

73 messages Β· Page 1 of 1 (latest)

runic kindle
#

Hi, I stumbled upon a GitHub post stating

Download and Install:
pip install pianoplayer

When i put into my cmd prompt, it just says not recognised

deep fulcrumBOT
#

@runic kindle

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.

hard basin
#

try py -m pip install pianoplayer

runic kindle
#

@hard basin I get prompted

"Collecting pianoplayer
Could not fetch URL https://pypi.python.org/simple/pianoplayer/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) - skipping
Could not find a version that satisfies the requirement pianoplayer (from versions: )
No matching distribution found for pianoplayer"

#

This is the github for reference

#

I've installed Python 3.6.0 as mentioned in the post

#

Am I missing something else?

eternal depot
#

3.6 is outdated. You should try to install the latest version of python.

runic kindle
#

I've reinstalled Python 3.13.2 - Feb. 4, 2025

#

this clearly says to shutdown LOL

terse kettle
#

<@&831776746206265384> not the first time he's doing this

void stream
#

!warn 1156197242693238784 You will be banned if you post malicious code again.

deep fulcrumBOT
#

:incoming_envelope: :ok_hand: applied warning to @spiral hill.

void stream
#

Please make sure that all subsequent messages in this thread are for helping the OP. Do not comment on the moderation that just took place.

runic kindle
#

Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

Γ— Preparing metadata (pyproject.toml) did not run successfully.
β”‚ exit code: 1
╰─> [21 lines of output]
+ C:\Users\naqif\AppData\Local\Programs\Python\Python313\python.exe C:\Users\naqif\AppData\Local\Temp\pip-install-1v_3dep9\numpy_6249db4ebf0c48939d8c8fe05c0fd8ba\vendored-meson\meson\meson.py setup C:\Users\naqif\AppData\Local\Temp\pip-install-1v_3dep9\numpy_6249db4ebf0c48939d8c8fe05c0fd8ba C:\Users\naqif\AppData\Local\Temp\pip-install-1v_3dep9\numpy_6249db4ebf0c48939d8c8fe05c0fd8ba.mesonpy-dh8whvpv -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\naqif\AppData\Local\Temp\pip-install-1v_3dep9\numpy_6249db4ebf0c48939d8c8fe05c0fd8ba.mesonpy-dh8whvpv\meson-python-native-file.ini

#

The Meson build system
Version: 1.2.99
Source dir: C:\Users\naqif\AppData\Local\Temp\pip-install-1v_3dep9\numpy_6249db4ebf0c48939d8c8fe05c0fd8ba
Build dir: C:\Users\naqif\AppData\Local\Temp\pip-install-1v_3dep9\numpy_6249db4ebf0c48939d8c8fe05c0fd8ba.mesonpy-dh8whvpv
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
  Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
  Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"

  A full log can be found at C:\Users\naqif\AppData\Local\Temp\pip-install-1v_3dep9\numpy_6249db4ebf0c48939d8c8fe05c0fd8ba\.mesonpy-dh8whvpv\meson-logs\meson-log.txt
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Γ— Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

#

This error appeared

eternal depot
#

!paste show the full output

deep fulcrumBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

eternal depot
#

including the command you ran

runic kindle
#

hang on

eternal depot
#

this package depends on numpy<2.0 which doesn't support python 3.13. Downgrade to 3.12

runic kindle
#

okay

#

I believed it installed but when I run the .bat file, nothing opens

deep fulcrumBOT
runic kindle
eternal depot
#

What bat file?

runic kindle
#

which they mention to run after installing

eternal depot
#

pianoplayer.bat?

runic kindle
#

yup

eternal depot
#

That depends on anaconda

runic kindle
eternal depot
#

you need to edit line 10 to the path to your python

runic kindle
#

@ECHO OFF
REM ----------------------------------------------------------
REM Windows-10 users
REM Place this file on your desktop.
REM
REM Double clicking it will open up a GUI
REM
REM Set here the path to your Anaconda or Python installation
REM
SET anaconda_path="C:\Python36"
REM
REM ----------------------------------------------------------

ECHO Starting pianoplayer...
CALL %anaconda_path%Scriptsactivate
python %anaconda_path%Scriptspianoplayer %
ECHO Closing window...
REM PAUSE

#

to this?

eternal depot
#

Except you're not using python 3.6, are you?

runic kindle
#

so 31

#

"SET anaconda_path="C:\Python3.12"

eternal depot
#

3.12

runic kindle
eternal depot
#

you've got an extra decimal point in there

#

double check that path

runic kindle
#

so this is currently the updated bat file

@ECHO OFF
REM ----------------------------------------------------------
REM Windows-10 users:
REM Place this file on your desktop.
REM
REM Double clicking it will open up a GUI
REM
REM Set here the path to your Anaconda or Python installation:
REM
SET anaconda_path="C:\Python3.12"
REM
REM ----------------------------------------------------------

ECHO Starting pianoplayer...
CALL "%anaconda_path%\Scripts\activate"
python "%anaconda_path%\Scripts\pianoplayer" %*
ECHO Closing window...
REM PAUSE

#

when i run it it just closes

eternal depot
#

on the last line, remove REM

#

it should stay open so you can inspect any error message

runic kindle
#

Starting pianoplayer...
The system cannot find the path specified.
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.
Closing window...
Press any key to continue . . .

eternal depot
#

your path is wrong

runic kindle
#

C:\Users\naqif>where python
C:\Users\naqif\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\naqif\AppData\Local\Programs\Python\Python312\python.exe

#

shd i use "C:\Users\naqif\AppData\Local\Programs\Python\Python312"

eternal depot
#

yes

#

I'd also recommend removing python as an execution aliases from the windows settings app

runic kindle
#

the file opens now however the prompt given in the cmd is

#

Starting pianoplayer...
'""C:\Users\naqif\AppData\Local\Programs\Python\Python312"\Scripts\activate"' is not recognized as an internal or external command,
operable program or batch file.

eternal depot
#

probably quoting issues

runic kindle
#

so can js ignore right if it opens up alrd

eternal depot
#

actually, Scripts\activate only exists in virtualenvs, so yes you can ignore it.

#

Though I'd replace the python call with py -3.12 to future proof it

runic kindle
#

okay thanks

runic kindle
eternal depot
#

it's in C:\Windows

#

assuming you didn't uncheck "install py launcher" during installation

runic kindle
eternal depot
#

on the line that starts with python, replace python with py -3.12

runic kindle
#

okay

eternal depot
#

or the full path to the python exe

deep fulcrumBOT
#
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.