• Mystic Python crashes when importing PIP packages

    From Analog@21:2/123 to All on Tue Dec 31 14:50:47 2019
    Maybe this has been covered at some point but when I install pacakges using PIP, if I import them inside an MPY script, Mystic crashes with runtime error 217. Any ideas?

    A good example is this:
    import Numpy

    Crash!!!

    If I run the same code from python shell it's fine.

    I'm on Win32, Python 2.7.X

    |19|15┌─|16|07┤ |08De|07ad|15be|07a|08tz b|07b|15s
    |07└─┘├─┐ |08:>.|12F|04sx |1221|08:|122|08/|12123|08.
    |11■ |07└|19|15─|16|07┘ |08:>.|10A|02gn |1046|08:|101|08/|10123|08.
    |12≡|15A|07n|08al|07o|15g|12≡ |08:>.|13F|05dn |131|08:|13305|08/|132|08.
    |08:>.|15S|08ci |1577|08:|151|08/|15131|08.
    |08:>.|11T|03qw |111337|08:|113|08/|1113|08.

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: deadbeatz.org (21:2/123)
  • From maskreet@21:1/114 to Analog on Tue Dec 31 22:47:41 2019
    On 31 Dec 2019, Analog said the following...

    Maybe this has been covered at some point but when I install pacakges using PIP, if I import them inside an MPY script, Mystic crashes with runtime error 217. Any ideas?

    I got the same thing occasionally. I think I had to rebuild an install of Python 2.7.x in order for everything to work correctly. There's a pretty detailed how-to on the Mystic wiki to do it.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)
  • From Analog@21:2/123 to maskreet on Tue Dec 31 22:21:45 2019
    As far as I can tell, that is a Linux distro issue. I'm not sure why it would happen in Windows. Maybe I'll attempt to build it on W32 and see if it works.
    I removed Numpy and a few of my other PIP packages started working. I chased down they were referencing Numpy if installed. So weird.

    |19|15┌─|16|07┤ |08De|07ad|15be|07a|08tz b|07b|15s
    |07└─┘├─┐ |08:>.|12F|04sx |1221|08:|122|08/|12123|08.
    |11■ |07└|19|15─|16|07┘ |08:>.|10A|02gn |1046|08:|101|08/|10123|08.
    |12≡|15A|07n|08al|07o|15g|12≡ |08:>.|13F|05dn |131|08:|13305|08/|132|08.
    |08:>.|15S|08ci |1577|08:|151|08/|15131|08.
    |08:>.|11T|03qw |111337|08:|113|08/|1113|08.

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: deadbeatz.org (21:2/123)
  • From maskreet@21:1/114 to Analog on Wed Jan 1 13:27:00 2020
    On 31 Dec 2019, Analog said the following...

    As far as I can tell, that is a Linux distro issue. I'm not sure why it would happen in Windows. Maybe I'll attempt to build it on W32 and see
    if it works. I removed Numpy and a few of my other PIP packages started working. I chased down they were referencing Numpy if installed. So
    weird.

    Ah, sorry, didn't see you were running it under Windows.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)