Skip to content

Type error when creating a numpy array #673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adrian22495 opened this issue May 16, 2018 · 3 comments
Closed

Type error when creating a numpy array #673

adrian22495 opened this issue May 16, 2018 · 3 comments

Comments

@adrian22495
Copy link

adrian22495 commented May 16, 2018

Environment

  • Pythonnet version: 2.3
  • Python version: 3.5
  • Operating System: Windows 10

Details

Hi!
I just install pythonnet via nuget on a .Net project. To test it, I included the example code that appears on the readme.md of pythonnet in the c# project but when the next line is executed
dynamic b = np.array(new List<float> { 6, 5, 4 }, dtype: np.int32);

the following exception occurred:

Python.Runtime.PythonException: 'TypeError : int() argument must be a string, a bytes-like object or a number, not '0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

Any idea of the issue? The prior lines were executed correctly.

I tried to install Pythonnet from Master as suggested in #554 but an error happend at the first command.
python setup.py bdist_wheel --xplat
I attach the output, I have translated some lines that were in spanish so probably you can find a lot of spelling errors.
output_setup.txt

@den-run-ai
Copy link
Contributor

@adrian22495 have you checked on the master branch? but anyway, we are re-evaluating the design of this feature, please see this:

#514

@den-run-ai
Copy link
Contributor

@adrian22495 next time please post new comments instead of editing the original comments, because no one will receive notification for edits. Did you try the other installation option with pip+git?

@den-run-ai
Copy link
Contributor

closing this issue due to inactivity, feel free to download compiled wheels from appveyor builds. your build error is not clear, but it could be due to non-English locale issues with DLLExport (Unmanaged Exports).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants