Closed ChenZhong1990 closed 3 years ago
Sorry, this Python module depends upon the shared libraries distributed by Dewesoft for all I/O. This is an error coming from that library. Are you able to read other .d7d files, like the Example_Drive01.d7d included in this package?
Thank you for your reply. The same errors happen when I try the Example_Drive01.d7d included in this package and other data i use the latest version of Dewesoft X3 software ,is it possible the dll file in the package is not match the dll file for my X3 software ,or the dll file is corrupted for this erro, Anyway ,l will try
------------------ Original ------------------ From: Carl Osterwisch @.> Date: Sat,Oct 2,2021 9:10 AM To: costerwi/dwdatareader @.> Cc: ChenZhong1990 @.>, Author @.> Subject: Re: [costerwi/dwdatareader] DWError:cannot open d7d file by jupyter notebook (#41)
Sorry, this Python module depends upon the shared libraries distributed by Dewesoft for all I/O. This is an error coming from that library. Are you able to read other .d7d files, like the Example_Drive01.d7d included in this package?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
The 4020019 version of the dll is normally able to load the Example_Drive01.d7d. Are you sure the files are available in the current directory? This will show you your current directory:
import os
os.getcwd()
Also: I've added a binder you can use live on the internet here.
Hi, Carl ,thanks for your help!
I have solved the problem according to your device, and the reason is that the Example_Drive01.d7d is not available in the current directory(where the script file .ipynb is ), so i defined the correct path for the script like the following:
with dw.open('C:\Users\Desktop\dewesoft\Example_Drive01.d7d') as d7d:
or
with dw.open(r'C:\Users\Desktop\dewesoft\Example_Drive01.d7d') as d7d:
and the result works normal now.
Good! It's too bad the Dewesoft library gives the same simple "cannot open" error when it cannot even find the file.
sorry to bother you. i use the following code in jupyter notebook(python 3.8) : import dwdatareader as dw
with dw.open('normal_0001.dxd') as f:
then tells the DWError:cannot open d7d file. and the version for the dwdatareader is 0.13.2 4020019
could you pls help to check this ?thanks in advance