Ubuntu: pip not working with python3.4
Question Trying to get pip working on my Ubuntu pc. pip seems to be working for python2.7, but not for others.
Here's the problem:
$ pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg /pkg_resources.py", line 357, in load_entry_point
def get_entry_info(dist, group, name):
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2394, in load_entry_point
break
File "/usr/local/lib/python3.4/dist-packages/setuptools-1.1.5-py3.4.egg/pkg_resources.py", line 2108, in load
name = some.module:some.attr [extra1,extra2]
ImportError: No module named 'pip'
$ which pip /usr/local/bin/pip…
Read more ⟶Keyboard issues with Android Studio on Ubuntu
Question While using Android Studio on Ubuntu there are scenarios where the IDE will stop responding to keyboard input or start inputting random characters?
How to fix this? Or possible workarounds. Answer This is a known issue with:
The bug seems to be triggered by some missing synchronization between
IBus (the server) and Xlib + AWT (the client JVM), exposed by a
combination of a quick succession of key presses and the client’s
slower event handling.…
Read more ⟶`gcloud compute copy-files`: permission denied when copying files
Question I'm having a hard time copying files over to my Google Compute Engine. I am using an Ubuntu server on Google Compute Engine.
I'm doing this from my OS X terminal and I am already authorized using gcloud.
local:$ gcloud compute copy-files /Users/Bryan/Documents/Websites/gce/index.php example-instance:/var/www/html --zone us-central1-a
Warning: Permanently added '<IP>' (RSA) to the list of known hosts.
scp: /var/www/html/index.php: Permission denied
ERROR: (gcloud.compute.copy-files) [/usr/bin/scp] exited with return code [1].
Answer insert root@ before the instance name:…
Read more ⟶Start JBoss 7 as a service on Linux
Question Previous versions of JBoss included a scripts (like jboss_init_redhat.sh) that could be copied to /etc/init.d in order to add it as a service - so it would start on boot up. I can't seem to find any similar scripts in JBoss 7. Has anyone already done something like this?
P.S.
I'm trying to achieve this in Ubuntu 10.04
Answer After spending a couple of hours of snooping around I ended up creating /etc/init.…
Read more ⟶Install Jenkins in Ubuntu 18.04 LTS failed (Failed to start LSB: Start Jenkins at boot time.)
Question [Symptoms]
Install Jenkins by using official steps, but failed with error message Failed to start LSB: Start Jenkins at boot time.
Reproduce Steps
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo apt-add-repository "deb https://pkg.jenkins.io/debian-stable binary/"
sudo apt install jenkins
Console log
gaspar@jenkins:~$ sudo apt install jenkins
...
Setting up default-jre-headless (2:1.9-62ubuntu2) ...
Setting up jenkins (2.107.2) ...
Job for jenkins.service failed because the control process exited with error code.…
Read more ⟶How to set working directory with ProcessBuilder
Question I am trying start a process in my home directory in ubuntu. I keep getting a permission denied exception and I have no idea why. Here is the code:
Process p = null;
ProcessBuilder pb = new ProcessBuilder("/home");
p = pb.start();
Here is the exception:
Exception in thread "main" java.io.IOException: Cannot run program "/home": java.io.IOException: error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at tester.Main.main(Main.java:30) Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied at java.…
Read more ⟶Linux (Ubuntu): safely remove a USB flash disk via the command line [closed]
Question Closed. This question is off-topic. It is not currently accepting answers.
</div>
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
It would just be cool if your shell script helps you to safely remove your flash disk after finishing its job. The solution is expected to meet the following needs:
Suppose the flash disk is mounted as /media/A together with many other flash disks and the code can selectively just remove /media/A without interfering other disks.…
Read more ⟶