No subject

Levent YALÇIN leventyalcin at gmail.com
Mon Jun 16 15:56:40 PDT 2014


I've installed byobu from Portfile

here is the steps I followed if somebody needs;

$ mkdir -p /tmp/ports/devel/byobu
$ cd /tmp/ports/devel/byobu/
$ curl -o Portfile
'https://trac.macports.org/raw-attachment/ticket/30238/Portfile'

Add the line below to /opt/local/etc/macports/sources.conf (before the
rsync:// line)
file:///tmp/ports

$ sudo portindex

and make sure you're seeing output below
Creating port index in  /tmp/ports

Total number of ports parsed: 1
Ports successfully parsed: 1
Ports failed: 0
Up-to-date ports skipped: 0

$ sudo port install byobu

after I installed byobu i noticed that there is no python bindings of
libnewt and then i did

$ sudo port upgrade --force -n -s libnewt "configure.args=--with-python"

and files were there
$ ls -la /opt/local/lib/python2.7/site-packages/
-rwxr-xr-x   1 root  admin  54364 Jun 16 21:10 _snack.so
-rw-r--r--   1 root  admin  31008 Jun 16 21:10 snack.py

but byobu was still saying No module error snack.
I changed shebang with #!/opt/local/bin/python2.7 and didn't work

I added these lines
 24 import site
 25 print site.getsitepackages()
and it printed this paths
['/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/site-python',
'/Library/Python/2.7/site-packages']

so, I added soft links
$ sudo ln -s /opt/local/lib/python2.7/site-packages/_snack.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_snack.so
$ sudo ln -s /opt/local/lib/python2.7/site-packages/snack.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/snack.py

after this I got this error
Traceback (most recent call last):
  File "/opt/local/bin/byobu-config", line 41, in <module>
    SHARE = BYOBU_CONFIG_DIR+"/"+SHARE
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

there is no env var for it and I added the lines below to my .bashrc

export BYOBU_PREFIX=/opt/local
export BYOBU_CONFIG_DIR=/opt/local

now it works. I really hope this feedbacks help to make it better.

Thanks.


--
Levent YALCIN
System Administrator & Free software enthusiast
http://about.me/leventyalcin


More information about the macports-dev mailing list