"unrecognized .svn / entries format" using buildout

Since switching to subversion 1.7, I get an "unrecognized .svn / entries format" when I run buildout. I notice that there are unresolved error reports for both distribution and setuptools for this error, and it also seems that you can use setuptools_subversion to solve the problem.

What I cannot figure out how to do this is to set setuptools_subversion to create it. Can someone please help?

I tried

  • downloading and running python setup.py install
  • adding it to the egg list of the [buildout] part of my build configuration
+6
source share
1 answer

You need to install it at the python package level; easy_install (used under the hood of buildout) needs it before it installs anything else.

However, the python setup.py install stanza python setup.py install should have installed it just fine; check by running the following test:

 $ python -m setuptools_subversion /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools_subversion.py directory 

This should print the module installation path, as it was for me in the above example. You can try using pip or easy_install to boot automatically:

 $ pip install setuptools_subversion 

or

 $ easy_install setuptools_subversion 

You can do this in virtualenv if you want to isolate the installation. Since this is basically a dependency for svn 1.7, setting it at the same level as the svn binary (usually on the system system) is certainly acceptable and normal.

Please note that the unrecognized .svn/entries format error message will not disappear, but your build will fail otherwise. A message is printed regardless of how easy_install first tries to use the .svn internal parser before postponing it to an external plugin.

If you really want to check if the plugin is installed, run the following python code:

 import pkg_resources for entrypoint in pkg_resources.iter_entry_points('setuptools.file_finders'): print entrypoint 

On my system, this prints:

 svn = setuptools_subversion:listfiles svn_cvs = setuptools.command.sdist:_default_revctrl git = setuptools_git:gitlsfiles hg = setuptools_hg:hg_file_finder 
+4
source

Source: https://habr.com/ru/post/911570/


All Articles