Skip to content

TypeError when running ReadMe example  #554

@fgiaret

Description

@fgiaret

Hi, I'm trying to embed Python in a C# project with Visual Studio (I'm very new both to C# and GitHub) and I started running the numpy example from the Readme file. After the lines:

"dynamic a = np.array(new List { 1, 2, 3 });
dynamic b = np.array(new List { 6, 5, 4 }, dtype: np.int32);"

I get the following error:
{"TypeError : int() argument must be a string, a bytes-like object or a number, not '0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'"}.

I have the following settings:

  • Pythonnet version: 2.3.0 for Python 3.6 (64 bit), installed with pip;
  • Python version: 3.6.1 (64 bit) with Anaconda 3;
  • Visual Studio 2015;
  • Operating System: Windows 7

I've seen issue #249 reporting the same error, but still wasn't able to fix this. It would be great if someone could help me,

Thank you!

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