You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable to compile as before on macOS via the build-macos-app.sh script
Steps to reproduce:
It looks like some files are no longer required for existing deployment on other platforms like:
requirements.txt, setup.cfg, setup.py
Related code:
I restored them from a previous fork from my repo, but I still can't anymore compile, maybe the structure or something else is still missing.
./build-macos-app.sh
Requirement already satisfied: pip==25.0.1 in ./macbuildenv/lib/python3.13/site-packages (25.0.1)
Requirement already satisfied: setuptools==75.2.0 in ./macbuildenv/lib/python3.13/site-packages (75.2.0)
Requirement already satisfied: pyserial==3.5 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 1)) (3.5)
Requirement already satisfied: PyQt6==6.7.1 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 2)) (6.7.1)
Requirement already satisfied: PyQt6-sip==13.8.0 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 3)) (13.8.0)
Requirement already satisfied: sip==6.8.6 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 4)) (6.8.6)
Requirement already satisfied: numpy==2.1.2 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 5)) (2.1.2)
Requirement already satisfied: scipy==1.14.1 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 6)) (1.14.1)
Requirement already satisfied: Cython==3.0.11 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 7)) (3.0.11)
Requirement already satisfied: setuptools==75.2.0 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 8)) (75.2.0)
Requirement already satisfied: setuptools-scm==8.1.0 in ./macbuildenv/lib/python3.13/site-packages (from -r requirements.txt (line 9)) (8.1.0)
Requirement already satisfied: PyQt6-Qt6<6.8.0,>=6.7.0 in ./macbuildenv/lib/python3.13/site-packages (from PyQt6==6.7.1->-r requirements.txt (line 2)) (6.7.3)
Requirement already satisfied: packaging in ./macbuildenv/lib/python3.13/site-packages (from sip==6.8.6->-r requirements.txt (line 4)) (24.2)
Requirement already satisfied: PyInstaller==6.11.0 in ./macbuildenv/lib/python3.13/site-packages (6.11.0)
Requirement already satisfied: setuptools>=42.0.0 in ./macbuildenv/lib/python3.13/site-packages (from PyInstaller==6.11.0) (75.2.0)
Requirement already satisfied: altgraph in ./macbuildenv/lib/python3.13/site-packages (from PyInstaller==6.11.0) (0.17.4)
Requirement already satisfied: pyinstaller-hooks-contrib>=2024.8 in ./macbuildenv/lib/python3.13/site-packages (from PyInstaller==6.11.0) (2025.1)
Requirement already satisfied: packaging>=22.0 in ./macbuildenv/lib/python3.13/site-packages (from PyInstaller==6.11.0) (24.2)
Requirement already satisfied: macholib>=1.8 in ./macbuildenv/lib/python3.13/site-packages (from PyInstaller==6.11.0) (1.16.3)
/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/setuptools_scm/_integration/setuptools.py:92: UserWarning: version of None already set
warnings.warn(f"version of {dist_name} already set")
/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:71: _MissingDynamic: `optional-dependencies` defined outside of `pyproject.toml` is ignored.
!!
********************************************************************************
The following seems to be defined outside of `pyproject.toml`:
`optional-dependencies = {'testing': ['setuptools', 'pytest', 'pytest-cov']}`
According to the spec (see the link below), however, setuptools CANNOT
consider this value unless `optional-dependencies` is listed as `dynamic`.
https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
To prevent this problem, you can list `optional-dependencies` under `dynamic` or alternatively
remove the `[project]` table from your file and rely entirely on other means of
configuration.
********************************************************************************
!!
_handle_missing_dynamic(dist, project_table)
/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:78: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
corresp(dist, value, root_dir)
0.7.2.post1.dev0+gcc7c91d.d20250219
44 INFO: PyInstaller: 6.11.0, contrib hooks: 2025.1
44 INFO: Python: 3.13.2
87 INFO: Platform: macOS-15.3.1-arm64-arm-64bit-Mach-O
87 INFO: Python environment: /Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv
88 INFO: wrote /Users/nechry/Documents/GitHub/nanovna-saver/NanoVNASaver.spec
105 INFO: Removing temporary files and cleaning cache in /Users/nechry/Library/Application Support/pyinstaller
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/importlib/metadata/__init__.py", line 407, in from_name
return next(iter(cls.discover(name=name)))
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/bin/pyinstaller", line 8, in <module>
sys.exit(_console_script_run())
~~~~~~~~~~~~~~~~~~~^^
File "/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/PyInstaller/__main__.py", line 231, in _console_script_run
run()
~~~^^
File "/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/PyInstaller/__main__.py", line 215, in run
run_build(pyi_config, spec_file, **vars(args))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/PyInstaller/__main__.py", line 70, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/PyInstaller/building/build_main.py", line 1252, in main
build(specfile, distpath, workpath, clean_build)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/PyInstaller/building/build_main.py", line 1192, in build
exec(code, spec_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nechry/Documents/GitHub/nanovna-saver/NanoVNASaver.spec", line 5, in <module>
datas += copy_metadata('NanoVNASaver', recursive=True)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nechry/Documents/GitHub/nanovna-saver/macbuildenv/lib/python3.13/site-packages/PyInstaller/utils/hooks/__init__.py", line 970, in copy_metadata
dist = importlib_metadata.distribution(package_name)
File "/opt/homebrew/Cellar/[email protected]/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/importlib/metadata/__init__.py", line 960, in distribution
return Distribution.from_name(distribution_name)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/importlib/metadata/__init__.py", line 409, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for NanoVNASaver
tar: NanoVNASaver.app: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
Other information:
I will be happy to help and adapt the build for macOS, but I don't want to introduce instabilities to others supported platform.
thank for the great job
The text was updated successfully, but these errors were encountered:
Bug Report
NanoVNA-Saver version:
v0.7.2
Current behavior:
Impossible to compile on macOS...
Expected behavior:
Enable to compile as before on macOS via the build-macos-app.sh script
Steps to reproduce:
It looks like some files are no longer required for existing deployment on other platforms like:
requirements.txt, setup.cfg, setup.py
Related code:
I restored them from a previous fork from my repo, but I still can't anymore compile, maybe the structure or something else is still missing.
Other information:
I will be happy to help and adapt the build for macOS, but I don't want to introduce instabilities to others supported platform.
thank for the great job
The text was updated successfully, but these errors were encountered: