Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
this is how I solve it
if I excite this line :
val = int(input("wsp?!"))
and in-put a float value I get the error that I mentioned in the title of the post
so
this is how I got rid of it by the help of eval() command:
val = int(eval(input("wsp?!")))
This error is not only happen in Maya
I tried it with almost all newer versions of python than 3.7.7 in all the versions I got the error and the solution worked in all of them
With python 2 that was OK I didn't get the error
I am not sure that could be something that I misunderstood cause I don't have much experience with python
so I am sorry if that it the case
🤍
Solved! Go to Solution.