Changes between Initial Version and Version 1 of Ticket #69788


Ignore:
Timestamp:
Apr 20, 2024, 5:13:59 PM (4 weeks ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #69788

    • Property Keywords byobu-config removed
    • Property Summary changed from byobu @ 5.133 byobu-config could not import the python snack module to byobu @5.133: byobu-config could not import the python snack module
  • Ticket #69788 – Description

    initial v1  
    1 When trying to run 'byobu-config' I get, ERROR: Could not import the python snack module.
     1When trying to run 'byobu-config' I get,
     2{{{
     3ERROR: Could not import the python snack module.
     4}}}
    25
    36So 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).