Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-05 Thread Rudi Hammad
By the way, I modified the script i linked above in paste bin to not include any module related to numpy and it fixed the bug since it doesn't reimport those modules. thanks again for the tips. El lunes, 3 de mayo de 2021 a las 14:05:06 UTC+2, Rudi Hammad escribió: > awesome, thanks for

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-03 Thread Rudi Hammad
awesome, thanks for pointing that out. El lunes, 3 de mayo de 2021 a las 7:36:51 UTC+2, Alok Gandhi escribió: > Seems like a known bug in numpy related to re-initialization of core > module. > > https://github.com/numpy/numpy/issues/12305 > > > > On Mon, May 3, 2021, 04:31 Rudi Hammad wrote: >

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-02 Thread Alok Gandhi
Seems like a known bug in numpy related to re-initialization of core module. https://github.com/numpy/numpy/issues/12305 On Mon, May 3, 2021, 04:31 Rudi Hammad wrote: > okey. well, I'll just have to deal with it. Maybe thing's will get better > with python 3 in maya 2021 > > El lunes, 3 de

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-02 Thread Rudi Hammad
okey. well, I'll just have to deal with it. Maybe thing's will get better with python 3 in maya 2021 El lunes, 3 de mayo de 2021 a las 0:16:28 UTC+2, justin...@gmail.com escribió: > On Mon, May 3, 2021 at 9:59 AM Rudi Hammad wrote: > >> no, I don't used reload(). To avoid using reload

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-02 Thread Justin Israel
On Mon, May 3, 2021 at 9:59 AM Rudi Hammad wrote: > no, I don't used reload(). To avoid using reload everywhere I use this. > https://pastebin.com/sxhYQNTn Hmm, but you are still trying to dynamically change the imported module objects to force a re-import. Might not be related at all, but

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-02 Thread Rudi Hammad
no, I don't used reload(). To avoid using reload everywhere I use this. https://pastebin.com/sxhYQNTn El domingo, 2 de mayo de 2021 a las 23:45:59 UTC+2, justin...@gmail.com escribió: > Shot in the dark are you using python's reload() functionality > anywhere? Does it seem to break after

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-02 Thread Justin Israel
Shot in the dark are you using python's reload() functionality anywhere? Does it seem to break after some type of workflow operation? On Mon, May 3, 2021 at 9:38 AM Rudi Hammad wrote: > I got the log error. Here it is: > > #

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-02 Thread Rudi Hammad
I got the log error. Here it is: # == # ERROR: test_average (domain._unittest.testmath.test_numeric.TestNumeric) # -- # # Traceback (most recent call last): #

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-01 Thread Juan Moraga
I agree on what Marcus said, pip install Numpy is not reliable (from what I have experienced in the past anyway), at least for Maya 2018.7 (and I can imagine with MayaPy2.7 in general). Kind regards! On Sat, 1 May 2021, 07:40 Marcus Ottosson, wrote: > > I can use it with no problem, it is just

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-05-01 Thread Marcus Ottosson
> I can use it with no problem, it is just a rare issue that happens sometimes. Ah, ok. The reason I ask is because this sounds like the kind of problems you would get with a version compiled for a different Python. Random, subtle, memory related. I would double-check where you got it from, and

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-04-30 Thread Rudi Hammad
sure, I will. I had a similar issue once at work. Not with numpy but with a unitest when comparing matrices using MMatrix.isEquivalent(). In my computer all the tests passed, so I pushed my code into the servered. But strangly enough, in my colleague computer the same code didn't passed. So we

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-04-30 Thread Rudi Hammad
Hey Marcus, no, I didn't pip install, since maya 2018 needed to be specific compiled numpy (and scipy) compatible with it. I can't remember where I found it, I remember it took me a while to get the right one. I can use it with no problem, it is just a rare issue that happens sometimes. I will

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-04-30 Thread Alok Gandhi
And as this is not reliably reproducible, and a restart seems to fix it for a while, I would not rule out any memory issues. Keep an eye on the memory next time it happens. On Sat, May 1, 2021, 00:04 Marcus Ottosson wrote: > Did you happen to get NumPy from PyPI, via pip install? There was a >

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-04-30 Thread Marcus Ottosson
Did you happen to get NumPy from PyPI, via pip install? There was a thread here about it not long ago, but the bottom line is if you haven’t got a version compiled specifically for your version of Maya, it won’t behave. On Fri, 30 Apr 2021 at 18:20, Rudi Hammad wrote: > I'll let you know when

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-04-30 Thread Rudi Hammad
I'll let you know when the error happens again, since I don't know how to cause it. I think it is something related to can't do what ever with None, or something referencing a built-in numpy method. I know this doesn't help so when it happens again, I'll post it. El viernes, 30 de abril de

Re: [Maya-Python] numpy errors fixed when reintializing maya

2021-04-30 Thread Alok Gandhi
And what are the errors? Any logs? On Fri, Apr 30, 2021 at 8:27 PM Rudi Hammad wrote: > > Hello, > > has anyone experienced this type of behavior working with numpy? I know my > code is correct because I unitest method and all tests pass. But from time > to time, complety randomly, when i run

[Maya-Python] numpy errors fixed when reintializing maya

2021-04-30 Thread Rudi Hammad
Hello, has anyone experienced this type of behavior working with numpy? I know my code is correct because I unitest method and all tests pass. But from time to time, complety randomly, when i run the unitest I get 17 errors all related to methods that use numpy. When this happened the first