| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…he right thing todo
|
looking at that traceback -- are you overloading some str.encode builtin methods? then better make sure they do not blow, and if they blow -- just relay to original/non-overloaded ;) |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #598 +/- ##
==========================================
- Coverage 94.48% 87.01% -7.48%
==========================================
Files 63 63
Lines 9958 9956 -2
==========================================
- Hits 9409 8663 -746
- Misses 549 1293 +744
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
Thanks a lot! |
Sorry, something went wrong.
|
@Byron -- I am still curious about why this all happened since we are importing another module entirely, so smells like GitPython is messing some unrelated things up ;) for us it happens only on that debian buildbot |
Sorry, something went wrong.
|
@yarikoptic To me all this belongs to the field of ... python is an inherently unsafe language which by now is plagued by plenty of systemic problems, many of which GitPython suffers from too. Understanding how it happened doesn't matter (to me) knowing that it will never be fixed or functioning properly in all cases. Maybe a bit dark, but the opinion I arrived at over the years. |
Sorry, something went wrong.
Fixes my incorrect fix in gitpython-developers#598
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
a blind fix for a blind (not tested) line of code which has some variable lost from old pre-refactoring code I guess ;)
PS FWIW -- we have managed to run into it in quite a strange place, so not really sure how yet, here is our backtrace with 2.1.0 GitPython on Debian stretch
====================================================================== ERROR: Failure: NameError (global name 'exc' is not defined) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/buildbot/datalad-pr-docker-dl-nd90/build/datalad/tests/test__main__.py", line 17, in <module> from .. import __main__, __version__ File "/home/buildbot/datalad-pr-docker-dl-nd90/build/datalad/__main__.py", line 13, in <module> from .auto import AutomagicIO File "/home/buildbot/datalad-pr-docker-dl-nd90/build/datalad/auto.py", line 20, in <module> import h5py File "/usr/lib/python2.7/dist-packages/h5py/__init__.py", line 60, in <module> from .tests import run_tests File "/usr/lib/python2.7/dist-packages/h5py/tests/__init__.py", line 15, in <module> from . import old, hl File "/usr/lib/python2.7/dist-packages/h5py/tests/old/__init__.py", line 4, in <module> from . import ( test_attrs, File "/usr/lib/python2.7/dist-packages/h5py/tests/old/test_group.py", line 41, in <module> fsencode(u"α") File "/usr/lib/python2.7/dist-packages/h5py/_hl/compat.py", line 68, in fsencode return filename.encode(encoding, errors) File "/usr/lib/python2.7/dist-packages/git/compat.py", line 180, in surrogateescape_handler decoded = replace_surrogate_encode(mystring) File "/usr/lib/python2.7/dist-packages/git/compat.py", line 207, in replace_surrogate_encode raise exc NameError: global name 'exc' is not defined