Skip to content

Type error when creating a numpy array #673

Closed
@adrian22495

Description

@adrian22495

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions