简体   繁体   English

进程以退出代码 134 结束(被信号 6 中断:SIGABRT)

[英]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 .它还列出了使用brewpip3升级库的步骤。

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请注意

  1. My version of 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.与我在此处使用的版本相比,您的版本很可能也会晚一些。
  2. The Homebrew /Cellar/ directory structure was slightly different for me versus when Bryant wrote his instructions. Homebrew /Cellar/目录结构对我来说与 Bryant 编写指令时略有不同。 It may have changed again when you read this.当您阅读本文时,它可能又发生了变化。
  3. I chose to link the libraries directly rather than linking to copies of the libraries, as Bryant did.我选择直接链接库,而不是像 Bryant 那样链接到库的副本。
  4. My Homebrew /Cellar/ and /usr/local/lib folders actually needed a fair amount of user ownership changes.我的 Homebrew /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.

相关问题 Pycharm - 进程已完成,退出代码为 134(被信号 6:SIGABRT 中断)错误 - Pycharm - Process finished with exit code 134 (interrupted by signal 6: SIGABRT) error 进程以 Python OpenCV 中的退出代码 134(被信号 6:SIGABRT 中断)结束 - Process finished with exit code 134 (interrupted by signal 6: SIGABRT) in python OpenCV pycharm 随机发生错误:进程以退出代码 134 结束(被信号 6 中断:SIGABRT) - pycharm error happening at random time: Process finished with exit code 134 (interrupted by signal 6: SIGABRT) Python - 进程以退出代码 134 完成(被信号 6:SIGABRT 中断) - 海龟模块 - Python - Process finished with exit code 134 (interrupted by signal 6: SIGABRT) - turtle module 使用StringSubsequenceKernel的退出代码139(信号11:SIGSEGV中断)完成的过程 - Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) with StringSubsequenceKernel QNetworkAccessManager进程以退出代码139完成(被信号11:SIGSEGV中断) - QNetworkAccessManager Process Finished With Exit Code 139 (Interrupted by signal 11: SIGSEGV) 进程以退出代码 139 结束(被信号 11 中断:SIGSEGV) - Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) Python:进程已完成,退出代码为 137(被信号 9 中断:SIGKILL) - Python: Process finished with exit code 137 (interrupted by signal 9: SIGKILL) Pycharm - 运行 Open CV 代码直接进入“进程完成,退出代码 139(被信号 11 中断:SIGSEGV)” - Pycharm - Running Open CV Code goes straight to “Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)” OpenCV 和 Flask:进程已完成,退出代码为 139(被信号 11 中断:SIGSEGV) - OpenCV & Flask: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM