Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Strange behavior of layman and other a pep8:error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Demonking
n00b
n00b


Joined: 12 Mar 2007
Posts: 41

PostPosted: Sun Aug 10, 2014 9:13 am    Post subject: [Solved] Strange behavior of layman and other a pep8:error Reply with quote

Hello,

i have google everywhere but haven't found something useful for this kind of problem.

I wanted to add an Overlay and emerge some applications.

But after i typed following:

Code:

# layman -L
Usage: pep8 [options] input ...


I have looking suprised because of this warning.

Also when i wanted to change my java-vm i also get the same warning:

Code:

$ java-config --list-available-vms                                                                                                                                                                                                                       
Usage: pep8 [options] input ...

pep8: error: no such option: --list-available-vms


For Layman i have add following to my make.conf:
Code:

source /var/lib/layman/make.conf


Content of layman/make.conf :

Code:

$ cat /var/lib/layman/make.conf                                                                                                                                                                                                                           
PORTDIR_OVERLAY="
/var/lib/layman/gnome15
$PORTDIR_OVERLAY
"


When neccessary:

Code:

# pep8 --version
1.4.6


Code:

# eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2
  [3]   python3.3
  [4]   python3.4


Have someone an idea why this happens?

Greetz

Demonking

Edit:

python-updater output:

Code:

 Adding to list: dev-util/android-ndk:0
 * emerge -Dv1 --keep-going dev-util/android-ndk:0



Edit2:

I have rebuild layman-2.0.0-r3 and uploaded the log http://pastebin.com/kvtWfzPW.

It even get stranger:

3 Files looks similar pip,pep8 and layman :

layman:

Code:

$ cat /usr/bin/layman

#!/usr/bin/python3.3
# EASY-INSTALL-ENTRY-SCRIPT: 'pep8==1.5.7','console_scripts','pep8'
__requires__ = 'pep8==1.5.7'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('pep8==1.5.7', 'console_scripts', 'pep8')()
    )


pep8:

Code:


$ cat /usr/bin/pep8

#!/usr/bin/python3.3
# EASY-INSTALL-ENTRY-SCRIPT: 'pep8==1.5.7','console_scripts','pep8'
__requires__ = 'pep8==1.5.7'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('pep8==1.5.7', 'console_scripts', 'pep8')()
    )



After i have seen this files of code, i was a bit afraid.
Why python3.3?
Why pip1.5.7 instead pip1.4.6?

And why these three files looks the same?

I have compared this files with the one on my notebook, and see, they are different !
_________________
I finally understand why Java's security model is so torturous:
It's to protect everyone else against people who write code like this.

The Answer to Life, the Universe, and Everything = 42


Last edited by Demonking on Sun Aug 10, 2014 3:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Demonking
n00b
n00b


Joined: 12 Mar 2007
Posts: 41

PostPosted: Sun Aug 10, 2014 3:26 pm    Post subject: Reply with quote

I have fixed this one know :)

I don't know why, but the symbolic link /usr/bin/{layman,pip,pep8} all referenced to /usr/lib/python-exec/python-exec2.
This file had the same content like the end of my previous post.

Also i have looked for an python-exec portage.


Code:
emerge -av dev-lang/python-exec


Rebuild the package and rebuild layman,pip,pep8 and mirrorselect.
And see it works now without any problems.

Why the file contains such a strange content i don't know, i haven't
even know that this files exists till today.

Greetz

Demonking
_________________
I finally understand why Java's security model is so torturous:
It's to protect everyone else against people who write code like this.

The Answer to Life, the Universe, and Everything = 42
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum