ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
349 stars 35 forks source link

error: [Errno 13] Permission denied: 'build/bdist.macosx-10.14-intel/python2.7-standalone/app/lib-dynload' #452

Open Dog517 opened 2 years ago

Dog517 commented 2 years ago

Hello, whenever I try to build my app, it says :

error: [Errno 13] Permission denied: 'build/bdist.macosx-10.14-intel/python2.7-standalone/app/lib-dynload'

and its driving me nuts! Can anyone help?

ronaldoussoren commented 2 years ago

Is this something you can reproduce in a project that you can share publicly?

Btw. Please consider moving away from Python 2.7, maintenance on Python 2 has stopped in 2020 and the next feature release of py2app will no longer support Python 2.

Dog517 commented 2 years ago

But i am on python 3 i thought...

ronaldoussoren commented 2 years ago

Interesting. The error message mentions "python2.7-standalone" which should only happen when using Python 2.7.

Could you check if removing the "build" and "dist" folders fixes the problem?

Also check if you have an active virtual environment if you start python3 using "python". That's something that has bitten me multiple times, and continues to do so from time to time.