numpy.dtype error
See original GitHub issueI am using Python2.7 of ArcGIS 10.5 (cannot update python version). Installed pyxDamerauLevenshtein (1.5.3) and numpy 1.16.2 in a virtual environment as ArcGIS use numpy 1.9.3 for its core moudles. When I run, the script run under virtual environment but I got this error…
File "__init__.pxd", line 206, in init pyxdameraulevenshtein
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 56 from C header, got 52 from PyObject
_
Issue Analytics
- State:
- Created 4 years ago
- Comments:16
Top Results From Across the Web
numpy dtype error - (structured array creation) - Stack Overflow
This is the error I am receiving at the moment: dtype = np.dtype(dict(names=names, formats=formats)) ValueError: all items in the ...
Read more >Cannot interpret '<attribute 'dtype' of 'numpy.generic' objects ...
describe() gives error as "TypeError: Cannot interpret '<attribute 'dtype' of 'numpy.generic' objects>' as a data type" and also plotting(df.
Read more >How to Fix: pandas data cast to numpy dtype of object. Check ...
This error occurs when you attempt to fit a regression model in Python and fail to convert categorical variables to dummy variables first...
Read more >Data type objects (dtype) — NumPy v1.25.dev0 Manual
A data type object (an instance of numpy.dtype class) describes how the bytes in the fixed-size block of memory corresponding to an array...
Read more >Expected dtype object, got 'numpy.dtype[float64]' - MNE Forum
But it did not work today when I try to run the same code again. it rased the error"expected dtype object, got 'numpy.dtype[float64]'"....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I did not try to use it on ArcGIS after a few attempts. Instead I am using it as stand alone with geopandas to read spatial vector formats. I will try again on ArcGIS as I have upgraded to 10.7 and ArcGIS Pro.
To be clear, you shouldn’t actually need Cython. All Cython does is create the C file (pyxdameraulevenshtein.c) from the pyx source (pyxdameraulevenshtein.pyx). All you should need is a C compiler to compile the C file for Windows. I unfortunately don’t have experience doing this (all of my Python development occur on a Mac or Linux system). However, https://docs.python.org/3/extending/windows.html or https://wiki.python.org/moin/WindowsCompilers might be good places to help figure this out.