콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
8467 화면

Hello,


I use odoo 10 and import products with my own code. This is working, but I added now a function, to save some infos and reload at next import:

if (os.path.isfile(self.data_path + '/remainingAccessories.npy')):
logger.info("load saved remaining Accessories file: " + self.data_path + '/remainingAccessories.npy')
remainingAccessories = np.load(self.data_path + '/remainingAccessories.npy')
logger.info("remaining Accessories size : " + len(remainingAccessories))
else:
remainingAccessories = {
}


The probem is always (np.load) ... when the code reach this line, I get:

WARNING company odoo.sql_db: Cursor not closed explicitly

When I use this line in a own python programm, I get no problem. And why are loading  numpy saved file run in a SQL error?


Thank you! 


아바타
취소
작성자 베스트 답변

Ok, I found it:

there was an error in the code and the exception are not printed. So I thought it is a sql problem.


We can close here

아바타
취소
관련 게시물 답글 화면 활동
1
8월 22
15372
1
5월 20
6121
2
7월 25
4967
2
12월 24
7985
2
11월 24
28789