New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in recipy Subversion components #168

mikej888 opened this Issue Oct 20, 2016 · 0 comments


None yet
1 participant

mikej888 commented Oct 20, 2016

As part of my test framework work I've been working on a branch created from the most recent master commit at that time:

commit d9f2bda6fcb6e4d6ac4c45887d98499430124790
Author: Robin Wilson <>
Date:   Tue Sep 13 16:48:00 2016 +0100

    Updated changelog

Now that my work was stable, I merged in the current master branch, the most recent commit of which is

commit 5c1600c75c901faa187981052cacfec01efb1011
Merge: 70aa35d 27ca423
Author: Robin Wilson <>
Date:   Sat Sep 24 13:55:36 2016 +0100

    Merge branch 'decoding-errors'

There is a bug in the master branch. If I run:

$ python  in.csv out.csv

I get

Traceback (most recent call last):
  File "", line 7, in <module>
    import recipy
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\recipy-0.3.0-py3.5.egg\recipy\", line 12, in <module>
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\recipy-0.3.0-py3.5.egg\recipy\", line 81, in log_init
    add_svn_info(run, scriptpath)
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\recipy-0.3.0-py3.5.egg\recipyCommon\", line 78, in add_svn_info
    svn_info =
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\svn\", line 117, in info
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\svn\", line 70, in run_command
    p.returncode, cmd, stdout))
svn.common.SvnException: Command failed with (1): ['svn', '--non-interactive', 'info', '--xml', 'c:\\Users\\mjj\\Local Documents\\recipy\\tmp\\']
b'<?xml version="1.0" encoding="UTF-8"?>\r\n<info>\r\nsvn: E155007: \'C:\\Users\\mjj\\Local Documents\\recipy\\tmp\\\' is not a working copy\r\n'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\recipy-0.3.0-py3.5.egg\recipy\", line 287, in hash_outputs
    run = db.get(eid=RUN_ID)
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\tinydb-3.2.1-py3.5.egg\tinydb\", line 432, in get
TypeError: unhashable type: 'dict'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\recipy-0.3.0-py3.5.egg\recipy\", line 276, in log_exit
    db.update({'exit_date': exit_date}, eids=[RUN_ID])
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\tinydb-3.2.1-py3.5.egg\tinydb\", line 382, in update
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\tinydb-3.2.1-py3.5.egg\tinydb\", line 235, in process_elements
  File "c:\Users\mjj\AppData\Local\Continuum\Anaconda3\lib\site-packages\tinydb-3.2.1-py3.5.egg\tinydb\", line 381, in <lambda>
TypeError: unhashable type: 'dict'

This arises in both my TravisCI test environment and Anaconda 3 on Windows. It does not arise under Anaconda 2 or 3 on Ubuntu. My Ubuntu platform differs from the other two in that it does not have Subversion installed.

robintw added a commit that referenced this issue Jan 27, 2017

Merge pull request #169 from mikej888/svn_bug
Fixed bug #168. add_svn_info try_except catches incorrect SvnException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment