want to add YouTube video extractor clive to freeBSD

this sounds like a cool application, but it looks like it is built for linux and it has python
stuff.  i think i really need to learn how to install python stuff  on my freeBSD.. here is
my OS information:

kv_bsd#uname -a
FreeBSD kv_bsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
kv_bsd#

i am looking at the freeBSD ports page

http://www.freebsd.org/ports/multimedia.html

and i clicked on the main website and it went here:

http://home.gna.org/clive/

so now i clicked on

http://home.gna.org/clive/dl.shtml
 
okay so now i think my python is fine.. well follows is a bunch of things i did that i have a bad feeling
about.  i really need some tutoring in how to get better at installing various packages.

[kayve@kv_bsd ~]$ ls
Becky_Fulop_Resume-rev.doc      mousied
Desktop                         npviewer.bin.core
firefox-bin.core                public_html
firefoxError                    riese_resume.doc
firefoxError~                   riese_resume.txt
link to monkeyview              urlgrabber-3.1.0.tar.gz
link to porn
[kayve@kv_bsd ~]$ su -
Password:
kv_bsd#cd /usr
kv_bsd#ls
.Trash-root     bin             include         link to home    root
.gimp-2.2       compat          lib             local           sbin
.snap           games           libdata         obj             share
X11R6           home            libexec         ports           src
kv_bsd#cd ports/dis
ports/dis: No such file or directory.
kv_bsd#cd ports/distfiles/
kv_bsd#mv /usr/home/kayve/urlgrabber-3.1.0.tar.gz .
kv_bsd#tar vxfz urlgrabber-3.1.0.tar.gz
x urlgrabber-3.1.0/
x urlgrabber-3.1.0/test/
x urlgrabber-3.1.0/test/munittest.py
x urlgrabber-3.1.0/test/base_test_code.py
x urlgrabber-3.1.0/test/threading/
x urlgrabber-3.1.0/test/threading/batchgrabber.py
x urlgrabber-3.1.0/test/grabberperf.py
x urlgrabber-3.1.0/test/test_keepalive.py
x urlgrabber-3.1.0/test/test_mirror.py
x urlgrabber-3.1.0/test/test_byterange.py
x urlgrabber-3.1.0/test/test_grabber.py
x urlgrabber-3.1.0/test/runtests.py
x urlgrabber-3.1.0/TODO
x urlgrabber-3.1.0/scripts/
x urlgrabber-3.1.0/scripts/urlgrabber
x urlgrabber-3.1.0/urlgrabber/
x urlgrabber-3.1.0/urlgrabber/byterange.py
x urlgrabber-3.1.0/urlgrabber/keepalive.py
x urlgrabber-3.1.0/urlgrabber/progress.py
x urlgrabber-3.1.0/urlgrabber/mirror.py
x urlgrabber-3.1.0/urlgrabber/grabber.py
x urlgrabber-3.1.0/urlgrabber/sslfactory.py
x urlgrabber-3.1.0/urlgrabber/__init__.py
x urlgrabber-3.1.0/README
x urlgrabber-3.1.0/setup.py
x urlgrabber-3.1.0/MANIFEST
x urlgrabber-3.1.0/ChangeLog
x urlgrabber-3.1.0/PKG-INFO
x urlgrabber-3.1.0/LICENSE
kv_bsd#cd urlgrabber-3.1.0
kv_bsd#python setup.py bdist_rpm
running bdist_rpm
creating build
creating build/bdist.freebsd-6.2-RELEASE-i386
creating build/bdist.freebsd-6.2-RELEASE-i386/rpm
creating build/bdist.freebsd-6.2-RELEASE-i386/rpm/SOURCES
creating build/bdist.freebsd-6.2-RELEASE-i386/rpm/SPECS
creating build/bdist.freebsd-6.2-RELEASE-i386/rpm/BUILD
creating build/bdist.freebsd-6.2-RELEASE-i386/rpm/RPMS
creating build/bdist.freebsd-6.2-RELEASE-i386/rpm/SRPMS
writing 'build/bdist.freebsd-6.2-RELEASE-i386/rpm/SPECS/urlgrabber.spec'
running sdist
reading manifest file 'MANIFEST'
creating urlgrabber-3.1.0
creating urlgrabber-3.1.0/scripts
creating urlgrabber-3.1.0/test
creating urlgrabber-3.1.0/test/threading
creating urlgrabber-3.1.0/urlgrabber
making hard links in urlgrabber-3.1.0...
hard linking ChangeLog -> urlgrabber-3.1.0
hard linking LICENSE -> urlgrabber-3.1.0
hard linking MANIFEST -> urlgrabber-3.1.0
hard linking README -> urlgrabber-3.1.0
hard linking TODO -> urlgrabber-3.1.0
hard linking setup.py -> urlgrabber-3.1.0
hard linking scripts/urlgrabber -> urlgrabber-3.1.0/scripts
hard linking test/base_test_code.py -> urlgrabber-3.1.0/test
hard linking test/grabberperf.py -> urlgrabber-3.1.0/test
hard linking test/munittest.py -> urlgrabber-3.1.0/test
hard linking test/runtests.py -> urlgrabber-3.1.0/test
hard linking test/test_byterange.py -> urlgrabber-3.1.0/test
hard linking test/test_grabber.py -> urlgrabber-3.1.0/test
hard linking test/test_keepalive.py -> urlgrabber-3.1.0/test
hard linking test/test_mirror.py -> urlgrabber-3.1.0/test
hard linking test/threading/batchgrabber.py -> urlgrabber-3.1.0/test/threading
hard linking urlgrabber/__init__.py -> urlgrabber-3.1.0/urlgrabber
hard linking urlgrabber/byterange.py -> urlgrabber-3.1.0/urlgrabber
hard linking urlgrabber/grabber.py -> urlgrabber-3.1.0/urlgrabber
hard linking urlgrabber/keepalive.py -> urlgrabber-3.1.0/urlgrabber
hard linking urlgrabber/mirror.py -> urlgrabber-3.1.0/urlgrabber
hard linking urlgrabber/progress.py -> urlgrabber-3.1.0/urlgrabber
hard linking urlgrabber/sslfactory.py -> urlgrabber-3.1.0/urlgrabber
creating dist
tar -cf dist/urlgrabber-3.1.0.tar urlgrabber-3.1.0
gzip -f9 dist/urlgrabber-3.1.0.tar
removing 'urlgrabber-3.1.0' (and everything under it)
copying dist/urlgrabber-3.1.0.tar.gz -> build/bdist.freebsd-6.2-RELEASE-i386/rpm/SOURCES
building RPMs
rpm -ba --define _topdir /usr/ports/distfiles/urlgrabber-3.1.0/build/bdist.freebsd-6.2-RELEASE-i386/rpm --clean build/bdist.freebsd-6.2-RELEASE-i386/rpm/SPECS/urlgrabber.spec
Bad owner/group: /usr/ports/distfiles/urlgrabber-3.1.0/build/bdist.freebsd-6.2-RELEASE-i386/rpm/SOURCES/urlgrabber-3.1.0.tar.gz
error: command 'rpm' failed with exit status 1
kv_bsd#ls
ChangeLog       PKG-INFO        build           setup.py
LICENSE         README          dist            test
MANIFEST        TODO            scripts         urlgrabber
kv_bsd#vi README

urlgrabber -- A high-level cross-protocol url-grabber

INSTALLATION INSTRUCTIONS

If you want to install urlgrabber on your system, simply open the package
and run:

   python setup.py install

Take a look at the install options by doing

   python setup.py install --help

With no arguments, distutils will add all modules to a 'urlgrabber'
package under your python site-packages directory.

You can build rpms by running

   python setup.py bdist_rpm

The rpms (both source and "binary") will be specific to the current
distrubution/version and may not be portable to others.  This is
because they will be built for the currently installed python.
README: 31 lines, 995 characters.
kv_bsd#python setup.py install
running install
running build
running build_py
creating build/lib
creating build/lib/urlgrabber
copying urlgrabber/byterange.py -> build/lib/urlgrabber
copying urlgrabber/keepalive.py -> build/lib/urlgrabber
copying urlgrabber/progress.py -> build/lib/urlgrabber
copying urlgrabber/mirror.py -> build/lib/urlgrabber
copying urlgrabber/grabber.py -> build/lib/urlgrabber
copying urlgrabber/sslfactory.py -> build/lib/urlgrabber
copying urlgrabber/__init__.py -> build/lib/urlgrabber
running build_scripts
creating build/scripts-2.4
copying and adjusting scripts/urlgrabber -> build/scripts-2.4
changing mode of build/scripts-2.4/urlgrabber from 644 to 755
running install_lib
creating /usr/local/lib/python2.4/site-packages/urlgrabber
copying build/lib/urlgrabber/byterange.py -> /usr/local/lib/python2.4/site-packages/urlgrabber
copying build/lib/urlgrabber/keepalive.py -> /usr/local/lib/python2.4/site-packages/urlgrabber
copying build/lib/urlgrabber/progress.py -> /usr/local/lib/python2.4/site-packages/urlgrabber
copying build/lib/urlgrabber/mirror.py -> /usr/local/lib/python2.4/site-packages/urlgrabber
copying build/lib/urlgrabber/grabber.py -> /usr/local/lib/python2.4/site-packages/urlgrabber
copying build/lib/urlgrabber/sslfactory.py -> /usr/local/lib/python2.4/site-packages/urlgrabber
copying build/lib/urlgrabber/__init__.py -> /usr/local/lib/python2.4/site-packages/urlgrabber
byte-compiling /usr/local/lib/python2.4/site-packages/urlgrabber/byterange.py to byterange.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/urlgrabber/keepalive.py to keepalive.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/urlgrabber/progress.py to progress.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/urlgrabber/mirror.py to mirror.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/urlgrabber/grabber.py to grabber.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/urlgrabber/sslfactory.py to sslfactory.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/urlgrabber/__init__.py to __init__.pyc
running install_scripts
copying build/scripts-2.4/urlgrabber -> /usr/local/bin
changing mode of /usr/local/bin/urlgrabber to 755
running install_data
creating /usr/local/share/doc/urlgrabber-3.1.0
copying README -> /usr/local/share/doc/urlgrabber-3.1.0
copying LICENSE -> /usr/local/share/doc/urlgrabber-3.1.0
copying TODO -> /usr/local/share/doc/urlgrabber-3.1.0
copying ChangeLog -> /usr/local/share/doc/urlgrabber-3.1.0
kv_bsd#ls
ChangeLog       PKG-INFO        build           setup.py
LICENSE         README          dist            test
MANIFEST        TODO            scripts         urlgrabber
kv_bsd#vi TODO

  * cache dns lookups -- for a possible approach, see
    https://lists.dulug.duke.edu/pipermail/yum-devel/2004-March/000136.html

