Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ls: unrecognized option '--fancy' #88

Open
nislim opened this issue Jul 28, 2015 · 4 comments
Open

ls: unrecognized option '--fancy' #88

nislim opened this issue Jul 28, 2015 · 4 comments

Comments

@nislim
Copy link

nislim commented Jul 28, 2015

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 <[email protected]>
Date:   Fri Jul 17 15:07:30 2015 +0200

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

    See #86
@mpp4manu
Copy link

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
Copy link

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
Copy link

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

@claudyus
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants