Page MenuHomeDevCentral

Python 3.4 and 3.5 conflict on Python
Closed, ResolvedPublic

Description

Currently, the following mismatch version situation occurs on Ysul:

  • default interpreter is Python 3.5
  • libraries are installed for Python 3.4

Python 2.7 isn't affected.

For example the notifications Python CLI client calls python3 and so run on Python 3.5, but pika is installed for 3.4. That leads to:

Ysul
$ notifications
Traceback (most recent call last):
  File "/usr/local/bin/notifications", line 22, in <module>
    import pika
ImportError: No module named 'pika'

Related Objects

Event Timeline

Note most 3.5 packages aren't currently available, we'll need to install them from ports.

Are available and installed:

py35-sqlite3: 3.5.2_7
py35-setuptools35: 28.1.0

Done.

Oct 19 23:39:38 ysul pkg: notifications-cli-client-0.3.0 deinstalled
Oct 19 23:39:40 ysul pkg: py34-beautifulsoup-4.3.2 deinstalled
Oct 19 23:39:41 ysul pkg: py34-lxml-3.4.1_1 deinstalled
Oct 19 23:39:42 ysul pkg: py34-mccabe-0.3.1 deinstalled
Oct 19 23:39:43 ysul pkg: py34-pika-0.10.0 deinstalled
Oct 19 23:39:44 ysul pkg: py34-sqlite3-3.4.5_7 deinstalled
Oct 19 23:39:45 ysul pkg: py34-setuptools34-28.1.0 deinstalled
Oct 19 23:40:11 ysul pkg: python34-3.4.5 deinstalled
Oct 19 23:48:34 ysul pkg: py35-setuptools35-28.1.0 installed
Oct 19 23:48:37 ysul pkg: py35-sqlite3-3.5.2_7 installed
Oct 19 23:52:01 ysul pkg-static: py35-pika-0.10.0 installed
Oct 19 23:56:51 ysul pkg-static: py35-beautifulsoup-4.4.1 installed
Oct 20 00:06:18 ysul pkg-static: py35-mccabe-0.3.1 installed
Oct 20 00:08:21 ysul pkg-static: notifications-cli-client-0.3.0 installed
Oct 20 00:08:48 ysul pkg-static: py35-lxml-3.6.0 installed