question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

numpy.dtype error

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
knwincommented, Dec 19, 2019

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.

1reaction
gfairchildcommented, Jun 26, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found