Open zzme110 opened 5 years ago
Which version of SDK do you install? Which line does this error occur? I think this error comes from the SDK dependency settings.
My sdk is 2019. I will check the mistake according to your suggestion tomorrow. My programming skills are poor. It took a long time and it was frustrating. Thank you for your help!
Which version of pythonnet do you have?
pythonnet 2. 4.0
I can run the program now, but I don't fully understand the principle. This time I used conda install -c pythonnet instead of pip install pythonnet and then it worked. I just wonder why conda install -c pythonnet pythonnet must be used.
When you download pythonnet through the pythonnet channel, you get the 2.3 version, while you get the 2.4 version with pip. Different versions, hence different behaviours apparently, that's why your code broke. If you prefer to use conda, you could download pythonnet on the conda-forge channel (conda install -c conda-forge pythonnet)
Thank you ! and i want to know how can i get the information of sdk's methods or functions ? Because I want to make some other tools.
The mistake happened again, After my test, the attribute of iteminfo cannot be explained, The pythonnet 2.4.0 has been installed and other uninstalled. I used the anconda running it . I retested it on a different computer and got the same result
I found the answer that 2.4 version leads this error.
An Error Has Occurred,when i ran this dode: dhitools/notebooks/dfs012_analysis.ipynb, and my version of python is 3.7. (anconda) Can u help me solve this error?,thanks error: File "C:\ProgramData\Anaconda3\lib\site-packages\dhitools\dfs.py", line 45, in dfs_info self.num_items = dfs_object.ItemInfo.Count AttributeError: 'list' object has no attribute 'Count'