Problem while setting up PYLOAD

Status
Not open for further replies.

kamezouj

Cadet
Joined
Nov 5, 2012
Messages
4
Hi all,

Im newbie it's my first BSD project before get the entire home in Freebsd i HOPE !!!
My problem is the following one, im trying install PYLOAD but it seems like im doing something wrong, as you can see. Is there something missing ?

Thanks for helping me ...

[root@freenas] ~# jls
JID IP Address Hostname Path
4 - Jail /mnt/Dsk/Jailtest/Jail
Jail# Jail# exit
[root@freenas] ~# jexec 4 csh
Jail#: Command not found.
Jail# mkdir /usr/local/share/pyload
Jail# exit
mkdir: /usr/local/share/pyload: File exists
exit
Jail# cd /usr/local/share/pyload/
Jail# fetch http://get.pyload.org/get/src/
fetch.out 100% of 1545 kB 442 kBps
Jail# tar -xfv fetch.out
tar: Error opening archive: Failed to open 'v'
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
Well, the "obvious" problem is that you're calling tar wrong. The "-f" command line option must always be followed by a filename, but you followed it with "v". If you're going to merge command line parameters, you need to do it in the right order -- "tar -xvf fetch.out".

The non-obvious problem is that the pyload source does not come down in a tar.gz, but instead in a zip. You'll need to use the "unzip" command line tool on that instead.
 

kamezouj

Cadet
Joined
Nov 5, 2012
Messages
4
Well, the "obvious" problem is that you're calling tar wrong. The "-f" command line option must always be followed by a filename, but you followed it with "v". If you're going to merge command line parameters, you need to do it in the right order -- "tar -xvf fetch.out".

The non-obvious problem is that the pyload source does not come down in a tar.gz, but instead in a zip. You'll need to use the "unzip" command line tool on that instead.

Taanks for the command, it works perfectly, now i get another problem the following command doens't work even the file is available.
It sais that the commande doesn't exist.

Jail# ls
LICENSE icons pavement.py pyLoadGui.py systemCheck.py
README locale pyLoadCli.py scripts testlinks.txt
fetch.out module pyLoadCore.py setup.cfg tests
Jail# pyLoadCore -s
pyLoadCore: Command not found.
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
Did you read the docs (ignore that it says linux, it's roughly the same if you aren't installing the optional dependencies)?

You need to run "python pyLoadCore.py -s". If pyLoadCore.py is marked as executable, you can probably drop the initial "python" part, but you still need to include the ".py". Unlike Windows, unix doesn't infer file extensions ("pyLoadCore" could refer to a .exe, .com, .bat, .cmd, etc in Windows), so you've got to provide the whole thing. And if you skip the "python" part, you'll need to give it the local path as "./pyLoadCore.py", since . isn't in $PATH by default.

Once you get that working, you're next going to run into missing pycurl, unless you installed that already. If you're on 8.3, you should be able to simply run "pkg_add -r py27-curl" and it'll work. On 8.2, the latest py-curl package is py26-curl but the installed python is 2.7 so that's not going to work.
 
Status
Not open for further replies.
Top