Misc/Maybe:

  * BatchURLGrabber/BatchMirrorGroup for concurrent downloads and possibly to
    handle forking into secure/setuid sandbox.

  * Consider adding a progress_meter implementation that can be used in
    concurrent download situations (I have some ideas about this -mds)

  * Consider using CacheFTPHandler instead of FTPHandler in byterange.py.
    CacheFTPHandler reuses connections but this may lead to problems with
    ranges. I've tested CacheFTPHandler with ranges using vsftpd as a
    server and everything works fine but this needs more exhaustive tests
    or a fallback mechanism. Also, CacheFTPHandler breaks with multiple
    threads.

  * Consider some statistics tracking so that urlgrabber can record the
    speed/reliability of different servers.  This could then be used by
    the mirror code for choosing optimal servers (slick, eh?)

  * check SSL certs.  This may require PyOpenSSL.
:q
kv_bsd#ls
ChangeLog       PKG-INFO        build           setup.py
LICENSE         README          dist            test
MANIFEST        TODO            scripts         urlgrabber
kv_bsd#python setup.py build
running build
running build_py
running build_scripts
kv_bsd#python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/urlgrabber to 755
running install_data
kv_bsd#
kayveyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

modcon_jscottCommented:
it should already be installed in your PYTHONPATH.  This happened when you ran python setup.py install

Try to open a python prompt and then import this module. If it fails then you id not install it correctly. If you get not error, then you are golden and you can code away.
0
kayveyAuthor Commented:
no such reality.  had same problem trying to install pychess

[kayve@kv_bsd ~]$ echo $PYTHONPATH

[kayve@kv_bsd ~]$

[kayve@kv_bsd ~]$ uname -a
FreeBSD kv_bsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
[kayve@kv_bsd ~]$
0
kayveyAuthor Commented:
[kayve@kv_bsd ~]$ which python
/usr/local/bin/python
[kayve@kv_bsd ~]$
0
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

kayveyAuthor Commented:
like i said, this python stuff. i don't know what is happening.. bunch of useless commands to me. pretty little
nonsense on my command line, but not sticking.  with pychess i tried manually setting PYTHONPATH but
that was useless
0
kayveyAuthor Commented:
this is not a linux box, but i thought i had linux capatibility.  if you are not familiar with freeBSD dont' go saying
that it is nonense because it is the original unix.  i, however, am probably the original luser.
0
modcon_jscottCommented:
I've been using *BSD for more than 5 years now in production and as a hobby for another 5. I use python every day and have for the past three years.

You have python installed on your machine, so run it. when you type python and hit enter you should get the python command line.  Once you are there you can try to import your new package, of there are no errors then you are good to go, then great youre done, fire up an IDE and code away.

If you get an error when you try to import the module, them you need to find out why this didnt install correctly.  Did you try to look at the setup.py script and see where it installed the files?
0
kayveyAuthor Commented:
[kayve@kv_bsd ~]$ python
Python 2.4.3 (#2, Oct 15 2006, 05:32:11)
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
>>> 
0
kayveyAuthor Commented:
i have used other command lines.. but i don't know how to "import" with this command line.  i am getting
tired now.. i will try to figure it out later
0
TeRReFCommented:
As root or with sudo do:

cd /usr/ports/multimedia/clive

make install clean
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kayveyAuthor Commented:
fyi.. that is the kind of thing i was doing BEFORE posting this, but maybe you are noticing that i did
the python stuff and didn't go back and do that again?
0
TeRReFCommented:
What error do you get when installing from the ports collection?
0
kayveyAuthor Commented:
umm.. I dunno.  maybe it's good now.. but apparently i had to do.. oh mwan what do i do now?
i don't even know what this freekin' thing is for!!  {:D

byte-compiling /usr/local/lib/python2.4/site-packages/clive/parse.py to parse.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/clive/progress.py to progress.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/clive/update.py to update.pyc
writing byte-compilation script '/tmp/tmpihe8_I.py'
/usr/local/bin/python2.4 -O /tmp/tmpihe8_I.py
removing /tmp/tmpihe8_I.py
running install_scripts
copying build/scripts-2.4/clive -> /usr/local/bin
changing mode of /usr/local/bin/clive to 755
running install_data
copying man/clive.1.gz -> /usr/local/man/man1
===>   Registering installation for py24-clive-0.4.4
===>  Cleaning for xclip-0.08_1
===>  Cleaning for py24-clive-0.4.4
kv_bsd#
0
kayveyAuthor Commented:
oh yeah.. you tube extraction.. hmm.. you know how this thing werks?.. i should rtfm but i'm not
in the mood to save anything from YouTube at the moment
0
TeRReFCommented:
I've never used it myself, so I have no clue how it works. But it is installed so your question is answered :-)
0
kayveyAuthor Commented:
Did I forget to do a python thing before the make install clean from the /usr/ports and that's why I messed up at first?
0
kayveyAuthor Commented:
The thing is, why I don't feel like giving points exactly now is that there was something interesting, I felt real real cool about having that python prompt up for a second, but I don't understand exactly how I can justify points for anything having to do with the python stuff, but nonetheless, I am not sure.  I was hoping that other dude would chime in on something enlightening that would help me understand exactly how to split these points.  I swear to god all I have been doing is make install clean in /usr/ports for a number of days now, but I decided to ask this weird question that included the python region of experts.  I am thinking of asking a new question about installing pyChess because I seemed to have failed at that in a very analogous way to the failure here, but the difference is that pyChess is not a /usr/port
0
kayveyAuthor Commented:
Basically, TeRReF, you told me what I had already done, i.e. "make install clean" in /usr/ports/blah/blah but apparently I did SOMETHING with python Makefile.py that is important that needed to be done before "make install clean," therefore when you told me to REPEAT "make install clean" AT THIS JUNCTURE.  It seems clear to me that I split the points.  Is it 50-50?  Who gets more?  WTF did I do?
0
kayveyAuthor Commented:
for example, this mystery:

[::clip::]
no such reality.  had same problem trying to install pychess

[kayve@kv_bsd ~]$ echo $PYTHONPATH

[kayve@kv_bsd ~]$

[::end clip::]

and this is open ended:

[::clip::]

modcon_jscott:
I've been using *BSD for more than 5 years now in production and as a hobby for another 5. I use python every day and have for the past three years.

You have python installed on your machine, so run it. when you type python and hit enter you should get the python command line.  Once you are there you can try to import your new package, of there are no errors then you are good to go, then great youre done, fire up an IDE and code away.

If you get an error when you try to import the module, them you need to find out why this didnt install correctly.  Did you try to look at the setup.py script and see where it installed the files?

[::end clip::]

I don't remember importing any package at the python command prompt.  There are no errors, but I would like to know how I was supposed to do that because I don't know.  What are the implications of the fact that I have failed that but nonetheless succeeded in installation?
0
TeRReFCommented:
The whole idea of the ports collection is that it will install/configure any dependencies that are related to the program you want to install. Any importing is done by make and the corresponding Makefile.

Oh, and pyChess IS a port:
/usr/ports/games/py-pychess

0
kayveyAuthor Commented:
Kewl. Still want other dude to chime in about what he think he's worth in percentage of points.
0
kayveyAuthor Commented:
Are you trying to suggest he doesn't deserve any percentage of the points?
0
TeRReFCommented:
I'm not suggesting anything. It's totally up to you.
0
kayveyAuthor Commented:
hoping to get him to post once more.  I will definitely give you at least some if not the majority of the points. If he says so, I would give you all the points, but I want to see what he says.  
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.