2013-06-22 90 views
0

更新6/25/2013)當我嘗試使用pip來安裝不同的包時,看到相同的錯誤,表示該包可能沒有任何內容解決這個問題。錯誤[Errno 89]執行命令時沒有執行函數python setup.py egg_info


QNX我一旦運行pip看到下面的錯誤。

# pip install -U catkin_pkg 
Downloading/unpacking catkin-pkg 
    Running setup.py egg_info for package catkin-pkg 

Requirement already up-to-date: argparse in /usr/pkg/lib/python2.7/site-packages (from catkin-pkg) 
Requirement already up-to-date: docutils in /usr/pkg/lib/python2.7/site-packages (from catkin-pkg) 
Requirement already up-to-date: python-dateutil in /usr/pkg/lib/python2.7/site-packages (from catkin-pkg) 
Requirement already up-to-date: six in /usr/pkg/lib/python2.7/site-packages (from python-dateutil->catkin-pkg) 
Installing collected packages: catkin-pkg 
    Running setup.py install for catkin-pkg 
    Error [Errno 89] Function not implemented while executing command /usr/qnx650/host/qnx6/x86/usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-n130s/catkin-pkg/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-XhRdBe-record/install-record.txt --single-version-externally-managed 
Exception: 
Traceback (most recent call last): 
    File "/usr/pkg/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/basecommand.py", line 139, in main 
    status = self.run(options, args) 
    File "/usr/pkg/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/install.py", line 271, in run 
    requirement_set.install(install_options, global_options, root=options.root_path) 
    File "/usr/pkg/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/req.py", line 1185, in install 
    requirement.install(install_options, global_options, *args, **kwargs) 
    File "/usr/pkg/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/req.py", line 592, in install 
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) 
    File "/usr/pkg/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/util.py", line 627, in call_subprocess 
    cwd=cwd, env=env) 
    File "/usr/pkg/lib/python2.7/subprocess.py", line 711, in __init__ 
    errread, errwrite) 
    File "/usr/pkg/lib/python2.7/subprocess.py", line 1205, in _execute_child 
    self.pid = os.fork() 
OSError: [Errno 89] Function not implemented 
Storing complete log in /root/.pip/pip.log 

第一次我跑時被依賴組分如​​,docutilspython-dateutilsix沒有安裝該命令,相同的錯誤發生,但在其中,這些部件需要被檢查的部分。現在我已經逐一安裝了它們,它似乎發生在我正在安裝的pkg上(即catkin_pkg)。

在python的控制檯上,os.fork(),我假設原因的來源,行爲有所不同。因此我甚至不確定錯誤是否發生在os.fork()

# python 
Python 2.7.4 (default, Jun 21 2013, 22:33:48) 
[GCC 4.4.2] on qnx6 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import os 
>>> os.fork() 
18804790 
>>> 0 
sem_wait: Invalid argument 

如何避免此錯誤?謝謝!

使用QNX 6.5.0 SDP SP1,pip版本是1.3(its source on github),也是source of catkin_pkg

回答

0

我以某種方式想通了。運行pip-U選項獲取安裝的軟件包(安裝日誌位於底部以供參考)。

...但是爲什麼......?的似乎的pip幫助消息並沒有道理給我:安裝

$ pip install --help 
: 
Install Options: 
: 
    -U, --upgrade Upgrade all packages to the newest available version. This process is recursive regardless of whether a dependency is already satisfied. 

登錄由pip

$ pip install catkin_pkg  
Downloading/unpacking catkin-pkg 
    Running setup.py egg_info for package catkin-pkg 

Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/pkg/lib/python2.7/site-packages (from catkin-pkg) 
Requirement already satisfied (use --upgrade to upgrade): docutils in /usr/pkg/lib/python2.7/site-packages (from catkin-pkg) 
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/pkg/lib/python2.7/site-packages (from catkin-pkg) 
Requirement already satisfied (use --upgrade to upgrade): six in /usr/pkg/lib/python2.7/site-packages (from python-dateutil->catkin-pkg) 
Installing collected packages: catkin-pkg 
    Running setup.py install for catkin-pkg 
    changing mode of build/scripts-2.7/catkin_create_pkg from 664 to 775 
    changing mode of build/scripts-2.7/catkin_generate_changelog from 664 to 775 
    changing mode of build/scripts-2.7/catkin_tag_changelog from 664 to 775 
    changing mode of build/scripts-2.7/catkin_test_changelog from 664 to 775 

    changing mode of /usr/pkg/bin/catkin_create_pkg to 775 
    changing mode of /usr/pkg/bin/catkin_generate_changelog to 775 
    changing mode of /usr/pkg/bin/catkin_tag_changelog to 775 
    changing mode of /usr/pkg/bin/catkin_test_changelog to 775 
Successfully installed catkin-pkg 
Cleaning up...