cloudmatrix / esky

an auto-update framework for frozen python apps
BSD 3-Clause "New" or "Revised" License
362 stars 74 forks source link

Error for running python setup.py bdist_esky #139

Closed xavierzhao closed 6 years ago

xavierzhao commented 8 years ago

D:\sources\python\gc>python setup.py bdist_esky running bdist_esky error: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\Users\ADMINI~1\AppData\Local\Temp\tmp_urqt8tf\scripts\main.py'

Here is my setup.py:

from esky import bdist_esky from esky.bdist_esky import Executable
from distutils.core import setup

executables = [Executable('main.py', icon='gc.ico', gui_only=True)]

setup(
name='somename', version='0.1',
scripts=executables, options = {"bdist_esky": { "freezer_module":"cxfreeze"} } )

Thanks for your help

timeyyy commented 8 years ago

i am guessing the Chinese characters say missing file or directory?

The Executable class is looking relative to your current working directory instead of the more intuitive relative directory to the file, if you want to make a pull request for this i would accept it.

The work around is to make an absolute path to your file.

here = os.path.basename(__file__)
os.path.abspath(os.path.join(here, 'main.py'))
xavierzhao commented 8 years ago

@timeyyy not missing file or directory, it says [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\ADMINI~1\AppData\Local\Temp\tmp_urqt8tf\scripts\main.py'

timeyyy commented 8 years ago

Did you get through the tutorial ok? Did you install esky from pypi or from github?

kinnarr commented 8 years ago

It looks like the same error as in issue #57

timeyyy commented 8 years ago

Are you able to freeze and run your app with cxfreeze?

xavierzhao commented 8 years ago

@timeyyy I am install esky from pypip and I can run my app with cxfreeze.

xavierzhao commented 8 years ago

tutorial is ok.

timeyyy commented 8 years ago

@xavierzhao is it possible for you to zip the files and send them to me so i can test them?

rfk commented 6 years ago

Unfortunately this project is no longer actively maintained, so I'm going to move it into archive mode:

https://rfk.id.au/blog/entry/archiving-open-source-projects/