-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libpython3.10.dylib is not a path referenced from DarwinFile #2691
Comments
I am using the conda environment. |
I have tested with some samples, and I cannot reproduce this error. Relevant part:
Run:
|
I created a virtual environment using conda and installed the package using pip. In this case, using cx_freeze will result in this error: libpython3.10. dylib is not a path referenced from DarlinFile. |
This is not recommended, and is the reason that led me to get directly involved in distributing cx_Freeze in conda on the same day that I release it in pip. |
Did you test on m2? This issue is reproducible on m2 mac.
|
@itabhijitb Are you using conda environment and are installing cx_Freeze using pip? If so, it is reproducible. |
No I am not using a conda environment. Note, by conda environment I assume you meant conda virtual environment |
Show the information from |
|
run |
|
Yah, you are using conda and installed cx_Freeze using pip, so the correct is: |
|
conda install cx_freeze |
(base) abhijitbhattacharjee@abhijit-ltmraq6 Flappy % conda install cx_freeze
PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
To search for alternate channels that may provide the conda package you're
and use the search bar at the top of the page. |
try: |
Note, its not a valid command. So, I tried the right command still it failed when verifying transaction. See below
|
Uninstall the dependencies that are installed with pip, then install with conda.
|
You can test the PR with: Note: This PR only adds a warning and updates the documentation about the usage of cx_Freeze with conda. https://cx-freeze--2722.org.readthedocs.build/en/2722/installation.html |
Prerequisite
Describe the bug
I encountered an error message when using cx_freeze to package on Mac OS:
error: Path .../lib/libpython3.10.dylib is not a path referenced from DarwinFile
To Reproduce
Steps to reproduce the behavior (a setup.py or a minimal code sample will be good)
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: