[issue21502] freeze.py not working properly on Mac OSX 10.9

2014-05-13 Thread Jiang-Nan Yang

New submission from Jiang-Nan Yang:

Command:
python3.4 
/Library/Frameworks/Python.framework/Versions/3.4/share/doc/python3.4/examples/Tools/freeze/freeze.py
 okcointrade.py

Error:
Reporting needed directory %s not found

Basically the problem is on lines 235~239: config should be config-3.4m, 
python%s on two lines should be python%sm

After I corrected these errors, the command works, asking me to run make, 
except a warning about unknown modules remains.

So I run make, another error occurs:
gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m 
-I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c 
M_difflib.c
gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m 
-I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c 
M_ftplib.c
gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m 
-I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c 
M_pydoc.c
gcc-4.2  -Wl,-stack_size,100  -framework CoreFoundation 
Python.framework/Versions/3.4/Python config.o frozen.o M___future__.o 
M___main__.o M__bootlocale.o M__collections_abc.o M__dummy_thread.o 
M__osx_support.o M__sitebuiltins.o M__strptime.o M__sysconfigdata.o 
M__threading_local.o M__weakrefset.o M_abc.o M_argparse.o M_ast.o M_base64.o 
M_bdb.o M_bisect.o M_bz2.o M_calendar.o M_cmd.o M_code.o M_codecs.o M_codeop.o 
M_collections.o M_contextlib.o M_copy.o M_copyreg.o M_datetime.o M_difflib.o 
M_dis.o M_distutils.o M_distutils__errors.o M_distutils__log.o 
M_distutils__spawn.o M_distutils__sysconfig.o M_distutils__text_file.o 
M_doctest.o M_dummy_threading.o M_email.o M_email___encoded_words.o 
M_email___header_value_parser.o M_email___parseaddr.o M_email___policybase.o 
M_email__base64mime.o M_email__charset.o M_email__contentmanager.o 
M_email__encoders.o M_email__errors.o M_email__feedparser.o 
M_email__generator.o M_email__header.o M_email__headerregistry.o 
M_email__iterators.o M_email
 __message.o M_email__parser.o M_email__policy.o M_email__quoprimime.o 
M_email__utils.o M_encodings.o M_encodings__aliases.o M_encodings__latin_1.o 
M_encodings__utf_8.o M_enum.o M_fnmatch.o M_ftplib.o M_functools.o 
M_genericpath.o M_getopt.o M_getpass.o M_gettext.o M_glob.o M_gzip.o 
M_hashlib.o M_heapq.o M_html.o M_html__entities.o M_http.o M_http__client.o 
M_http__cookiejar.o M_http__server.o M_imp.o M_importlib.o 
M_importlib___bootstrap.o M_importlib__machinery.o M_importlib__util.o 
M_inspect.o M_io.o M_json.o M_json__decoder.o M_json__encoder.o 
M_json__scanner.o M_keyword.o M_linecache.o M_locale.o M_logging.o M_lzma.o 
M_mimetypes.o M_ntpath.o M_nturl2path.o M_opcode.o M_operator.o M_optparse.o 
M_os.o M_pdb.o M_pkgutil.o M_platform.o M_plistlib.o M_posixpath.o M_pprint.o 
M_py_compile.o M_pydoc.o M_pydoc_data.o M_pydoc_data__topics.o M_quopri.o 
M_random.o M_re.o M_reprlib.o M_rlcompleter.o M_selectors.o M_shlex.o 
M_shutil.o M_site.o M_socket.o M_socketserver.o M_sre_compile.o M_sre
 _constants.o M_sre_parse.o M_ssl.o M_stat.o M_string.o M_struct.o 
M_subprocess.o M_sysconfig.o M_tarfile.o M_tempfile.o M_textwrap.o 
M_threading.o M_token.o M_tokenize.o M_traceback.o M_tty.o M_types.o 
M_unittest.o M_unittest__case.o M_unittest__loader.o M_unittest__main.o 
M_unittest__result.o M_unittest__runner.o M_unittest__signals.o 
M_unittest__suite.o M_unittest__util.o M_urllib.o M_urllib__error.o 
M_urllib__parse.o M_urllib__request.o M_urllib__response.o M_uu.o M_warnings.o 
M_weakref.o M_webbrowser.o M_xml.o M_xml__parsers.o M_xml__parsers__expat.o 
M_zipfile.o 
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/config-3.4m/libpython3.4.a
   -ldl  -framework CoreFoundation   -o okcointrade
clang: error: no such file or directory: 'Python.framework/Versions/3.4/Python'
make: *** [okcointrade] Error 1

I guess that 'Python.framework/Versions/3.4/Python' using a relative location 
might be a problem, so I go into the Makefile, changed 
PYTHONFRAMEWORKDIR=Python.framework
into
PYTHONFRAMEWORKDIR=/Library/Frameworks/Python.framework

Now the above problem disappeared, but a new appeared:
gcc-4.2  -Wl,-stack_size,100  -framework CoreFoundation 
/Library/Frameworks/Python.framework/Versions/3.4/Python config.o frozen.o 
M___future__.o M___main__.o M__bootlocale.o M__collections_abc.o 
M__dummy_thread.o M__osx_support.o M__sitebuiltins.o M__strptime.o 
M__sysconfigdata.o M__threading_local.o M__weakrefset.o M_abc.o M_argparse.o 
M_ast.o M_base64.o M_bdb.o M_bisect.o M_bz2.o M_calendar.o M_cmd.o M_code.o 
M_codecs.o M_codeop.o M_collections.o M_contextlib.o M_copy.o M_copyreg.o 
M_datetime.o M_difflib.o M_dis.o M_distutils.o M_distutils__errors.o 
M_distutils__log.o M_distutils__spawn.o M_distutils__sysconfig.o 
M_distutils__text_file.o M_doctest.o

[issue21502] freeze.py not working properly on Mac OSX 10.9

2014-05-13 Thread Jiang-Nan Yang

Changes by Jiang-Nan Yang yjiang...@gmail.com:


--
nosy:  -ronaldoussoren, yjiangnan
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21502
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com