Failed to compile in standalone mode on macOS against pyodbc
#3 479 ouverte le 20 mai 2025
Métriques du dépôt
- Stars
- (10 351 stars)
- Métriques de merge PR
- (Merge moyen 5j 12h) (6 PRs mergées en 30 j)
Description
Got such an error message:
FATAL: Error, problem with dependency scan of '~/GitHub/***/lib/python3.11/site-packages/pyodbc.cpython-311-darwin.so' with '/opt/homebrew/opt/unixodbc/lib/libodbc.2.dylib' please report the bug.
Unfortunately, it seems that the issue template is not available.
-
Nuitka version, full Python version, flavor, OS, etc. as output by this exact command.
python -m nuitka --version
2.7.3 Commercial: None Python: 3.11.9 (v3.11.9:de54cf5be3, Apr 2 2024, 07:12:50) [Clang 13.0.0 (clang-1300.0.29.30)] Flavor: CPython Official Executable: ~/GitHub/***/bin/python3.11 OS: Darwin Arch: arm64 macOSRelease: 15.5 Version C compiler: /usr/bin/clang (clang 17.0.0). -
How did you install Nuitka and Python
pip install --upgrade nuitka
-
The specific PyPI names and versions
pyodbc 5.1.0
-
Many times when you get an error from Nuitka, your setup may be special
Nothing special, this problem could be easily reproduced by following steps.
-
Also supply a Short, Self Contained, Correct, Eligible Example
- Install PyODBC pacakge and dependencies according to this instruction.
- Create a very simple Python source file:
example.py:
import pyodbc print(pyodbc.drivers())- Run command:
nuitka --mode=standalone example.py, then got such outputs:
Nuitka-Options: Used command line options: Nuitka-Options: --mode=standalone example.py Nuitka: Starting Python compilation with: Nuitka: Version '2.7.3' on Python 3.11 (flavor 'CPython Official') commercial grade 'not installed'. Nuitka-Plugins:anti-bloat: Not including '_bisect' automatically in order to avoid bloat, but this may cause: may slow down by using fallback implementation. Nuitka-Plugins:anti-bloat: Not including 'socket' automatically in order to avoid bloat, but this may cause: can break calls of 'email.utils.make_msgid()'. Nuitka: Completed Python level compilation and optimization. Nuitka: Generating source code for C backend compiler. Nuitka: Running data composer tool for optimal constant value handling. Nuitka: Running C compilation via Scons. Nuitka-Scons: Backend C compiler: clang (clang 17.0.0). Nuitka-Scons: Backend C linking with 6 files (no progress information available for this stage). Nuitka-Scons: Compiled 6 C files using ccache. Nuitka-Scons: Cached C files (using ccache) with result 'cache miss': 6 FATAL: Error, problem with dependency scan of '~/GitHub/smartapps-ai/apps/.devenv/lib/python3.11/site-packages/pyodbc.cpython-311-darwin.so' with '/opt/homebrew/opt/unixodbc/lib/libodbc.2.dylib' please report the bug. -
Provide in your issue the Nuitka options used
No Nuitka Options in code but just a line of command line:
nuitka --mode=standalone example.py -
Avoid unnecessary options
√
-
Note if this is a regression
Not sure, this is our first attempt to use
Nuitka -
Consider getting commercial support
Indeed this issue happend during our evaluation process to determine if we need purchase a commercial license.