Python Py2app packaging directories -
am getting error calling method group of python files bundled py2app
(1) have read various info on py2app importing large directories or package groups etc. seems have problems interacting said files. hard coded each file included via setup, still says can't call function file 'random.py' generates own script run through 'happy.py' <- runs on own , dependencies correct (imports etc.)
(2) make more complex app run 100% via terminal i'm not sure if need send people .exe in order use since assume py2app run script without options user input..
setup file """ setup.py script generated py2applet usage: python setup.py py2app """ setuptools import setup app = ['happy.py'] data_files = ['happy.pyc', 'random.py', 'random.pyc', 'happy.py', 'screener.py', '__init__.py', 'screener.pyc', 'setup.py'] options = {'argv_emulation': true} setup( app=app, data_files=data_files, options={'py2app': options}, py_modules=['random', 'screener', '__init__','happy',], setup_requires=['py2app'], ) error out(given .exe inside of .app, since .app runs console error 255 0 info) | | _____ _____| | / | sep 9 04:39:12 softroot.local happy[39888] <notice>: | |/ _ \ \ / / _ \ | | | sep 9 04:39:12 softroot.local happy[39888] <notice>: | | __/\ v / __/ | | | sep 9 04:39:12 softroot.local happy[39888] <notice>: |_|\___| \_/ \___|_| |_| sep 9 04:39:12 softroot.local happy[39888] <notice>: sep 9 04:39:12 softroot.local happy[39888] <notice>: traceback (most recent call last): sep 9 04:39:12 softroot.local happy[39888] <notice>: file "/users/random/desktop/bla/dist/happy.app/contents/resources/__boot__.py", line 373, in <module> sep 9 04:39:12 softroot.local happy[39888] <notice>: _run() sep 9 04:39:12 softroot.local happy[39888] <notice>: file "/users/random/desktop/bla/dist/happy.app/contents/resources/__boot__.py", line 358, in _run sep 9 04:39:12 softroot.local happy[39888] <notice>: exec(compile(source, path, 'exec'), globals(), globals()) sep 9 04:39:12 softroot.local happy[39888] <notice>: file "/users/random/desktop/bla/dist/happy.app/contents/resources/happy.py", line 275, in <module> sep 9 04:39:12 softroot.local happy[39888] <notice>: print testone() sep 9 04:39:12 softroot.local happy[39888] <notice>: file "/users/random/desktop/bla/dist/happy.app/contents/resources/happy.py", line 52, in testone sep 9 04:39:12 softroot.local happy[39888] <notice>: random import function sep 9 04:39:12 softroot.local happy[39888] <notice>: importerror: cannot import name function
is random.py custom script written you, or module pyhton standard?
have tried copy random.py resulting application package, import random, check random.__file__ make sure one, , try execute line problems from random import function ?
Comments
Post a Comment