--- Logging error ---
Traceback (most recent call last):
File "C:\Users\91766\anaconda3\lib\logging\__init__.py", line 1084, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\91766\anaconda3\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\91766\anaconda3\lib\site-packages\spyder\app\start.py", line 213, in main
mainwindow.main(options, args)
File "C:\Users\91766\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2311, in main
mainwindow = create_window(app, splash, options, args)
File "C:\Users\91766\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2207, in create_window
app.exec_()
File "C:\Users\91766\anaconda3\lib\site-packages\qtconsole\manager.py", line 27, in poll
super().poll()
File "C:\Users\91766\anaconda3\lib\site-packages\jupyter_client\restarter.py", line 113, in poll
self.kernel_manager.restart_kernel(now=True, newports=newports)
File "C:\Users\91766\anaconda3\lib\site-packages\jupyter_client\manager.py", line 454, in restart_kernel
self.start_kernel(**self._launch_args)
File "C:\Users\91766\anaconda3\lib\site-packages\jupyter_client\manager.py", line 314, in start_kernel
self.post_start_kernel(**kw)
File "C:\Users\91766\anaconda3\lib\site-packages\qtconsole\manager.py", line 62, in post_start_kernel
self.kernel_restarted.emit()
File "C:\Users\91766\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 786, in _handle_kernel_restarted
super(ShellWidget, self)._handle_kernel_restarted(*args, **kwargs)
File "C:\Users\91766\anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 530, in _handle_kernel_restarted
self.log.warning("kernel restarted")
Message: 'kernel restarted'
Arguments: ()
Description
What steps will reproduce the problem?
-- coding: utf-8 --
""" Created on Fri May 7 17:14:24 2021
@author: Adarsh """
import matplotlib.pyplot as plt import matplotlib.image as mpimg img1 = mpimg.imread('D:\GalMer\Image_Downloader\Montage\P_0_0_0.jpg') img2 = mpimg.imread('D:\GalMer\Image_Downloader\Montage\P_0_0_45.jpg')
plt.figure(1) plt.subplot(211) plt.imshow(img1) plt.subplot(212) plt.imshow(img2) plt.show()
import cv2 import numpy as np
Read First Image
img1 = cv2.imread('GFG.png')
Read Second Image
img2 = cv2.imread('GFG.png')
concatanate image Horizontally
Hori = np.concatenate((img1, img2), axis=1)
concatanate image Vertically
Verti = np.concatenate((img1, img2), axis=0)
cv2.imshow('HORIZONTAL', Hori) cv2.imshow('VERTICAL', Verti)
cv2.waitKey(0) cv2.destroyAllWindows()
Traceback
Versions
Dependencies