Re: [PyInstaller] Re: OSError: Python library not found: Python, .Python, libpython3.5.dylib
All our documentation is hosted on pyinstaller.readthedocs.io - the python hosted URL just redirects to the home page of the docs. Legorooj Original Message On Aug 6, 2020, 11:34, Val Huber wrote: > The link is no longer valid. > > I have hit the same issue, having tried a number of solutions including > Dave's below. (Warning, new Python user). > > My project is here if you want to recreate: > https://github.com/valhuber/fab-quickstart > > My notes are in the project ($pyinstall fails.txt), highlights of solutions > attempted: > >> running Mac, Catalina >> >> cd fab_quickstart >> pyinstaller cli.py # fails... >> OSError: Python library not found: libpython3.8.dylib, libpython3.8m.dylib, >> Python, .Python >> This would mean your Python installation doesn't come with proper library >> files. >> This usually happens by missing development package, or unsuitable build >> parameters of Python installation. >> >> * On Debian/Ubuntu, you would need to install Python development packages >> * apt-get install python3-dev >> * apt-get install python-dev >> * If you're building Python by yourself, please rebuild your Python with >> `--enable-shared` (or, `--enable-framework` on Darwin) >> >> python installed via pyenv install 3.8.3, at: >> /Users/val/.pyenv/versions/3.8.3/lib/python3.8 >> >> Research found these suggestions, all failed in same way. >> >> This page: >> https://pyinstaller.readthedocs.io/en/stable/when-things-go-wrong.html >> says set DYLD_LIBRARY_PATH -- same result >> export DYLD_LIBRARY_PATH=/Users/val/.pyenv/versions/3.8.3/lib/python3.8 >> or >> export DYLD_LIBRARY_PATH=/Users/val/.pyenv/versions/3.8.3-dev/lib/python3.8 >> >> pyenv install 3.8-dev -- same result >> >> https://stackoverflow.com/questions/43067039/pyinstaller-error-oserror-python-library-not-found-libpython3-4mu-so-1-0-lib >> libpython3.4m.so.1.0 --> /usr/lib -- but can't find mac version >> >> https://groups.google.com/forum/#!searchin/pyinstaller/pyinstaller$20OSError$3A$20Python$20library$20not$20found/pyinstaller/UJNSXQ6EI4M/KTVYFPVCAQAJ >> brew install pyqt -- same result > > On Tuesday, September 6, 2016 at 7:49:08 AM UTC-7, davecortesi wrote: > >>> OSError: Python library not found: Python, .Python, libpython3.5.dylib >> >> This is actually in the manual, >> >> http://pythonhosted.org/PyInstaller/when-things-go-wrong.html?highlight=static#build-time-python-errors > > -- > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pyinstaller+unsubscr...@googlegroups.com. > To view this discussion on the web visit > [https://groups.google.com/d/msgid/pyinstaller/1c80e5fb-8d17-4b05-a45d-2e99ee204eaao%40googlegroups.com](https://groups.google.com/d/msgid/pyinstaller/1c80e5fb-8d17-4b05-a45d-2e99ee204eaao%40googlegroups.com?utm_medium=email&utm_source=footer). -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/YkyciTugydiA6za-lgGuwnt0XVmQEFcf30KJpxUMCb4iCMfkpuCxlmW2YRk0B_D6jRMbY0f8CRLO0zqQPB9TuF2KdHMXePwOYbQBTv9AELA%3D%40protonmail.com.
[PyInstaller] Re: OSError: Python library not found: Python, .Python, libpython3.5.dylib
The link is no longer valid. I have hit the same issue, having tried a number of solutions including Dave's below. (Warning, new Python user). My project is here if you want to recreate: https://github.com/valhuber/fab-quickstart My notes are in the project ($pyinstall fails.txt), highlights of solutions attempted: running Mac, Catalina cd fab_quickstart pyinstaller cli.py # fails... OSError: Python library not found: libpython3.8.dylib, libpython3.8m.dylib, Python, .Python This would mean your Python installation doesn't come with proper library files. This usually happens by missing development package, or unsuitable build parameters of Python installation. * On Debian/Ubuntu, you would need to install Python development packages * apt-get install python3-dev * apt-get install python-dev * If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin) python installed via pyenv install 3.8.3, at: /Users/val/.pyenv/versions/3.8.3/lib/python3.8 Research found these suggestions, all failed in same way. This page: https://pyinstaller.readthedocs.io/en/stable/when-things-go-wrong.html says set DYLD_LIBRARY_PATH -- same result export DYLD_LIBRARY_PATH=/Users/val/.pyenv/versions/3.8.3/lib/python3.8 or export DYLD_LIBRARY_PATH=/Users/val/.pyenv/versions/3.8.3-dev/lib/python3.8 pyenv install 3.8-dev -- same result https://stackoverflow.com/questions/43067039/pyinstaller-error-oserror-python-library-not-found-libpython3-4mu-so-1-0-lib libpython3.4m.so.1.0 --> /usr/lib -- but can't find mac version https://groups.google.com/forum/#!searchin/pyinstaller/pyinstaller$20OSError$3A$20Python$20library$20not$20found/pyinstaller/UJNSXQ6EI4M/KTVYFPVCAQAJ brew install pyqt -- same result On Tuesday, September 6, 2016 at 7:49:08 AM UTC-7, davecortesi wrote: > > > OSError: Python library not found: Python, .Python, libpython3.5.dylib >> >> > This is actually in the manual, > > > http://pythonhosted.org/PyInstaller/when-things-go-wrong.html?highlight=static#build-time-python-errors > > > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/1c80e5fb-8d17-4b05-a45d-2e99ee204eaao%40googlegroups.com.
[PyInstaller] Re: OSError: Python library not found: Python, .Python, libpython3.5.dylib
I've hit this error as well and Googling turned up some potential issues with the way the Anaconda library is currently built. If you do an "otool -L" on that dylib, you'll see it doesn't have @rpath in front of it. Macs are very picky in how they chose to load a dylib and names and locations need to match exactly. Do yourself a favor... I just went through hours and hours of trying to get the current Anaconda working well to no avail. I tried MacPorts to no avail. I made a VM and used homebrew and everything works perfectly without any hint of mucking with anything. Yes, I needed to install SciPy and stuff manually, but pip handled the vast majority of it just fine. The one exception was PyQt, which needed "brew install pyqt" and that was it. Craig On Monday, September 5, 2016 at 5:14:25 AM UTC-7, al...@vitallabs.co wrote: > > Hello, > > I'm trying to use pyinstaller to build an application on OSX. I'm in a > virtual environment created using conda. When I run pyinstall I get the > following error ... > > OSError: Python library not found: Python, .Python, libpython3.5.dylib > > Has anyone else encountered this error from a conda environment and is > there a workaround? > > Thanks! > Alan > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To post to this group, send email to pyinstaller@googlegroups.com. Visit this group at https://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.
[PyInstaller] Re: OSError: Python library not found: Python, .Python, libpython3.5.dylib
> OSError: Python library not found: Python, .Python, libpython3.5.dylib > > This is actually in the manual, http://pythonhosted.org/PyInstaller/when-things-go-wrong.html?highlight=static#build-time-python-errors -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To post to this group, send email to pyinstaller@googlegroups.com. Visit this group at https://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.