From owner-freebsd-questions@freebsd.org Tue Jun 2 23:15:13 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B44862FDA08 for ; Tue, 2 Jun 2020 23:15:13 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49c7DZ5wn6z44jf for ; Tue, 2 Jun 2020 23:15:09 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 052NF0Mi016936; Tue, 2 Jun 2020 17:15:00 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Subject: Re: Migrating To Python 3.x To: Tim Daneliuk , FreeBSD Mailing List References: <02676140-06dd-a947-b7b4-0f6ccbeaf773@tundraware.com> <0b794721-3548-0882-58ff-7eedd54fe645@tundraware.com> <04c4ee18-daa2-aebc-882c-29407a58a160@tundraware.com> From: Gary Aitken Reply-To: freebsd@dreamchaser.org Message-ID: <1f495234-6e58-db90-943f-5b5935e24f4f@dreamchaser.org> Date: Tue, 2 Jun 2020 17:12:40 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <04c4ee18-daa2-aebc-882c-29407a58a160@tundraware.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Tue, 02 Jun 2020 17:15:01 -0600 (MDT) X-Rspamd-Queue-Id: 49c7DZ5wn6z44jf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-2.55 / 15.00]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.908]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.99)[-0.994]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.34)[-0.343]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 23:15:13 -0000 On 6/1/20 9:52 PM, Tim Daneliuk wrote: > Has anyone every managed to get py2 and py3 to coexist happily on > FreeBSD including their respective pips and setuptools? I seem I have them coexisting on an 11.3 system. At least they are both installed, although I haven't paid a lot of attention as to what is using what. They were installed from packages, not built from ports. ~$ pkg info -r python27 python27-2.7.17_1: py27-pytest-runner-2.11.1 py27-setuptools_scm-3.1.0 py27-snowballstemmer-1.2.0_1 py27-pystemmer-1.3.0_2 py27-cython-0.29 py27-alabaster-0.7.6 py27-sphinx_rtd_theme-0.4.3 py27-pygments-2.3.0 py27-sphinxcontrib-websupport-1.1.0 py27-docutils-0.14_3 py27-Jinja2-2.10 py27-Babel-2.6.0 py27-MarkupSafe-1.1.1 google-cloud-sdk-272.0.0 py27-sqlite3-2.7.17_7 vtk6-6.2.0_10 py27-matplotlib-2.2.4_1 py27-backports.functools_lru_cache-1.5 py27-cycler-0.10.0 py27-dateutil-2.8.0 py27-pyparsing-2.4.6 py27-pytz-2019.3,1 py27-kiwisolver-1.1.0 py27-numpy-1.16.5_2,1 py27-tornado-5.1.1 py27-tkinter-2.7.17_6 py27-backports-1 py27-backports_abc-0.5 py27-futures-3.3.0 py27-singledispatch-3.4.0.3_1 py27-six-1.12.0 hugin-2019.0.0_4 vigra-1.11.1_6 py27-gimp-2.10.14 en-gimp-help-html-2.8.2_1 py27-gtk2-2.24.0_5 libglade2-2.6.4_9 py27-gobject-2.28.6_8 py27-cairo-1.18.1_1 py27-setuptools-41.4.0_1 $ pkg info -r python37 python37-3.7.6: gcc-arm-embedded-9.2.20191106_2 libftdi-0.20_16 libftdi1-1.4_15 libfsntfs-e.20191221 libfwnt-20191222 openshot-2.4.4.443 py37-qt5-svg-5.13.1 libopenshot-0.2.3.490 py37-pyzmq-18.1.1 py37-qt5-webkitwidgets-5.13.1 py37-requests-2.22.0 py37-qt5-printsupport-5.13.1 py37-qt5-webkit-5.13.1 py37-urllib3-1.25.6,1 py37-chardet-3.0.4_3 py37-qt5-network-5.13.1 py37-idna-2.8 py37-pysocks-1.7.1 py37-openssl-19.0.0 py37-certifi-2019.11.28 py37-cryptography-2.6.1 py37-asn1crypto-0.24.0 py37-cffi-1.13.2 py37-pycparser-2.19 FreeCAD-0.18.4_1 opencascade-7.4.0_1 libarea-20160313_13 py37-pyside2-5.13.2_1 py37-pivy-devel-0.6.4_1 py37-matplotlib-2.2.4_1 py37-boost-libs-1.72.0 py37-shiboken2-5.13.2 py37-cycler-0.10.0 py37-dateutil-2.8.0 py37-pyparsing-2.4.6 py37-pytz-2019.3,1 py37-kiwisolver-1.1.0 py37-numpy-1.16.5_2,1 py37-tornado-5.1.1 llvm90-9.0.0_2 gstreamer1-plugins-a52dec-1.14.4 gstreamer1-plugins-mpg123-1.14.4 gstreamer1-plugins-vorbis-1.14.4 gstreamer1-plugins-png-1.14.4 gstreamer1-plugins-dts-1.14.4 gstreamer1-plugins-dvdread-1.14.4_1 gstreamer1-plugins-resindvd-1.14.4_1 gstreamer1-plugins-theora-1.14.4 gstreamer1-plugins-pango-1.14.4 gstreamer1-plugins-ogg-1.14.4 gstreamer1-plugins-good-1.14.4 gstreamer1-plugins-ugly-1.14.4 git-2.24.1 gconf2-3.2.6_5 gstreamer1-plugins-gl-1.14.4_2 gstreamer1-plugins-bad-1.14.4 graphene-1.10.0 py37-gobject3-3.28.3 py37-cairo-1.18.1_1 hplip-3.19.12 py37-qt5-dbussupport-5.13.1 py37-pillow-6.2.2 py37-qt5-widgets-5.13.1 py37-dbus-1.2.14 py37-olefile-0.46 py37-tkinter-3.7.6_6 py37-qt5-gui-5.13.1 py37-qt5-core-5.13.1 py37-sip-4.19.19_1,1 bind-tools-9.14.9 py37-ply-3.11 libinput-1.12.6_1 py37-evdev-0.8.1_1 py37-pyudev-0.21.0 py37-six-1.12.0 py37-setuptools-41.4.0_1 lensfun-0.3.2_2 libreoffice-6.3.4 gstreamer1-plugins-1.14.4_2 gstreamer1-1.14.4 gtk2-2.24.32 gobject-introspection-1.56.1,1 glib-2.56.3_7,1 llvm80-8.0.1_3 However, recent attempts to build a development version of FreeCAD using python37 is failing because of a conflict; haven't had time to look into it: root@breakaway:/usr/ports/cad/freecad-devel # make ===> FreeCAD-8.d821.f5.f depends on file: /usr/local/bin/cmake - not found ===> cmake-3.13.4 depends on executable: sphinx-build - not found ===> Staging for py27-sphinx-1.6.5_1,1 ... ===> Staging for py27-requests-2.21.0 ===> py27-requests-2.21.0 depends on package: py27-chardet>=3.0.2 - not found ===> Installing for py27-chardet-3.0.4 ===> Checking if py27-chardet is already installed ===> Registering installation for py27-chardet-3.0.4 as automatic Installing py27-chardet-3.0.4... pkg-static: py27-chardet-3.0.4 conflicts with py37-chardet-3.0.4_3 (installs files into the same place). Problematic file: /usr/local/bin/chardetect so I guess the answer is not flawlessly, at least not yet :-( gimp seems to be the one thing using python27. I know I use python in my use of gimp as I have a couple of plug-ins written. Gary