Comments (2)
Hi Ronald, thank you for your response, it cleared up some things.
Let me just start by making sure I wasn't ambiguous in my first note. I only created a symlink in /Library/Frameworks/Python.framework/Versions/Current/lib
; the symlink Current -> 3.12
in dir /Library/Frameworks/Python.framework/Versions
was already present as part of the python package install that I downloaded (for macOS) from python.org.
However, your question as to why I would even have need for adding the path in the first place made me realize I must have something wrong in my environment if others aren't seeing this issue on macOS.
After some digging, it turns out to be a toolchain issue. On this system I use python from the package downloaded from python.org. But there was some leftover stuff from homebrew on the same system. Homebrew downloads python3 as a dependency for some of its other packages, whether you explicitly download it yourself or not.
Once I uninstalled the brew pyinstaller it worked fine without having to set pathex=['/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages']
in the project.spec file.
Thank you for your clear explanation. It pointed me in the right direction to figure out the toolchain conflict.
from cpython.
I'm -1 on this, the links in Python.framework are there to conform to platform conventions a "lib" or "bin" symlink doesn't conform to these conventions. Having the symlink can also lead to confusing behaviour when having multiple Python versions installed at the same time (as I commonly do).
Furthermore the library path can easily be retrieved using sysconfig.get_paths()
, and that works on all platforms.
BTW. Are you sure you need to specify a path to the site-packages directory? I'd expect that pyinstaller can find that on its own.
from cpython.
Related Issues (20)
- Spill the stack pointer across calls in the interpreter. HOT 2
- Utilize last character gap for two-way periodic needles
- During decompression python tries to read sys.maxsize - which fail on start with MemoryError in case of any resource memory limit set.
- Wrong `follow_symlinks` default fallback implementation HOT 5
- Error exiting the new REPL with Ctrl+Z on Windows HOT 3
- [3.12] Lambda generators cause assertion failure: `python: Objects/genobject.c:400: gen_close: Assertion `exception_handler_depth > 0' failed.` HOT 3
- Improve ``NameError`` message when non-mangled name exists in the global scope HOT 9
- Flaky test `test_asyncio_repl_is_ok` in `test_repl` HOT 7
- Python 3.11 and above adding default module search path from the “PythonPath” registry key if the standard library was found already HOT 4
- Type parameters: Incorrect text in SyntaxError for disallowed expression HOT 8
- Multiple bugs in `multiprocessing.managers`: pickling, nesting, etc
- Cannot define Enum class with a mixin class derived from ABC HOT 14
- test_exc() helper in test_format.py doesn't fail if exception message unexpected HOT 6
- Count the number of weekends between 2 dates HOT 9
- Dynamic string search algorithm selection HOT 1
- RegexFlag parameters not described in most re methods. HOT 3
- Tests badge in README shows incorrect status
- A small typo in Doc/c-api/monitoring.rst HOT 2
- Generic class with broken `__eq__` cannot be specialized
- Wrap some multi-line macros in ``do { ... } while(0)`` in ``symtable.c`` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.