[英]Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
I am working on node2vec.我正在研究 node2vec。 When I am using small dataset the code works well.
当我使用小数据集时,代码运行良好。 But as soon as I try to run the same code on large dataset, the code crashes.
但是一旦我尝试在大型数据集上运行相同的代码,代码就会崩溃。
Error: Process finished with exit code 134 (interrupted by signal 6: SIGABRT).错误:进程已完成,退出代码为 134(被信号 6:SIGABRT 中断)。
The line which is giving error is给出错误的行是
model = Word2Vec(walks, size=args.dimensions, window=args.window_size, min_count=0, sg=1, workers=args.workers,
iter=args.iter)
I am using pycharm and python 3.5.我正在使用 pycharm 和 python 3.5。
Any idea what is happening?知道发生了什么吗? I could not found any post which could solve my problem.
我找不到任何可以解决我的问题的帖子。
You are probably running out of memory.您可能内存不足。 Watch a readout of the Python process size during your attempts, and optimize your
walks
iterable to not compose a large in-memory list.观看Python进程大小的读出期间,你的企图,并优化您的
walks
迭代不构成大的内存列表。
If you're running MacOS Catalina, this might help you.如果您正在运行 MacOS Catalina,这可能会对您有所帮助。 For me, I started seeing this error right after the upgrade to Catalina.
对我而言,我在升级到 Catalina 后立即开始看到此错误。
Execute the following commands one by one on Terminal, and you should be good:在Terminal上一一执行以下命令,应该就OK了:
brew update && brew upgrade && brew install openssl cd /usr/local/Cellar/openssl/1.0.2t/lib sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/local/lib/ cd /usr/local/lib mv libssl.dylib libssl_bak.dylib mv libcrypto.dylib libcrypto_bak.dylib sudo ln -s libssl.1.0.0.dylib libssl.dylib sudo ln -s libcrypto.1.0.0.dylib libcrypto.dylib
Found this in one of the Apple forums (can't seem to recollect exactly where, darn!)在其中一个 Apple 论坛中找到了这个(似乎无法准确记住在哪里,该死!)
Also, some blessed soul has also written a batch for this.而且,有福灵也为此写了一批。 Can be found here: https://gist.github.com/llbbl/c54f44d028d014514d5d837f64e60bac
可以在这里找到: https : //gist.github.com/llbbl/c54f44d028d014514d5d837f64e60bac
Cheers!干杯!
I have the same issue, and finally, I figured it out.我有同样的问题,最后,我想通了。 The reason for me is my Keras
version 2.2.0
is too high.我的原因是我的Keras
version 2.2.0
太高了。 After, I change the version to 2.0.1
, it worked.之后,我将版本更改为
2.0.1
,它起作用了。 Hope this version issue can help you!希望这个版本问题可以帮到你!
For me the problem was with the Snowflake connector Python library running on Mac OS Catalina.对我来说,问题在于在 Mac OS Catalina 上运行的 Snowflake 连接器 Python 库。
I found the solution from user VikR in a link given in answer 59538581 that has been deleted from this page.我在回答 59538581 给出的链接中找到了用户VikR的解决方案,该链接已从此页面中删除。
The link is https://dbaontap.com/2019/11/11/python-abort-trap-6-fix-after-catalina-update , titled "Python Abort trap: 6 fix after Catalina update" by Danny Bryant.该链接是https://dbantap.com/2019/11/11/python-abort-trap-6-fix-after-catalina-update ,由 Danny Bryant 题为“Python 中止陷阱:Catalina 更新后的 6 个修复”。 That link explains that the SSL libraries need to be placed back into your Mac's operating system path and gives the steps to do it.
该链接解释了需要将 SSL 库放回 Mac 的操作系统路径并提供执行步骤。 It also lists the steps to upgrade your libraries using
brew
and pip3
.它还列出了使用
brew
和pip3
升级库的步骤。
Here are the steps that I followed to get my Python script running again.以下是我为让 Python 脚本再次运行而遵循的步骤。
brew update
brew upgrade
cd /usr/local/lib
ln -s /usr/local/Cellar/openssl\@1.1/1.1.1j/lib/libssl.1.1.dylib libssl.dylib
ln -s /usr/local/Cellar/openssl\@1.1/1.1.1j/lib/libcrypto.1.1.dylib libcrypto.dylib
pip3 install --upgrade snowflake-connector-python
For me I did not have to install openssl
as I had already installed it.对我来说,我不必安装
openssl
因为我已经安装了它。 Please read Bryant's page for more detail.请阅读布莱恩特的页面了解更多详情。
Note that请注意
openssl
is of course later than Bryant's instructions.openssl
版本当然晚于 Bryant 的指示。 Your version will most likely be later, too, compared to what I used here./Cellar/
directory structure was slightly different for me versus when Bryant wrote his instructions. /Cellar/
目录结构对我来说与 Bryant 编写指令时略有不同。 It may have changed again when you read this./Cellar/
and /usr/local/lib
folders actually needed a fair amount of user ownership changes./Cellar/
和/usr/local/lib
文件夹实际上需要大量的用户所有权更改。 Since that wasn't related to the original question, I omitted those steps.import os导入操作系统
os.environ['KMP_DUPLICATE_LIB_OK'] = 'True' os.environ['KMP_DUPLICATE_LIB_OK'] = '真'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.