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

Error installing #3

Open
WaaromZoMoeilijk opened this issue Aug 11, 2016 · 6 comments
Open

Error installing #3

WaaromZoMoeilijk opened this issue Aug 11, 2016 · 6 comments

Comments

@WaaromZoMoeilijk
Copy link

Hey cool app, when i try to install it i get an error:

wzm@wzm-pc:~/github/addalias/src$ sudo python addalias.py --install
[sudo] wachtwoord voor wzm: 
Traceback (most recent call last):
  File "addalias.py", line 6, in <module>
    from PyQt4 import QtGui, QtCore
ImportError: No module named PyQt4

What to do?

@isamert
Copy link
Owner

isamert commented Aug 11, 2016

You need to install pyqt4 in order to run this app. Find appropriate package for your distro and install it. It should be named like python-qt4 or something.

@WaaromZoMoeilijk
Copy link
Author

WaaromZoMoeilijk commented Aug 11, 2016

I like this, reaction in 7 minutes 👍 Installing it now! Closing, if anything fails I'll reopen.
Thank you for this app!

Btw how do I run the GUI?

@WaaromZoMoeilijk
Copy link
Author

addalias -add "sudo apt-get install" "install"

command addalias not found. Install worked got these messages:

Success!
    now you can use 'addalias -parameters'
    before using you have to close this terminal window and reopen
    for example
        addalias -add "my-alias" "my-command"

I closed the terminal and opened a new one.

@isamert
Copy link
Owner

isamert commented Aug 11, 2016

You can run gui with: addalias -gui command.
The usage is the exact opposite of what you typed. Instead of addalias -add "sudo apt-get install" "install", you need to write addalias -add "install" "sudo apt-get install".

Can you post this command output cat ~/.bashrc | grep alias? The app adds itself to alias list, so command addalias not found means something went wrong while adding.

@WaaromZoMoeilijk
Copy link
Author

# enable color support of ls and also add handy aliases
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'
    #alias grep='grep --color=auto'
    #alias fgrep='fgrep --color=auto'
    #alias egrep='egrep --color=auto'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

alias 3g='./sakis3g --interactive'
alias trans='ssh -p 8822 waaromzomoeilijk@37.97.189.178'
alias thuis='openvpn --auth-nocache --config /home/wzm/Bureaublad/User1.ovpn'
# ~/.bash_aliases, instead of adding them here directly.
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliase

@isamert
Copy link
Owner

isamert commented Aug 12, 2016

I'm sure you don't like the reaction in 23 hours thing. Sorry that I'm late.

It seems like the app couldn't add itself to the alias list. Do you have write permissions to ~./bashrc file? Usually you should have by default, but you could have change it.

Can you try python addalias.py -add "install" "sudo apt-get install" in "src" directory?

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

2 participants