yagweb / pythonnetLab

Examples for embedding python in .NET using pythonnet
38 stars 8 forks source link

PyObject doesn't has As function #2

Open sim273 opened 6 years ago

sim273 commented 6 years ago

Environment Pythonnet version: 2.0+ Python version: Python 2.7 Operating System: Windows 7 Details: The code doesn't works on the ide gives the following error: 'PyObject' does not contain a definition for 'As' and no extension method 'As' accepting a first argument of type 'PyObject' could be found (are you missing a using directive or an assembly reference?

yagweb commented 6 years ago

Your Pythonnet version is too old. Use Pythonnet 2.3+ or build from master manually.

sim273 commented 6 years ago

Actually I had downloaded the repository of pythonnet and added it to the project,I m very new to this,if anyone can help me out please.

herrsa1 commented 6 years ago

I also have this problem. Ive been using python 3.6 pythonnet 2.3.0 and tried the pythonnet 2.4.0.dev built directly from the github master and it still doesnt work.