ich habe mir jetzt fürs programmieren Ubuntu auf ner 120GB festplatte zugelegt. Wenn ich jetzt eines meiner Skripte starte (das vorher auch schon auf ner anderen ubunut version auf der selben Platte funktioniert hat) und zu der Zeile komme:
Code: Alles auswählen
img = Image.open("file.png")
img.show()
Code: Alles auswählen
Traceback (most recent call last):
File "/home/phobit/PycharmProjects/PyTorch/catsanddogs.py", line 148, in <module>
test()
File "/home/phobit/PycharmProjects/PyTorch/catsanddogs.py", line 139, in test
img.show()
File "/home/phobit/PycharmProjects/PyTorch/venv/lib/python3.6/site-packages/PIL/Image.py", line 2132, in show
_show(self, title=title, command=command)
File "/home/phobit/PycharmProjects/PyTorch/venv/lib/python3.6/site-packages/PIL/Image.py", line 3044, in _show
_showxv(image, **options)
File "/home/phobit/PycharmProjects/PyTorch/venv/lib/python3.6/site-packages/PIL/Image.py", line 3050, in _showxv
ImageShow.show(image, title, **options)
File "/home/phobit/PycharmProjects/PyTorch/venv/lib/python3.6/site-packages/PIL/ImageShow.py", line 53, in show
if viewer.show(image, title=title, **options):
File "/home/phobit/PycharmProjects/PyTorch/venv/lib/python3.6/site-packages/PIL/ImageShow.py", line 73, in show
return self.show_image(image, **options)
File "/home/phobit/PycharmProjects/PyTorch/venv/lib/python3.6/site-packages/PIL/ImageShow.py", line 93, in show_image
return self.show_file(self.save_image(image), **options)
File "/home/phobit/PycharmProjects/PyTorch/venv/lib/python3.6/site-packages/PIL/ImageShow.py", line 181, in show_file
["im=$(cat);" + command + " $im;" "rm -f $im"], shell=True, stdin=f
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1295, in _execute_child
restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Cannot allocate memory