Hi, I install pysvn, using "curl https://pysvn.reviewboard.org | python3" on macos. However, it failed. The following is error message.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 614 100 614 0 0 1715 0 --:--:-- --:--:-- --:--:-- 1715
Looking up latest PySVN version...
Downloading PySVN 1.9.13...
Building PySVN...
Looking in indexes: https://pypi.nuwainfo.com/nuwa/dev/+simple/
Processing /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13
DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Building wheels for collected packages: pysvn
Building wheel for pysvn (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/setup.py'"'"'; file='"'"'/private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-wheel-n_aobz0u
cwd: /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/
Complete output (110 lines):
running bdist_wheel
running build
running build_ext
running egg_info
creating pysvn.egg-info
writing pysvn.egg-info/PKG-INFO
writing dependency_links to pysvn.egg-info/dependency_links.txt
writing top-level names to pysvn.egg-info/top_level.txt
writing manifest file 'pysvn.egg-info/SOURCES.txt'
reading manifest file 'pysvn.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'Source/pysvn/init.py'
warning: no previously-included files found matching 'Source/pysvn/.so'
warning: no previously-included files found matching 'Source/.o'
warning: no previously-included files found matching 'Source/Makefile'
warning: no previously-included files found matching 'Source/pysvn_docs.cpp'
warning: no previously-included files found matching 'Source/pysvn_docs.hpp'
warning: no previously-included files found matching 'Source/pysvn_version.hpp'
warning: no previously-included files found matching 'Source/generate_svn_error_codes.hpp'
warning: no previously-included files found matching 'Source/generate_svn_error_codes/generate_svn_error_codes'
writing manifest file 'pysvn.egg-info/SOURCES.txt'
Info: Configure for python 3.7.1 in exec_prefix /Library/Frameworks/Python.framework/Versions/3.7
Info: MACOSX_DEPLOYMENT_TARGET is 10.15
Info: Found PyCXX include in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5
Info: Found PyCXX Source in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5/Src
Info: Found SVN include in /usr/local/opt/subversion/include/subversion-1
Info: Found SVN library in /usr/local/opt/subversion/lib
Info: Found SVN bin in /usr/local/opt/subversion/bin
Info: Found APR include in /usr/local/opt/apr/libexec/include/apr-1
Info: Found APR include in /usr/local/opt/apr-util/libexec/include/apr-1
Info: Found APR library in /usr/local/opt/apr/libexec/lib
Info: Building against SVN 1.14.1
Info: MACOSX_DEPLOYMENT_TARGET is 10.15
Info: Found PyCXX include in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5
Info: Found PyCXX Source in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5/Src
Info: Found SVN include in /usr/local/opt/subversion/include/subversion-1
Info: Found SVN library in /usr/local/opt/subversion/lib
Info: Found SVN bin in /usr/local/opt/subversion/bin
Info: Found APR include in /usr/local/opt/apr/libexec/include/apr-1
Info: Found APR include in /usr/local/opt/apr-util/libexec/include/apr-1
Info: Found APR library in /usr/local/opt/apr/libexec/lib
Info: Building against SVN 1.14.1
Info: Using tool chain MacOsxCompilerGCC
Info: Creating Makefile for Sources
Info: Creating Makefile for Tests
rm -f pysvn/init.py
rm -f pysvn/_pysvn_3_7.*
rm -f pysvn.o
rm -f pysvn_callbacks.o
rm -f pysvn_client.o
rm -f pysvn_static_strings.o
rm -f pysvn_enum_string.o
rm -f pysvn_client_cmd_add.o
rm -f pysvn_client_cmd_changelist.o
rm -f pysvn_client_cmd_checkin.o
rm -f pysvn_client_cmd_copy.o
rm -f pysvn_client_cmd_diff.o
rm -f pysvn_client_cmd_export.o
rm -f pysvn_client_cmd_info.o
rm -f pysvn_client_cmd_list.o
rm -f pysvn_client_cmd_lock.o
rm -f pysvn_client_cmd_merge.o
rm -f pysvn_client_cmd_patch.o
rm -f pysvn_client_cmd_prop.o
rm -f pysvn_client_cmd_revprop.o
rm -f pysvn_client_cmd_switch.o
rm -f pysvn_transaction.o
rm -f pysvn_revision.o
rm -f pysvn_docs.o
rm -f pysvn_path.o
rm -f pysvn_arg_processing.o
rm -f pysvn_converters.o
rm -f pysvn_svnenv.o
rm -f pysvn_profile.o
rm -f cxxsupport.o
rm -f cxx_extensions.o
rm -f cxxextensions.o
rm -f IndirectPythonInterface.o
rm -f cxx_exceptions.o
rm -f pysvn_docs.cpp
rm -f pysvn_version.hpp
rm -f generate_svn_error_codes.hpp
rm -f generate_svn_error_codes/generate_svn_error_codes
rm -f generate_svn_error_codes.o
rm -f pysvn_docs.hpp
Info: Make generate_svn_error_codes.hpp
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u generate_svn_error_codes/create_svn_error_codes_hpp.py /usr/local/opt/subversion/include/subversion-1
Compile: generate_svn_error_codes/generate_svn_error_codes.cpp into generate_svn_error_codes.o
Link generate_svn_error_codes/generate_svn_error_codes
Info: Make pysvn/init.py
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u create__init__.py pysvn/init.py.template pysvn/init.py generate_svn_error_codes/generate_svn_error_codes _pysvn_3_7.so
Info: Creating init.py for module _pysvn_3_7
Info: Running 'generate_svn_error_codes/generate_svn_error_codes >>pysvn/init.py'
Info: Make pysvn_docs.cpp
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u ../Docs/generate_cpp_docs_from_html_docs.py /usr/local/opt/subversion/include/subversion-1 ../Docs/pysvn_prog_ref.html pysvn_docs.hpp pysvn_docs.cpp
Info: svn_include /usr/local/opt/subversion/include/subversion-1
Info: html_doc ../Docs/pysvn_prog_ref.html
Info: cpp_header_filename pysvn_docs.hpp
Info: cpp_module_filename pysvn_docs.cpp
Info: Building against SVN 1.14.1 code 1014001
Info: Make pysvn_docs.hpp
touch pysvn_docs.hpp
Info: Make pysvn_version.hpp
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u ../Builder/brand_version.py ../Builder/version.info pysvn_version.hpp.template
Error: svnversion image not found at 'svnversion'
make: *** [pysvn_version.hpp] Error 1
creating /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/build
creating /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/build/lib.macosx-10.9-x86_64-3.7
creating /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/build/lib.macosx-10.9-x86_64-3.7/pysvn
error: [Errno 2] No such file or directory: 'pysvn/_pysvn_3_7.so'
ERROR: Failed building wheel for pysvn
Running setup.py clean for pysvn
Failed to build pysvn
Installing collected packages: pysvn
Running setup.py install for pysvn ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/setup.py'"'"'; file='"'"'/private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-record-pw91j6ua/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pysvn
cwd: /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/
Complete output (101 lines):
running install
running build
running build_ext
running egg_info
writing pysvn.egg-info/PKG-INFO
writing dependency_links to pysvn.egg-info/dependency_links.txt
writing top-level names to pysvn.egg-info/top_level.txt
reading manifest file 'pysvn.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'Source/pysvn/.so'
warning: no previously-included files found matching 'Source/pysvn_version.hpp'
writing manifest file 'pysvn.egg-info/SOURCES.txt'
Info: Configure for python 3.7.1 in exec_prefix /Library/Frameworks/Python.framework/Versions/3.7
Info: MACOSX_DEPLOYMENT_TARGET is 10.15
Info: Found PyCXX include in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5
Info: Found PyCXX Source in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5/Src
Info: Found SVN include in /usr/local/opt/subversion/include/subversion-1
Info: Found SVN library in /usr/local/opt/subversion/lib
Info: Found SVN bin in /usr/local/opt/subversion/bin
Info: Found APR include in /usr/local/opt/apr/libexec/include/apr-1
Info: Found APR include in /usr/local/opt/apr-util/libexec/include/apr-1
Info: Found APR library in /usr/local/opt/apr/libexec/lib
Info: Building against SVN 1.14.1
Info: MACOSX_DEPLOYMENT_TARGET is 10.15
Info: Found PyCXX include in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5
Info: Found PyCXX Source in /var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/tmpgwzzh6dr.pysvn-install/pysvn-1.9.13/Import/pycxx-7.1.5/Src
Info: Found SVN include in /usr/local/opt/subversion/include/subversion-1
Info: Found SVN library in /usr/local/opt/subversion/lib
Info: Found SVN bin in /usr/local/opt/subversion/bin
Info: Found APR include in /usr/local/opt/apr/libexec/include/apr-1
Info: Found APR include in /usr/local/opt/apr-util/libexec/include/apr-1
Info: Found APR library in /usr/local/opt/apr/libexec/lib
Info: Building against SVN 1.14.1
Info: Using tool chain MacOsxCompilerGCC
Info: Creating Makefile for Sources
Info: Creating Makefile for Tests
rm -f pysvn/init.py
rm -f pysvn/_pysvn_3_7.
rm -f pysvn.o
rm -f pysvn_callbacks.o
rm -f pysvn_client.o
rm -f pysvn_static_strings.o
rm -f pysvn_enum_string.o
rm -f pysvn_client_cmd_add.o
rm -f pysvn_client_cmd_changelist.o
rm -f pysvn_client_cmd_checkin.o
rm -f pysvn_client_cmd_copy.o
rm -f pysvn_client_cmd_diff.o
rm -f pysvn_client_cmd_export.o
rm -f pysvn_client_cmd_info.o
rm -f pysvn_client_cmd_list.o
rm -f pysvn_client_cmd_lock.o
rm -f pysvn_client_cmd_merge.o
rm -f pysvn_client_cmd_patch.o
rm -f pysvn_client_cmd_prop.o
rm -f pysvn_client_cmd_revprop.o
rm -f pysvn_client_cmd_switch.o
rm -f pysvn_transaction.o
rm -f pysvn_revision.o
rm -f pysvn_docs.o
rm -f pysvn_path.o
rm -f pysvn_arg_processing.o
rm -f pysvn_converters.o
rm -f pysvn_svnenv.o
rm -f pysvn_profile.o
rm -f cxxsupport.o
rm -f cxx_extensions.o
rm -f cxxextensions.o
rm -f IndirectPythonInterface.o
rm -f cxx_exceptions.o
rm -f pysvn_docs.cpp
rm -f pysvn_version.hpp
rm -f generate_svn_error_codes.hpp
rm -f generate_svn_error_codes/generate_svn_error_codes
rm -f generate_svn_error_codes.o
rm -f pysvn_docs.hpp
Info: Make generate_svn_error_codes.hpp
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u generate_svn_error_codes/create_svn_error_codes_hpp.py /usr/local/opt/subversion/include/subversion-1
Compile: generate_svn_error_codes/generate_svn_error_codes.cpp into generate_svn_error_codes.o
Link generate_svn_error_codes/generate_svn_error_codes
Info: Make pysvn/init.py
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u create__init__.py pysvn/init.py.template pysvn/init.py generate_svn_error_codes/generate_svn_error_codes _pysvn_3_7.so
Info: Creating init.py for module _pysvn_3_7
Info: Running 'generate_svn_error_codes/generate_svn_error_codes >>pysvn/init.py'
Info: Make pysvn_docs.cpp
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u ../Docs/generate_cpp_docs_from_html_docs.py /usr/local/opt/subversion/include/subversion-1 ../Docs/pysvn_prog_ref.html pysvn_docs.hpp pysvn_docs.cpp
Info: svn_include /usr/local/opt/subversion/include/subversion-1
Info: html_doc ../Docs/pysvn_prog_ref.html
Info: cpp_header_filename pysvn_docs.hpp
Info: cpp_module_filename pysvn_docs.cpp
Info: Building against SVN 1.14.1 code 1014001
Info: Make pysvn_docs.hpp
touch pysvn_docs.hpp
Info: Make pysvn_version.hpp
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u ../Builder/brand_version.py ../Builder/version.info pysvn_version.hpp.template
Error: svnversion image not found at 'svnversion'
make: *** [pysvn_version.hpp] Error 1
creating /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/build
creating /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/build/lib.macosx-10.9-x86_64-3.7
creating /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/build/lib.macosx-10.9-x86_64-3.7/pysvn
error: [Errno 2] No such file or directory: 'pysvn/_pysvn_3_7.so'
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/setup.py'"'"'; file='"'"'/private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-req-build-f603xard/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/0n/n4n5nlwj1yj_qjst10d6zh0m0000gn/T/pip-record-pw91j6ua/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pysvn Check the logs for full command output.
PySVN failed to install. You might be missing some dependencies.
On macOS, run:
$ xcode-select --install
$ brew install subversion
Note that you will need to install Homebrew from https://brew.sh/
and there is no isssue in version 1.19.12
I do know what reviewboard.org is.
Please use a source kit that I publish either from sourceforge or
pysvn.barrys-emacs.org
Then read the INSTALL.html for instructions.
If you are using brew you should be able to install all the dependencies that are required to build pysvn on macOS
Note: The ./setup.py is a contributed script and I do not use it for any of my builds.
I use the Sources/setup.py that is not setuptools based.
Error: svnversion image not found at 'svnversion'
That means that env var WC_SVNVERSION is not set to the path to svnversion.
But you should not need to run the brand_version.py with the documented build steps in INSTALL.html.
Can you explain why not? AFAICT from examining the sources and Makefile,
brand_version.pywill always be run, since there is nopysvn_version.hppin the source tree. In 1.9.12 it wouldBuilding/version_infoif not building from an SVN working copyIn 1.9.13, it will fail if WC_SVNVERSION is not set.
In 1.9.13 it will also fail if not building from an SVN working copy rather than using version_info like it used to.
Is there supposed to be a
pysvn_version.hppfile included in the 1.9.13 source tarball?I fixed a build issue in brand_version.py when building from the SVN repo.
But that fix broke the tarball. I have extended brand_version.py to look
for the revision in Builder/svn-revision.txt, and that file is new in the tarball.
Please try https://pysvn.barrys-emacs.org/source_kits/pysvn-1.9.14.tar.gz that should have this fixed.
Barry, I tried to upgrade packaging of pysvn to 1.9.13 for Gentoo and then ran into this issue here. I found a workaround (https://github.com/gentoo/gentoo/blob/50cd663733598e3c53c2918ed4f4690740d65b60/dev-python/pysvn/pysvn-1.9.13.ebuild#L39-L44) but it would be nice if the release of 1.9.14 could be finished so that I can clean up those workarounds. Thank you!