tensorflow资源耗净 Resource exhausted OOM when allocating tensor with shape

eventlet在ubuntu上出现OSError protocol not found

妙音 posted @ 2020年6月21日 09:24 in tensorflow with tags eventlet python , 377 阅读

描述

 
tensorflow的nvidia docker镜像使用ubuntu16.04, ubuntu是精简之后的,有些包可能没有。在上面运行eventlet会出现下面问题
 
 

错误内容

 
Traceback (most recent call last):
  File "/app/defect-client/defect_client/cmd/wafer-worker.py", line 14, in <module>
    import eventlet
  File "/usr/local/lib/python3.6/dist-packages/eventlet/__init__.py", line 10, in <module>
    from eventlet import convenience
  File "/usr/local/lib/python3.6/dist-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/local/lib/python3.6/dist-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/usr/local/lib/python3.6/dist-packages/eventlet/support/greendns.py", line 69, in <module>
    setattr(dns.rdtypes.IN, pkg, import_patched('dns.rdtypes.IN.' + pkg))
  File "/usr/local/lib/python3.6/dist-packages/eventlet/support/greendns.py", line 59, in import_patched
    return patcher.import_patched(module_name, **modules)
  File "/usr/local/lib/python3.6/dist-packages/eventlet/patcher.py", line 126, in import_patched
    *additional_modules + tuple(kw_additional_modules.items()))
  File "/usr/local/lib/python3.6/dist-packages/eventlet/patcher.py", line 100, in inject
    module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
  File "/usr/local/lib/python3.6/dist-packages/dns/rdtypes/IN/WKS.py", line 25, in <module>
    _proto_tcp = socket.getprotobyname('tcp')
OSError: protocol not found
 

解决办法

 
apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall netbase
 
Avatar_small
Digital ALi 说:
2020年10月20日 19:43

Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. 123 movies

Avatar_small
Digital ALi 说:
2020年10月22日 14:53

I know this is one of the most meaningful information for me. And I'm animated reading your article. But should remark on some general things, the website style is perfect; the articles are great. Thanks for the ton of tangible and attainable help. portable hepa filter for hospitals

Avatar_small
Digital ALi 说:
2020年10月24日 17:27 My name is Fred Dex, MS. I am a Master Sommelier (highest achievement in wine) wine tasting expert, entertainer, and educator. I've opened over 30 restaurants and have trained 1000's of wine lovers and wine students to learn to taste wine like a master. If you want to have fun and learn from the best wine taster in the business, I'm your guy! Virtual Wine Tasting
Avatar_small
Digital ALi 说:
2020年10月24日 21:32

It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. betpas

Avatar_small
Digital ALi 说:
2020年10月25日 17:10

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. best testosterone booster at walmart

Avatar_small
Digital ALi 说:
2020年10月25日 20:12

You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. restbet

Avatar_small
2356-tetrachloro-4-b 说:
2020年10月26日 20:11

"A.H-NMR:Comply with the structure£¬ B.LC-MS:Comply with the structure£¬ C.The IR spectrum of sample should be identical with that of reference standard£¬ D.HPLC-ESI-MS£¬ The retention time of the major peak in the chromatogram of the Assay preparation corresponds to that in the chromatogram of the Standard preparation, as obtained in the Assay." 2356-tetrachloro-4-benzoquinone£¬

Avatar_small
Digital ALi 说:
2020年10月28日 15:58

I know this is one of the most meaningful information for me. And I'm animated reading your article. But should remark on some general things, the website style is perfect; the articles are great. Thanks for the ton of tangible and attainable help. dance studio singapore rental

Avatar_small
Digital ALi 说:
2020年10月28日 18:59

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. tennis coaching singapore

Avatar_small
Digital ALi 说:
2020年10月28日 19:00

Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. Data science training in Mumbai

Avatar_small
Digital_Zone 说:
2020年11月03日 21:03

Believe it or not, it is the type of information I’ve long been trying to find. It matches to my requirements a lot. Thank you for writing this information. Zonnepanelen

Avatar_small
Digital_Zone 说:
2020年11月08日 18:23

Thanks for sharing this valuable content. In my view, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before. Installateur zonnepanelen

Avatar_small
Digital_Zone 说:
2020年11月08日 18:41

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. Zonnepanelen kopen

Avatar_small
Digital_Zone 说:
2020年11月08日 18:54

