Python Forum
Compiling a Python Package on Windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling a Python Package on Windows
#1
My apology if this may not be the right place to post my question. I recently had to update Windows 10 system on a Lenovo Yoga 910 laptop. Following the system update, I successfully installed Python 3.7.2, which I primarily use with Abjad, a music composition package.

The installation of the Abjad package was successful and all required components for the package appear to be successfully installed and callable from the terminal. However, when I compile it I get this error message:
Output:
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import abjad >>> note = abjad.Note() >>> abjad.show(note) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\top\show.py", line 51, in show result = abjad.persist(argument).as_pdf(**keywords) File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\system\PersistenceManager.py", line 234, in as_pdf **keywords File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\system\PersistenceManager.py", line 67, in as_ly lilypond_file = illustrate_function(**keywords) File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\core\Component.py", line 118, in __illustrate__ lilypond_file = abjad.LilyPondFile.new(self) File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\lilypondfile\LilyPondFile.py", line 990, in new use_relative_includes=use_relative_includes, File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\lilypondfile\LilyPondFile.py", line 147, in __init__ token = LilyPondVersionToken() File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\lilypondfile\LilyPondVersionToken.py", line 27, in __init__ version_string = abjad_configuration.get_lilypond_version_string() File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\site-packages\abjad\system\AbjadConfiguration.py", line 412, in get_lilypond_version_string proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE) File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__ restore_signals, start_new_session) File "C:\Users\nagym\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified >>>
I don't think that the problem I have may necessarily be related to the above Python package installation, given that the same package compiles just fine on Linux and Mac systems. In fact, the package worked perfectly on Windows before the update.

While I have already inquired about this on relevant Abjad forum sites, I wonder if perhaps some folks on this list with more extensive Windows-Python background may be able to read the above error message and point me in the right direction? Could it be that what I'm experiencing may be more like an IT issue, or perhaps a lack of proper Windows setup to compile a Python package?

Once again, my apology for the lack of knowledge to determine what's not working properly. Any help is greatly appreciated!

Thank you!
Reply
#2
i would consider making an issue on their github
Recommended Tutorials:
Reply
#3
Many thanks for your advice. I did post a comment on their GitHub.

Resetting the PC solved the problem. I'm still not sure what was the cause of this issue and why Python didn't want to compile the package earlier.

I appreciate the opportunity to ask the question.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run utilities from a Python package? LugosisGhost 1 388 Dec-27-2023, 12:00 PM
Last Post: Larz60+
  Python package not seen in VSCode fmccabe80 6 3,080 Mar-06-2023, 10:01 PM
Last Post: fmccabe80
  Python-for-Android:p4a: syntax error in main.py while compiling apk jttolleson 2 1,777 Sep-17-2022, 04:09 AM
Last Post: jttolleson
  Math Package in python Uma 1 1,462 Dec-12-2021, 02:01 PM
Last Post: jefsummers
  Compiling (PyInstaller issues) TheHolyPyGrenade 1 1,881 Apr-11-2021, 08:30 PM
Last Post: snippsat
  Python IDE doesn't see opencv-python package on my Jetson Nano sadhaonnisa 1 3,290 Oct-11-2020, 01:04 AM
Last Post: Larz60+
  Compiling SlicerCAT flaviu2 1 1,802 Sep-21-2020, 08:38 AM
Last Post: buran
  Compiling Python 3.8.5 source code results in build error Deepan 0 2,143 Sep-14-2020, 04:11 AM
Last Post: Deepan
  Compiling on win10 ebolisa 1 1,725 Sep-04-2020, 04:39 PM
Last Post: ebolisa
  Help needed for a python package keysson 1 2,175 Sep-02-2020, 03:37 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020