Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/346.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 启动uWSGI模块化构建时出错:没有此类文件或目录-/etc/uWSGI/ext/uWSGI/uWSGI.ruby_Python_Ruby_Debian_Uwsgi - Fatal编程技术网

Python 启动uWSGI模块化构建时出错:没有此类文件或目录-/etc/uWSGI/ext/uWSGI/uWSGI.ruby

Python 启动uWSGI模块化构建时出错:没有此类文件或目录-/etc/uWSGI/ext/uWSGI/uWSGI.ruby,python,ruby,debian,uwsgi,Python,Ruby,Debian,Uwsgi,我已经安装了uWSGI,我正在尝试以帝王模式启动它。我已经安装了所有必要的依赖项和python插件。错误是正确的,该位置没有该名称的文件。错误如下 /usr/bin/uwsgi:4:in `exec': No such file or directory - /etc/uwsgi/ext/uwsgi/uwsgi.ruby (Errno::ENOENT) from /usr/bin/uwsgi:4 找到了答案。我不确定我做了什么导致了这个问题,但希望这对将来的人有所帮助 我可以在可执行文

我已经安装了uWSGI,我正在尝试以帝王模式启动它。我已经安装了所有必要的依赖项和python插件。错误是正确的,该位置没有该名称的文件。错误如下

/usr/bin/uwsgi:4:in `exec': No such file or directory - /etc/uwsgi/ext/uwsgi/uwsgi.ruby (Errno::ENOENT)
    from /usr/bin/uwsgi:4

找到了答案。我不确定我做了什么导致了这个问题,但希望这对将来的人有所帮助

我可以在可执行文件中看到它正在此处查找文件:

cmd = File.expand_path "/etc/uwsgi/ext/uwsgi/uwsgi.ruby" //(edited to show the real path)
但这显然不存在。这可能与我第一次配置uWSGI时没有安装ruby有关。因此,我通过以下方法解决了以下问题:

  • 安装ruby

  • 正在运行ruby extconf.rb
    extconf.rb
    是它在目录中搜索的唯一文件(
    /etc/uwsgi/ext/uwsgi/


就这样。不知道为什么会发生这种情况,但这就是解决问题的方法。如果有人能提供有关原因的任何信息,那就太好了。

我已经在mac(10.13.6)上安装了uwsgi,在尝试从中启动MyApp示例时出现此错误。我们拭目以待。