#π GitHub Post
73 messages Β· Page 1 of 1 (latest)
@runic kindle
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.
try py -m pip install pianoplayer
@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
Automatic fingering generator for piano scores. Contribute to marcomusy/pianoplayer development by creating an account on GitHub.
I've installed Python 3.6.0 as mentioned in the post
Am I missing something else?
3.6 is outdated. You should try to install the latest version of python.
<@&831776746206265384> not the first time he's doing this
!warn 1156197242693238784 You will be banned if you post malicious code again.
:incoming_envelope: :ok_hand: applied warning to @spiral hill.
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.
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
!paste show the full output
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.
including the command you ran
this package depends on numpy<2.0 which doesn't support python 3.13. Downgrade to 3.12
Click here to see this code in our pastebin.
this to show that all installed
What bat file?
its the one in this zip
which they mention to run after installing
pianoplayer.bat?
yup
That depends on anaconda
you need to edit line 10 to the path to your python
@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?
Except you're not using python 3.6, are you?
3.12
like this?
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
on the last line, remove REM
it should stay open so you can inspect any error message
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 . . .
your path is wrong
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"
yes
I'd also recommend removing python as an execution aliases from the windows settings app
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.
probably quoting issues
so can js ignore right if it opens up alrd
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
okay thanks
this is in the path is it?
it's in C:\Windows
assuming you didn't uncheck "install py launcher" during installation
wait sorry, i'm abit confused, how do i do that
on the line that starts with python, replace python with py -3.12
okay
or the full path to the python exe
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.