1

I'm not able to connect remotely using atom's new nuclide package. I ran npm install -g nuclide-server and followed the the trouble shooting instructions from the nuclide docs http://nuclide.io/docs/remote/ but I keep getting errors. When I run nuclide-start-server on my server, I end up this error:

Traceback (most recent call last):
 File "scripts/nuclide_server_manager.py", line 25, in <module>
    from nuclide_server import LOG_FILE
  File "/usr/local/lib/node_modules/nuclide-server/scripts/nuclide_server.py", line 18, in <module>
import utils File "/usr/local/lib/node_modules/nuclide server/scripts/utils.py", line 16, in <module> from pkg_resources import resource_string

In atom when I try to connect, I get this error which is pretty much summarized above:

Bad stdout from remote server: SYNSYN SYNSYN

stderr:bash: cannot set terminal process group (-1): Invalid argument bash:no job control in this shell Traceback (most recent call last): 
File "scripts/nuclide_server_manager.py", line 25, in from nuclide_server import LOG_FILE File "/usr/local/lib/node_modules/nuclide-server/scripts/nuclide_server.py", line 18, in import utils 
File "/usr/local/lib/node_modules/nuclide-server/scripts/utils.py", line 16, in from pkg_resources import resource_string ImportError: No module named pkg_resources

Any help is greatly appreciated. Thanks.

4

1 回答 1

1

从这篇文章中找到了这个问题的答案 -->没有名为 pkg_resources 的模块

我今天在尝试使用 pip 时遇到了相同的 ImportError。不知何故,我的 Python 环境中的 setuptools 包已被删除。

要解决此问题,请运行 setuptools 的安装脚本:

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

如果您有任何版本的分发,或任何低于 0.6 的安装工具,您必须先卸载它。*

有关详细信息,请参阅安装说明。

仅供参考:您可能需要在管道之后放置一个 sudo 。我做到了。或者将整个命令放在引号中,以 sudo 开头。

于 2015-07-16T16:16:43.753 回答