Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4557 มุมมอง

I am using numpy==1.24.0 the latest version, On running this code line wich is not used numpy library:

I Call this function in a button,when i clique
the button this error appears

def method_direct_trigger(self):
izi = self.env['izi.tools']
target_data = izi.read_attachment(self.attachment_ids.name)
print(self.attachment_ids.name)
i = 1
for
sd in target_data:
dt = {}
for field in self.field_ids:
field_name = sd[field.field_name]
dt[field.field_name] = field_name
print(dt)
izi.query_insert(self.store_table_name, dt)





อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด


I use numpy in another function i can't remove it 

The problem is that this code run in local but when i run it in server this problem appears

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

It looks like the code you posted does not actually use numpy at all, so it is unlikely that this error is related to numpy. It is possible that there is another library or module in your code that is using numpy and causing the error.

Without more context or information about the larger codebase, it is difficult to provide a more specific solution.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

It looks like the code does not use the numpy library at all. You can remove the "numpy==1.24.0" reference from your code. It won't affect the execution of this code.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
1178
3
ก.ค. 23
2075
2
พ.ค. 23
2401
2
พ.ค. 23
4485
1
มี.ค. 23
1900