i'm trying to clone svn repository on windows as explained here:
https://www.mercurial-scm.org/wiki/HgSubversion
and here:
https://www.mercurial-scm.org/wiki/WorkingWithSubversion
i'm normally using x64 2.6.6 python but i also need 32-bit so i have 32bit 2.7 into which i've put swig python svn bindings from
http://sourceforge.net/projects/win32svn/
problem is when i clone mercurial seems to use 2.6.6 which does not have binding hence i guess this error:
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 2.1)
** Extensions loaded: hgsubversion
Traceback (most recent call last):
File "hg", line 42, in <module>
File "mercurial\dispatch.pyo", line 27, in run
File "mercurial\dispatch.pyo", line 64, in dispatch
File "mercurial\dispatch.pyo", line 87, in _runcatch
File "mercurial\dispatch.pyo", line 683, in _dispatch
File "mercurial\dispatch.pyo", line 465, in runcommand
File "mercurial\dispatch.pyo", line 737, in _runcommand
File "mercurial\dispatch.pyo", line 691, in checkargs
File "mercurial\dispatch.pyo", line 680, in <lambda>
File "mercurial\util.pyo", line 456, in check
File "mercurial\extensions.pyo", line 139, in wrap
File "mercurial\util.pyo", line 456, in check
File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 495, in c
lone
orig(ui, source, dest, **opts)
File "mercurial\util.pyo", line 456, in check
File "mercurial\commands.pyo", line 1157, in clone
File "mercurial\extensions.pyo", line 184, in wrap
File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 484, in h
gclonewrapper
data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
File "mercurial\hg.pyo", line 350, in clone
File "mercurial\localrepo.pyo", line 2265, in clone
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnrepo.py", line 70, in wra
pper
return fn(self, *args, **opts)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnrepo.py", line 89, in pul
l
return wrappers.pull(self, remote, heads, force)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\wrappers.py", line 353, in p
ull
firstrun)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\replay.py", line 67, in conv
ert_rev
svn.get_replay(r.revnum, editor, meta.revmap.oldest)
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnwrap\svn_swig_wrapper.py"
, line 403, in get_replay
self.init_ra_and_client()
File "C:\Users\IG\Documents\hgsubv\hgsubversion\svnwrap\svn_swig_wrapper.py"
, line 226, in init_ra_and_client
raise common.SubversionConnectionException(msg)
hgext_hgsubversion.svnwrap.common.SubversionConnectionException: Failed to open Subversion repository;
i've put 2.7 before 2.6.6 in ENV VARIABLES and when into cmd i write python i see 2.7 as my defult python dist.
what am i missing?
thanks
EDIT:
i use tortoise hg for 64-bit windows with built in mercurial, could that be the problem?
You forgot to include last line of error message "please try running 'svn ls
URL-of-repo' for details.", but you done svn ls, sure?
If it's big repo with deep history anyway it's not recommended to clone from start to HEAD. Clone some revisions and pull rest
Or read this topic for subvertpy, subvertpy binding details and Subvertpy Binary for Win32
Related
I'm using auto-py-to-exe to compile a .py file. Whichever setting I choose, it does not work.
An error occurred while packaging
Traceback (most recent call last):
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\build_main.py", line 737, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\build_main.py", line 684, in build
exec(code, spec_namespace)
File "C:\Users\benbe\AppData\Local\Temp\tmpbliekynp\main.spec", line 21, in <module>
exe = EXE(pyz,
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\api.py", line 450, in __init__
self.__postinit__()
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
self.assemble()
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\api.py", line 549, in assemble
icon.CopyIcons(tmpnm, self.icon)
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\utils\win32\icon.py", line 216, in CopyIcons
return CopyIcons_FromIco(dstpath, [srcpath])
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\utils\win32\icon.py", line 153, in CopyIcons_FromIco
for i, f in enumerate(icons):
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\utils\win32\icon.py", line 117, in __init__
entry.fromfile(file)
File "c:\users\benbe\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\utils\win32\icon.py", line 76, in fromfile
self._fields_ = list(struct.unpack(self._format_, data))
struct.error: unpack requires a buffer of 16 bytes
Project output will not be moved to output folder.
Try installing a older-version of python try python 3.8.10
Install python 3.8.10 now go to the directory where it is installed and go inside the script folder and open cmd there and type pip install auto-py-to-exe then opy your code file and paste it in the script folder of python 3.8.10 and then open cmd there and type auto-py-to-exe and then try to make the exe.
make sure your cmd is opened in the script directory
If it still does not work try it using the module pyinstaller in python 3.8.10 here you can know details about making a exe In this link you will see how to make a exe with pyinstaller module
or you can try using cx_freeze module here is a link for it or if you want to see a tutorial search in youtube or you can go to this link or this one
I'm using object detection raccoon by datitran(https://github.com/datitran/raccoon_dataset) to train my own dataset and met an issue.
Environment Info.:
OS:Windows 10 64bit
CUDA and CUDNN: CUDA 10/CUDNN 7.5.0
Tensorflow version:1.13.1(GPU)
Python version:3.7.0 64 bit (Anaconda, Inc. on win32)
Model:ssd_mobilenet_v1_coco
Issue:
I want to start trainning by
python model_main.py
--pipeline_config_path=Z:/Train/ssd_mobilenet_v1_coco_ship.config
--model_dir=Z:/Train/train
--alsologtostderr
and met an error
Traceback (most recent call last):
File "model_main.py", line 26, in <module>
from object_detection import model_lib
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\model_lib.py", line 27, in <module>
from object_detection import eval_util
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\eval_util.py", line 27, in <module>
from object_detection.metrics import coco_evaluation
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\metrics\coco_evaluation.py", line 20, in <module>
from object_detection.metrics import coco_tools
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\metrics\coco_tools.py", line 47, in <module>
from pycocotools import coco
File "D:\Anaconda\envs\tensorflow\lib\site-packages\pycocotools\coco.py", line 56, in <module>
from . import mask as maskUtils
File "D:\Anaconda\envs\tensorflow\lib\site-packages\pycocotools\mask.py", line 3, in <module>
import pycocotools._mask as _mask
ImportError: DLL load failed: %1 is not a valid Win32 application.
Besides, I also tried old version command train.py in ~\research\object_detection\legacyby
python train.py
--logtostderr
--pipeline_config_path=Z:/Train/ssd_mobilenet_v1_coco_ship.config
--train_dir=Z:/Train/train
but it also failed to work:
WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
* https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
* https://github.com/tensorflow/addons
If you depend on functionality not listed there, please file an issue.
WARNING:tensorflow:From D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\platform\app.py:125: main (from __main__) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
WARNING:tensorflow:From D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\legacy\trainer.py:266: create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.create_global_step
WARNING:tensorflow:From D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:num_readers has been reduced to 1 to match input file shards.
WARNING:tensorflow:From D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\builders\dataset_builder.py:80: parallel_interleave (from tensorflow.contrib.data.python.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.experimental.parallel_interleave(...)`.
Traceback (most recent call last):
File "train.py", line 186, in <module>
tf.app.run()
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\util\deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "train.py", line 182, in main
graph_hook_fn=graph_rewriter_fn)
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\legacy\trainer.py", line 280, in train
train_config.prefetch_queue_capacity, data_augmentation_options)
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\legacy\trainer.py", line 59, in create_input_queue
tensor_dict = create_tensor_dict_fn()
File "train.py", line 123, in get_next
dataset_builder.build(config)).get_next()
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\builders\dataset_builder.py", line 134, in build
config.input_path[:], input_reader_config)
File "D:\Anaconda\envs\tensorflow\Lib\models\research\object_detection\builders\dataset_builder.py", line 80, in read_dataset
sloppy=config.shuffle))
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 1605, in apply
return DatasetV1Adapter(super(DatasetV1, self).apply(transformation_func))
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 1127, in apply
dataset = transformation_func(self)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\experimental\ops\interleave_ops.py", line 88, in _apply_fn
buffer_output_elements, prefetch_input_elements)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\readers.py", line 133, in __init__
cycle_length, block_length)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2827, in __init__
super(InterleaveDataset, self).__init__(input_dataset, map_func)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2798, in __init__
map_func, self._transformation_name(), dataset=input_dataset)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2124, in __init__
self._function.add_to_graph(ops.get_default_graph())
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 490, in add_to_graph
self._create_definition_if_needed()
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 341, in _create_definition_if_needed
self._create_definition_if_needed_impl()
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 355, in _create_definition_if_needed_impl
whitelisted_stateful_ops=self._whitelisted_stateful_ops)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 883, in func_graph_from_py_func
outputs = func(*func_graph.inputs)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2099, in tf_data_structured_function_wrapper
ret = func(*nested_args)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\readers.py", line 247, in __init__
filenames, compression_type, buffer_size, num_parallel_reads)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\readers.py", line 212, in __init__
self._impl = filenames.flat_map(read_one_file)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 1005, in flat_map
return FlatMapDataset(self, map_func)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2798, in __init__
map_func, self._transformation_name(), dataset=input_dataset)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2124, in __init__
self._function.add_to_graph(ops.get_default_graph())
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 490, in add_to_graph
self._create_definition_if_needed()
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 341, in _create_definition_if_needed
self._create_definition_if_needed_impl()
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 355, in _create_definition_if_needed_impl
whitelisted_stateful_ops=self._whitelisted_stateful_ops)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\function.py", line 883, in func_graph_from_py_func
outputs = func(*func_graph.inputs)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2099, in tf_data_structured_function_wrapper
ret = func(*nested_args)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\readers.py", line 209, in read_one_file
return _TFRecordDataset(filename, compression_type, buffer_size)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\readers.py", line 111, in __init__
argument_dtype=dtypes.string)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\data\util\convert.py", line 35, in optional_param_to_tensor
argument_default, dtype=argument_dtype, name=argument_name)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\constant_op.py", line 245, in constant
allow_broadcast=True)
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\constant_op.py", line 283, in _constant_impl
allow_broadcast=allow_broadcast))
File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 501, in make_tensor_proto
(dtype, nparray.dtype, values))
TypeError: Incompatible types: <dtype: 'string'> vs. object. Value is
What should I do to make any of them work?
you need to instal VÄ°SUAL C++ 2015 for pycocotools but when i install visual c++ it wont work. than i edit pycocotools for using wait a moment im loading it github
edit: loaded https://github.com/rifatalptekincetin/pycocotools-edited
download pycocotools folder replace it to research/object_detection file path must be:
models-master/resarch/object_detection/pycocotools/__init__.py #etc.
There is at least one an incompatibility between Python 3 and pycocotools that also generated a pull request at GitHub. One of them is:
For more info, access:
Pull Request for pycocotools library
Hey for anyone using windows for me this actually worked.
1) Install Visual C++ 2015 Build Tools from https://go.microsoft.com/fwlink/?LinkId=691126 with the default selection.
2) Go to C:\Program Files (x86)\Microsoft Visual C++ Build Tools and run vcbuildtools_msbuild.bat
3)Then in Anaconda copy and run this (you have to have installed git ... if not just use pip install git)
pip install
git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI
Hope it works for you too :)
Or you can use decode/encode Python functions as a translation from C original api.
See my repo for example:
https://github.com/armengot/COCOtoolsFORK
It seems to automatically use the latest version, and I haven't been able to find the answer in the pyinstaller documentation. It complains that my python2 code has incorrect syntax but it does not.
Traceback (most recent call last):
File "/usr/bin/pyinstaller", line 11, in <module>
load_entry_point('PyInstaller==3.2', 'console_scripts', 'pyinstaller')()
File "/usr/lib/python3.5/site-packages/PyInstaller/__main__.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "/usr/lib/python3.5/site-packages/PyInstaller/__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/usr/lib/python3.5/site-packages/PyInstaller/building/build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/usr/lib/python3.5/site-packages/PyInstaller/building/build_main.py", line 734, in build
exec(text, spec_namespace)
File "<string>", line 16, in <module>
File "/usr/lib/python3.5/site-packages/PyInstaller/building/build_main.py", line 212, in __init__
self.__postinit__()
File "/usr/lib/python3.5/site-packages/PyInstaller/building/datastruct.py", line 178, in __postinit__
self.assemble()
File "/usr/lib/python3.5/site-packages/PyInstaller/building/build_main.py", line 413, in assemble
priority_scripts.append(self.graph.run_script(script))
File "/usr/lib/python3.5/site-packages/PyInstaller/depend/analysis.py", line 144, in run_script
self._top_script_node = super(PyiModuleGraph, self).run_script(pathname)
File "/usr/lib/python3.5/site-packages/PyInstaller/lib/modulegraph/modulegraph.py", line 888, in run_script
co_ast = compile(contents, pathname, 'exec', ast.PyCF_ONLY_AST, True)
File "/home/chuck/Pictures/testpics/photoresize.py", line 59
print "incorrect options please choose from d(irectory),s(ize),e(xtension),r(ecursive) or use defaults"
^
SyntaxError: invalid syntax
Since you're not willing to install a virtual environment as you commented, an easy workaround would be:
locate the path where python 2.x is installed ex: (not sure): /usr/local/lib/python2.7
open a console
type PATH=/usr/local/lib/python2.7:$PATH
type python --version just to check that it says V2 something not V3
run your pyinstaller executable with the python prefix
That doesn't affect system path (local to the console), so no need to revert back to previous path settings. Just close the console when you're done.
Also, don't use sudo as it's not needed and it changes/resets the path, which was your problem as you confirmed.
Perhaps use virtualenv, or
virtualenvwrapper
With virtualenv it's possible to create separate environments with different versions of Python.
virtualenvwrapper is wrapper for virtualenv some how easier to work with.
I'm trying to deploy my python application using py2app.
I created the setup file using : py2applet --make-setup MyApplication.py
Then I did this to test it : python setup.py py2app -A
That worked as well. My GUI program runs.
When I try the last step: python setup.py py2app
I get this fat error.
Traceback (most recent call last):
File "setup.py", line 18, in <module>
setup_requires=['py2app'],
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/py2app/build_app.py", line 659, in run
self._run()
File "/usr/local/lib/python2.7/site-packages/py2app/build_app.py", line 865, in _run
self.run_normal()
File "/usr/local/lib/python2.7/site-packages/py2app/build_app.py", line 959, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File "/usr/local/lib/python2.7/site-packages/py2app/build_app.py", line 1214, in create_binaries
platfiles = mm.run()
File "/usr/local/lib/python2.7/site-packages/macholib/MachOStandalone.py", line 105, in run
mm.run_file(fn)
File "/usr/local/lib/python2.7/site-packages/macholib/MachOGraph.py", line 84, in run_file
self.scan_node(m)
File "/usr/local/lib/python2.7/site-packages/macholib/MachOGraph.py", line 110, in scan_node
m = self.load_file(filename, caller=node)
File "/usr/local/lib/python2.7/site-packages/macholib/MachOGraph.py", line 93, in load_file
newname = self.locate(name, loader=caller)
File "/usr/local/lib/python2.7/site-packages/macholib/MachOStandalone.py", line 23, in locate
newname = super(FilteredMachOGraph, self).locate(filename, loader)
File "/usr/local/lib/python2.7/site-packages/macholib/MachOGraph.py", line 49, in locate
loader=loader.filename)
TypeError: dyld_find() got an unexpected keyword argument 'loader'
Why is this happening? I've spend the last few hours trying to deploy. No luck with py2app, cx_freeze, etc.
Here is a workaround: edit the file MachOGraph.py which in your case is located there:
/usr/local/lib/python2.7/site-packages/macholib/MachOGraph.py
Search for the term loader=loader.filename) and replace it with loader_path=loader.filename)
Credits goes to David Goldenberg for its post on bitbucket.org. https://bitbucket.org/ronaldoussoren/py2app/issues/137/py2app-problems-using-enthought-python
Pillow was the problem. Py2Applet doesn't play nice with it. Got rid of Pillow, and all is well.
I'm trying to run a setup.py script (for mnemosyne). The script fails, and I'm pretty sure I know how to fix the problem, if I could only find the file to edit. The problem is that the traceback points to a non-existent file:
File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 49, in locate
loader=loader.filename)
TypeError: dyld_find() got an unexpected keyword argument 'loader'
I believe that should be loader_path. The problem is that MachOGraph.py file doesn't exist -- not anywhere in my current path, or in my anaconda distribution. There is a build/bdist.macosx-10.5-x86_64/ directory, but no egg. There are a few MachOGraph.py files on my system, but none of them have that line. Nothing under this directory contains the string loader.filename.
What's going on? How can I find that file?
For completeness, here is the complete traceback:
Traceback (most recent call last):
File "/Users/mike/.continuum/anaconda/lib/python2.7/site-packages/ipdb/__main__.py", line 157, in main
pdb._runscript(mainpyfile)
File "/Users/mike/.continuum/anaconda/lib/python2.7/pdb.py", line 1233, in _runscript
self.run(statement)
File "/Users/mike/.continuum/anaconda/lib/python2.7/bdb.py", line 400, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "setup.py", line 241, in <module>
app = py2app_app
File "/Users/mike/.continuum/anaconda/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/Users/mike/.continuum/anaconda/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/Users/mike/.continuum/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 654, in run
self._run()
File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 860, in _run
self.run_normal()
File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 950, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 1110, in create_binaries
platfiles = mm.run()
File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOStandalone.py", line 105, in run
mm.run_file(fn)
File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 84, in run_file
self.scan_node(m)
File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 110, in scan_node
m = self.load_file(filename, caller=node)
File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 93, in load_file
newname = self.locate(name, loader=caller)
File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOStandalone.py", line 23, in locate
newname = super(FilteredMachOGraph, self).locate(filename, loader)
File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 49, in locate
loader=loader.filename)
TypeError: dyld_find() got an unexpected keyword argument 'loader'
This issue is caused by Pillow, you can use pip uninstall Pillow to uninstall it, then this question will disappear.
Python takes the filename as reported in the bytecode when printing a traceback. In this case, the bytecode contains filenames that are generated to produce a Python egg, a format that contains at least the bytecode files. These paths reflect the build directory relative to the package as it was built.
In this case, it is the py2app installer that includes macholib as a installation requirement; setuptools downloads the source code for that library and produces an egg on demand, in the same location as the py2app egg. I'd look in /usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg for a macholib-1.6-py2.7.egg directory.
With macholib1.7, from line 46 of **/MachOGraph.py...:
try:
fn = dyld_find(filename, env=self.env,
executable_path=self.executable_path,
loader=loader.filename)
self.trans_table[(loader.filename, filename)] = fn
except ValueError:
return None
Change line 49 to:
loader_path=loader.filename)