I can’t believe focusing long enough to research; much less write this kind of article. You’ve outdone yourself with this material without a doubt. It is one of the greatest contents. Zonnepanelen

Avatar_small
Digital_Zone 说:
2020年11月08日 18:59

It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait reading. I am impressed with your work and skill. Thanks. Zonnepanelen installateur

Avatar_small
Digital_Zone 说:
2020年11月08日 19:05

I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... Zonnepanelen installateur

Avatar_small
Digital_Zone 说:
2020年11月08日 19:10

Fabulous post, you have denoted out some fantastic points, I likewise think this s a very wonderful website. I will visit again for more quality contents and also, recommend this site to all. Thanks. Zonnepanelen

Avatar_small
Digital_Zone 说:
2020年11月08日 19:20

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. Webdesign bureau

Avatar_small
Digital_Zone 说:
2020年11月08日 19:25

I am always looking for some free kinds of stuff over the internet. There are also some companies which give free samples. But after visiting your blog, I do not visit too many blogs. Thanks. Airco

Avatar_small
Digital_Zone 说:
2020年11月08日 19:32

I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site. Chape

Avatar_small
Digital_Zone 说:
2020年11月08日 19:39

Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent info! I’m also an expert in this topic so I can understand your effort. Airco installateur

Avatar_small
Digital_Zone 说:
2020年11月08日 19:45

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. Zonnepanelen kopen

Avatar_small
Digital_Zone 说:
2020年11月08日 19:52

It is a good site post without fail. Not too many people would actually, the way you just did. I am impressed that there is so much information about this subject that has been uncovered and you’ve defeated yourself this time, with so much quality. Good Works! Installateurs zonnepanelen

Avatar_small
Digital_Zone 说:
2020年11月08日 19:57

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. Webdesign

Avatar_small
Digital_Zone 说:
2020年11月08日 20:03

Wow, excellent post. I'd like to draft like this too - taking time and real hard work to make a great article. This post has encouraged me to write some posts that I am going to write soon. Webdesign

Avatar_small
Digital_Zone 说:
2020年11月08日 20:10

Efficiently written information. It will be profitable to anybody who utilizes it, counting me. Keep up the good work. For certain I will review out more posts day in and day out. Warmtepomp

Avatar_small
Digital_Zone 说:
2020年11月08日 20:16

This article was written by a real thinking writer without a doubt. I agree many of the with the solid points made by the writer. I’ll be back day in and day for further new updates. Airconditioning

Avatar_small
Digital_Zone 说:
2020年11月08日 20:21

You have performed a great job on this article. It’s very precise and highly qualitative. You have even managed to make it readable and easy to read. You have some real writing talent. Thank you so much. Warmtepompen

Avatar_small
Digital_Zone 说:
2020年11月08日 20:26

Attractive, post. I just stumbled upon your weblog and wanted to say that I have liked browsing your blog posts. After all, I will surely subscribe to your feed, and I hope you will write again soon! Airco installatie

Avatar_small
Digital_Zone 说:
2020年11月08日 20:32

I have seen some great stuff here. Worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website. Your work is truly appreciated around the clock and the globe. Warmtepomp verwarming

Avatar_small
Digital_Zone 说:
2020年11月08日 20:38

Thank you so much as you have been willing to share information with us. We will forever admire all you have done here because you have made my work as easy as ABC. Webdesign bureau

Avatar_small
Digital_Zone 说:
2020年11月08日 20:45

Best work you have done, this online website is cool with great facts and looks. I have stopped at this blog after viewing the excellent content. I will be back for more qualitative work. Warmtepomp installatie

Avatar_small
Digital_Zone 说:
2020年11月08日 20:50

You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. Webdesign bureau

Avatar_small
Digital_Zone 说:
2020年11月08日 20:56

Keep up the good work; I read few posts on this website, including I consider that your blog is fascinating and has sets of the fantastic piece of information. Thanks for your valuable efforts. Erotische massage

Avatar_small
Digital_Zone 说:
2020年11月08日 21:02

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing Reiki ontspanningsmassage

Avatar_small
Digital_Zone 说:
2020年11月15日 19:30

Fabulous post, you have denoted out some fantastic points, I likewise think this s a very wonderful website. I will visit again for more quality contents and also, recommend this site to all. Thanks. Tax Accountants Crawley


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter