SlackBuild package for nts version 78

21 views
Skip to first unread message

Jostein Berntsen

unread,
Jul 15, 2011, 9:37:03 AM7/15/11
to notetaking...@googlegroups.com
I have made a SlackBuild package for nts version 78 that makes it easy
to install the correct way in Slackware 13.37:

http://slackbuilds.org/repository/13.37/office/nts/


Jostein

lawquest

unread,
Jul 18, 2011, 2:26:26 AM7/18/11
to notetaking...@googlegroups.com
Jostein,

Should we uninstall nts before running your slackware package and if so, any suggestions how I might do so?

Thx

John

Jostein Berntsen

unread,
Jul 18, 2011, 7:12:52 AM7/18/11
to notetaking...@googlegroups.com

If you have a slackware installation, you can as root do "removepkg nts" and then
"sbopkg -i nts" to install this optimimized package.


Jostein


lawquest

unread,
Jul 18, 2011, 9:28:50 AM7/18/11
to notetaking...@googlegroups.com
Thanks,

I tried "removepkg nts" and get "No such package: /var/log/packages/nts. Can't remove."

I installed nts with python's easyinstall.

John

Jostein Berntsen

unread,
Jul 18, 2011, 10:15:02 AM7/18/11
to notetaking...@googlegroups.com

For listing installed python packages you can install yolk:

easy_install yolk

and then:

yolk -l

You can then remove the nts packages with:

easy_install -mcN [PACKAGE]

and:

rm -rf .../python2.X/site-packages/[PACKAGE].egg

http://peak.telecommunity.com/DevCenter/EasyInstall#uninstalling-packages

If you use the pip manager instead, this includes an uninstall command.

On your slackware system it's better to use sbopkg, slackpkg and installpkg to install
packages so they are installed correctly in the slack file structure.


Jostein


lawquest

unread,
Jul 18, 2011, 12:04:41 PM7/18/11
to notetaking...@googlegroups.com
yolk installed fine and shows, among other things:

"nts             - 78           - active "

However, the next step produced an error.  Should I remove the "c" and proceed?

"vector://home/johwhi
root:# easy_install -mcN nts
usage: easy_install [options] requirement_or_url ...
   or: easy_install --help

error: option -c not recognized
vector://home/johwhi"



Jostein Berntsen

unread,
Jul 19, 2011, 11:27:18 AM7/19/11
to notetaking...@googlegroups.com

You can try with just the -m option.


Jostein


lawquest

unread,
Jul 22, 2011, 12:52:27 PM7/22/11
to notetaking...@googlegroups.com
Here is what I get.


vector://home/johwhi
root:# easy_install -m nts
Searching for nts
Best match: nts 78
Processing nts-78-py2.7.egg
Removing nts 78 from easy-install.pth file
Installing n.py script to /usr/bin
Installing n.pyw script to /usr/bin

Using /usr/lib/python2.7/site-packages/nts-78-py2.7.egg

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

    pkg_resources.require("nts")  # latest installed version
    pkg_resources.require("nts==78")  # this exact version
    pkg_resources.require("nts>=78")  # this version or higher

Processing dependencies for nts
Finished processing dependencies for nts
vector://home/johwhi

Can I now proceed with the slackbuild?

Thx

John

Jostein Berntsen

unread,
Jul 22, 2011, 1:02:13 PM7/22/11
to notetaking...@googlegroups.com

You should remove the egg file as well:

rm -rf .../python2.X/site-packages/[PACKAGE].egg

After that you can install the SlackBuild package.

Jostein

Jostein Berntsen

unread,
Jul 22, 2011, 1:10:36 PM7/22/11
to notetaking...@googlegroups.com

There is also a script here that can remove outdated egg files:

http://ubuntuforums.org/showthread.php?t=666698


Jostein

$

lawquest

unread,
Jul 22, 2011, 1:19:58 PM7/22/11
to Note Taking Simplified
Cool.

I went ahead and did "root:# rm -rf /usr/lib/python2.7/site-packages/
nts-78-py2.7.egg" before I saw your last post, then installed the
slackbuild. Major improvement on my system. Thanks!

John
Reply all
Reply to author
Forward
0 new messages