Questions:I’m working on a project which was written in Python 2, and I’m upgrading it to Python 3. So far, I’ve just been finding minor syntax errors which are easily fixable. What I’ve done is created a new project in Python 3, ensured that it worked, and copies chunks of code from the old project into the new one.Right now, I’m having trouble with pysvn. Initially, I was getting this error:ImportError: No module named ‘pysvn’At this point, I tried using pip install pysvn, which didn’t work. I got the following:pip install pysvnCollecting pysvnCould not find a version that satisfies the requirement pysvn (from versions:)No matching distribution found for pysvnSo then after a bit of research, I went to the pysvn and tried:pip install -index-url pysvn, which gave me this error:Collecting pysvnThe repository located at pysvn.tigris.org is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with ‘–trusted-host pysvn.tigris.org’.and also the same error as when I tried pip install pysvn.My next step was to manually download the.exe file for the version I needed, and I was able to successfully install pysvn. As it turns out, because I didn’t use pip install for pysvn, pip didn’t know that pysvn existed.
![]()
Installing from our distributed tarball is relatively straightforward on Fedora. First, make sure you install all dependencies: yum install nautilus-python pysvn python-configobj python-devel dbus-python python-dulwich subversion meld. Then download the tarball and from the top folder type: sudo python setup.py install.
The PySVN project's goal is to enable Toolsto be written in Python that use Subversion source control system.
Windows, Mac OS X, Linux and other unix platforms are supported.
Features of the PySVN Python extension
Latest Version
PySVN 1.9.11 supporting Subversion 1.13.0 and earlier.
PySVN supports Python 3 as well as Python 2.
Prebuilt kits are available for Windows and Mac OS X.
The downloads page for details of the available kits for Windows, Mac OS X and Linux.
Documentation
The PySVN Programmer's Guideis a good place to get started using PySVN.
![]() ![]()
It covers the use of PySVN in a tutorial style with lots of examples.
Use the PySVN Programmer's Referenceto look up the detailed descriptions of all the classes, functions and variablesof PySVN.
The python-library/site-packages/pysvn/Examples/Client/svn_cmd.pyprogram is a replacement for the svn command line written using PySVN.It is a good place to look for working examples of use of all the pysvn module.View the latest version ofsvn_cmd.py.
PySVN App
SCM Workbench is an App for Mac OS, Windows and Linux/Unix that providesSubversion, Git and Mercurial access. It is the replacement for the PySVN Workbench app.
Contributing
We welcome contributions to PySVN with ideas, code, testing and documentation.
Discussions take place on the pysvn-discussmailing lists.Feature requests, bugs and patches can be entered in the tickets database.
PySVN Project site
The main SourceForge PySVN Projectpage has links the Issue Tracker, Code browser and other services.
Build Dependencies
The extension is written in C++, using the PyCXX library.Everything else is written in Python.
PySVN works everywhere Python and Subversion works.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |