claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

ls: unrecognized option '--fancy' #88

Open nislim opened 9 years ago

nislim commented 9 years ago

On a fresh install of Centos 7, after logging in, I get the following error:

192.168.1.44 - - [28/Jul/2015 09:43:59] "GET / HTTP/1.1" 500 -
ls: unrecognized option '--fancy'
Try 'ls --help' for more information.

The versions I'm running is:

lxc.x86_64                         1.0.7-1.el7                         @epel

And the lwp I got from this git commit:

commit 179e2e824b6e822ff43c43139ec136551b56ca61
Author: Claudio Mignanti <c.mignanti@unidata.it>
Date:   Fri Jul 17 15:07:30 2015 +0200

    fix: dash (-) are not recognized after dot in regex

    See #86
mpp4manu commented 9 years ago

I'm getting the same type of error on Red Hat EL6 (RHEL6).

I think this is because we're both attempting to use Red Hat Linux, which is not supported in the distribution. I followed the instructions for source code installation.

When I originally tried to get LWP to work, I tried to use Python 3.4.3 in a virtual environment. However, this required modification of several LWP scripts to be compatible with Python 3.4.3 (e.g. the ConfigParser function is called configparser). Even after I got the lwp server to start, I continued getting errors, the last being a failure to encode error. There are suggestions that the encode requirement was introduced in Python 3, so now I wonder which Python should be used to run

At that point, I gave up and performed an altinstall of Python 2.7.10 because the default Red Hat Python 2.6.6 does not support a function required by LWP and their were (incorrect) suggestions that you needed Python 3 to get that function. We both appear to be stuck between needing Python 3 and not being able to run LWP under Python 3.

I also noticed that there was no lxc-extra package available for RHEL6, so I ended up grabbing the lxc 1.0.7 source code and compiled it. Unfortunately, lxc-ls requires Python 3 (the first line being "#!/usr/bin/python3"). I tried modifying that line to use Python 2.7.10, but then lxc-ls fails.

We appear to be caught between conflicting requirements and I'm not sure what is needed. If you use Python 2.7.10, then lxc-ls will not work. If you use Python 3.4.3, then the LWP scripts themselves need modifications before they will execute.

The author of this fork clearly states that it is for Debian, so I'm not sure we can ask for much help.

mpp4manu commented 9 years ago

Well, after some more trying, I actually got this to work (sort of) in a roundabout way on RHEL 6.6. The "Networking" is throwing an error still.

I'll try to provide installation details if anyone is interested.

gregtampa commented 8 years ago

ubuntu:~# lxc-ls --fancy ls: unrecognized option '--fancy' Try `ls --help' for more information.

claudyus commented 8 years ago

@gregtampa: which ubuntu/lxc version are you using? @mpp4manu: yes please, share your workaroud :)