在AWS beantalk上删除uuid python软件包 [英] Deleting uuid python package on aws beanstalk

查看:88
本文介绍了在AWS beantalk上删除uuid python软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是此处提出的问题的后续帖子/问题,位于这种情况可能会对其他人派上用场.

Here is a follow-up post /question to the issue raised here, just in case that might come in handy for someone else.

自从第一篇文章开始,我一直在尝试并尝试部署结构稍有不同的其他应用程序.

Since the first post I have kept experimenting and tried to deploy other apps that had a slightly different structure.

最终,我成功地在Beanstalk上成功部署,直到我错误地将带有pip Frozen> requirements.txt的uuid软件包添加到我的requirements.txt中,并进行了部署.

Eventually, I managed to deploy successfully on Beanstalk until I mistakenly added the uuid package with a pip freeze > requirements.txt to my requirements.txt and deployed it.

然后再次完全相同的错误.回滚并从.txt中删除uuid变得毫无用处,因为一旦venv被破坏",似乎就无法使环境恢复正常.

And then, exact same error(s) again. Rolling-back and removing the uuid from the .txt then becomes useless as it seems that once the venv is "corrupted" there is no way to get the environment back on track.

我尝试了几种命令,例如此处和下面列出的删除包的方法,但是它不起作用.与venv的任何互动都会返回原始帖子中描述的错误.

I tried several commands such as the ones described here and the ones listed below to delete the package but it didn't work. Any interaction with the venv returns the error described in the original post.

已测试的命令:

pip3 uninstall uuid==1.30
pip3.4 uninstall uuid==1.30
pip3 uninstall uuid
pip3.4 uninstall uuid

pip3 uninstall uuid==1.30
pip3.4 uninstall uuid==1.30
pip3 uninstall uuid
pip3.4 uninstall uuid

我发现前进的唯一方法是创造一个新的环境并重新部署.真的不能令人满意...

The only way I found to move forward was to spin up a new environment and re-deploy. Which is not really satisfactory...

在这种情况下,有人会知道如何删除uuid和/或解决问题吗?

Would anyone know how to remove the uuid in such case and / or fix the issue while keeping the same environment?

谢谢

Stf

推荐答案

或者使用容器命令部署此修订,也可以将"eb ssh"放入您的(一个还是唯一一个)实例,并手动手动发出rm命令.

Alternatively to deploying the fix using a container command, you can "eb ssh" into your (one and only?) instance and issue the rm command yourself manually.

#eb ssh
[ec2-user@ip-172-xx-xx-xx ~]$ rm /opt/python/run/venv/local/lib/python3.6/site-packages/uuid.py

然后,您可以从requirements.txt中手动删除该条目,然后重新部署.

Then you can manually remove the entry from your requirements.txt and re-deploy.

这篇关于在AWS beantalk上删除uuid python软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