错误30在Heroku上使用Pip安装Python库(Error 30 installing Python library with Pip on Heroku)

编程入门 行业动态 更新时间:2024-10-24 19:13:54
错误30在Heroku上使用Pip安装Python库(Error 30 installing Python library with Pip on Heroku)

我正在尝试在Heroku上安装Echo Nest Remix Python库,但它似乎最终会尝试复制一些数据,即使Heroku是只读的。

这是推送到Heroku大师时发生的事情。

错误:

remote: running install_data remote: copying external/youtube-dl/youtube-dl -> /usr/local/bin remote: error: [Errno 30] Read-only file system: '/usr/local/bin/youtube-dl' remote: remote: ---------------------------------------- remote: Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-sEL0Eg-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-6TegpX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-sEL0Eg-build remote: remote: ! Push rejected, failed to compile Python app

我的requirements.txt看起来像:

numpy==1.6.2 http://static.echonest.com/remix/packages/remix-2.2.1.tar.gz

我的runtime.txt看起来像:

python-2.7.10

有没有办法超越这个? 有没有人成功在Heroku上安装Remix?

谢谢你的帮助。

I'm trying to install The Echo Nest Remix Python Library on Heroku, but it seems that at the end it tries to copy some data even though Heroku is read-only.

Here's what happens when pushing to Heroku master.

Error:

remote: running install_data remote: copying external/youtube-dl/youtube-dl -> /usr/local/bin remote: error: [Errno 30] Read-only file system: '/usr/local/bin/youtube-dl' remote: remote: ---------------------------------------- remote: Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-sEL0Eg-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-6TegpX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-sEL0Eg-build remote: remote: ! Push rejected, failed to compile Python app

My requirements.txt looks like:

numpy==1.6.2 http://static.echonest.com/remix/packages/remix-2.2.1.tar.gz

My runtime.txt looks like:

python-2.7.10

Is there any way to get past this? Has anyone successfully installed Remix on Heroku?

Thanks for any help.

最满意答案

问题是Echo Nest Remix包将其包中的几个文件夹复制到Heroku的项目目录中,这是非法的。

我不得不分叉Remix存储库,删除被复制的目录,在代码中更改任何提及它们,并使用这个新的fork来安装Remix。

对于任何遇到相同问题且想要使用此分支的人,请记住,我必须删除存储库中对youtube-dl的任何提及。 这不是问题,因为我的应用程序不需要youtube-dl,但你的应用程序可能。

您可以在https://github.com/Mdelvalle/remix找到分叉的Remix(2.2.1)存储库。

The problem was that the Echo Nest Remix package copied a couple of folders from its package onto Heroku's project directory and this is illegal.

I had to fork the Remix repository, delete the directories that were getting copied over, change any mention of them in the code, and use this new fork to install Remix.

For anybody that is having the same problem and wants to use this fork, keep in mind that I had to remove any mention of youtube-dl in the repository. This was not an issue because my application does not need youtube-dl, but yours might.

You can find the forked Remix (2.2.1) repository at https://github.com/Mdelvalle/remix.

更多推荐

本文发布于:2023-08-06 16:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1453861.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Heroku   Pip   library   installing

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!