Opened 5 months ago

Last modified 5 months ago

#69788 assigned defect

byobu @5.133: byobu-config could not import the python snack module — at Version 1

Reported by: danielbair (Daniel Bair) Owned by: l2dy (Zero King)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: byobu

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When trying to run 'byobu-config' I get,

ERROR: Could not import the python snack module.

So I attempted to install snack with 'pip install snack' and that failed with an error. Then searching for that error lead me to learn that snack hasn't been ported to python3 and there is no solution (see https://apple.stackexchange.com/questions/423515/byobu-not-working-on-new-installation-of-macos).

Change History (1)

comment:1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: byobu-config removed
Summary: byobu @ 5.133 byobu-config could not import the python snack modulebyobu @5.133: byobu-config could not import the python snack module

Weird: the byobu port doesn't mention that it uses python. But you're right, the contents of byobu-config (aside from comments) are just:

#!/bin/sh -e
PKG="byobu"
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/opt/local" || export BYOBU_PREFIX
. "${BYOBU_PREFIX}/lib/${PKG}/include/common"

${BYOBU_PYTHON} "${BYOBU_PREFIX}/lib/${PKG}/include/config.py"

So the byobu port should declare a library dependency on whatever newest version of python it is compatible with and the build process should ensure that that version of python is used.

You can use pip to install modules for your own use in your own user directories (e.g. in a virtualenv) but shouldn't use it to try to install things into the system (MacPorts) directories.

Last edited 5 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.