-
Notifications
You must be signed in to change notification settings - Fork 748
TypeError when running ReadMe example Year 2018 #719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@STREETKILLER007 just grab the wheels from appveyor ci artifacts, in VS 2017 you probably do not have the C/C++ compilers installed. You can search for mt.exe in Windows Explorer and report back the path if you have it. |
Then what is the path for mt.exe on your machine? |
@denfromufa The location of mt.exe is as below
|
@STREETKILLER007 try updating vswhere.exe in pythonnet\tools. It is possible that some new VS 2017 paths were added recently: https://github.com/Microsoft/vswhere/releases But it should be easier to grab binaries from appveyor. |
Hmm, i read the github page. But i did not see any installation steps. Would like to ask some help here... |
I choose than i run back the example, it works nice. pythonnet is version 2.4.0.de Thank for the help. === I am trying to do this example another machine in cyber cafe. in that machine, i can't find mt.exe. When run example in that machine. It showed same result, works nice. |
I have the following settings:
I run this code, and it pops out this error.
result :
error occurs here :
dynamic b = np.array(new List { 6, 5, 4 }, dtype: np.int32);"
I get the following error:
Python.Runtime.PythonException: 'TypeError : int() argument must be a string, a bytes-like object or a number, not '0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]''
stack trace :
Tried Solution but still have not solve :
referred Errors with example calling Python from .NET #249
referred TypeError when running ReadMe example #554
download zip file and run from Amaconda prompt
python setup.py bdist_wheel
failed because needimport error : mt.exe could not be found
I did not restart my pc while installing Visual Studio 2017 Community.
So, i think that Visual Studio 2017 Installer did not install mt.exe for me.
while running on Visual Studio 2017 that fully installed, i found this issue in
python setup.py bdist_wheel --xplat
Run
pip install dist\pythonnet-2.4.0.dev0-cp36-cp36m-win64.whl
this error occurs
===
Would like to ask that, is there any option to solve this ? Thank you,
The text was updated successfully, but these errors were encountered: