ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

roscore is not working and cant install pip or rospkg ??

asked 2014-09-22 03:53:18 -0600

RSA_kustar gravatar image

updated 2014-10-09 04:05:43 -0600

I has frute then I remove it and I downloaded hydro. I followed the steps until I reached to this step:

sudo rosdep init

I got the following error:

Traceback (most recent call last):
 File "/usr/bin/rosdep", line 3, in <module>
from rosdep2.main import rosdep_main
File "/usr/lib/pymodules/python2.7/rosdep2/__init__.py", line 40, in <module>
from .installers import InstallerContext, Installer, \
File "/usr/lib/pymodules/python2.7/rosdep2/installers.py", line 35, in <module>
from rospkg.os_detect import OsDetect
ImportError: No module named rospkg.os_detect

Then I looked for a solution and I did the following:

pip install -U rospkg

I got the following error :

Downloading/unpacking rospkg
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement rospkg
No distributions at all found for rospkg
Storing complete log in /home/asctec/.pip/pip.log
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.0', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 116, in main
return command.main(initial_args, args[1:], options)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 147, in main
 log_fp = open_logfile(log_fn, 'w')
 File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 176, in open_logfile
 log_fp = open(filename, mode)
IOError: [Errno 13] Permission denied: '/home/asctec/.pip/pip.log'

Also I tried:

sudo pip install --upgrade pip

and I got the following error:

Downloading/unpacking pip
Downloading pip-1.5.6.tar.gz (938Kb): 40Kb downloaded  
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
 File "/usr/lib/python2.7/dist-packages/pip/req.py", line 955, in prepare_files
 self.unpack_url(url, location, self.is_download)
 File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1072, in unpack_url
 return unpack_http_url(link, location, self.download_cache, only_download)
 File "/usr/lib/python2.7/dist-packages/pip/download.py", line 441, in unpack_http_url
 download_hash = _download_url(resp, link, temp_location)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 366, in _download_url
 chunk = resp.read(4096)
 File "/usr/lib/python2.7/socket.py", line 380, in read
 data = self._sock.recv(left)
 File "/usr/lib/python2.7/httplib.py", line 561, in read
 s = self.fp.read(amt)
 File "/usr/lib/python2.7/socket.py", line 380, in read
 data = self._sock.recv(left)
 File "/usr/lib/python2.7/ssl.py", line 241, in recv
 return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 160, in read
  return self._sslobj.read(len)
  SSLError: The read operation timed out
 Storing complete log in /home/asctec/.pip/pip.log
 Traceback (most recent call last):
 File "/usr/bin/pip", line 9, in <module>
  load_entry_point('pip==1.0', 'console_scripts', 'pip')()
 File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line ...
(more)
edit retag flag offensive close merge delete

Comments

try sudo easy_install rospkg

bvbdort gravatar image bvbdort  ( 2014-09-22 04:25:23 -0600 )edit

what version of Ubuntu are you using?

Vova Niu gravatar image Vova Niu  ( 2014-09-22 08:14:22 -0600 )edit

@Vova Niu ubuntu 12.04

RSA_kustar gravatar image RSA_kustar  ( 2014-10-09 03:58:36 -0600 )edit

@bvbdort I solve it using the command of re-install. I will post the answer

RSA_kustar gravatar image RSA_kustar  ( 2014-10-09 03:59:31 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-10-09 04:06:20 -0600

RSA_kustar gravatar image

I solved this problem using the following command

sudo apt-get re-install python-rosdep

edit flag offensive delete link more

Comments

In my case it did not work, but I used:

sudo apt-get --reinstall install python-rosdep
fish24 gravatar image fish24  ( 2019-08-01 09:03:42 -0600 )edit
1

answered 2014-10-09 11:40:23 -0600

Dirk Thomas gravatar image

Do not use pip to install Python package on Ubuntu. Instead remove these packages installed via pip and install them using Debian packages.

Please use the search to find numerous similar questions regarding the same topic.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-09-22 03:53:18 -0600

Seen: 2,249 times

Last updated: Oct 09 '14