Skip to content

[Type Conversion] TypeError: Cannot convert 10 to System.Int32[] #788

@amRsching

Description

@amRsching

Environment

  • Pythonnet version: 2.4.0 (master branch)
  • Python version: 3.7.0 (Anaconda)
  • Operating System: Windows 10

Details

  • Describe what you were trying to get done.

    I think I've successfully installed the pythonnet. And all the demos work. But when I go through the homepage to verify my installation, there's something wrong. I'm sure it's because there's some problem for my installation or any change happened for pythonnet.

  • What commands did you run to trigger this issue? If you can provide a
    Minimal, Complete, and Verifiable example
    this will help us understand the issue.

1

This usage is from the block of 'Using Arrays' on http://pythonnet.github.io/

I think for pythonnet, most elemental Python types (string, int, long, etc.) convert automatically to compatible managed equivalents (String, Int32, etc.) and vice-versa. So I've no idea about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions