pythonnetLab icon indicating copy to clipboard operation
pythonnetLab copied to clipboard

PyObject doesn't has As function

Open sim273 opened this issue 7 years ago • 3 comments

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?

sim273 avatar May 21 '18 09:05 sim273

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

yagweb avatar May 21 '18 17:05 yagweb

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.

sim273 avatar May 22 '18 03:05 sim273

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.

herrsa1 avatar Aug 08 '18 13:08 herrsa1