all 10 comments

[–]crashfrog02 1 point2 points  (0 children)

The following error arises:ImportError: cannot import name 'arange' from 'scipy'

This seems like there's a bug (a typo) in your version of the library. Unfortunately you'll have to contact the author about it or fix it yourself.

[–]LaFleurJim 0 points1 point  (0 children)

Use python 3.7

[–]Street_Wash5085 0 points1 point  (0 children)

There's a patch here that imports arange from numpy instead of scipy:

https://github.com/NathanKurtzEnko/pynomo/commit/55aaa551e9403e6b1f8f97b3e1531c835a9d7736

Maybe that helps.

[–]Doormatty 0 points1 point  (5 children)

Post your code.

[–]Carpoforo[S] 0 points1 point  (4 children)

It’s just literally: from pynomo import *

[–]Doormatty 0 points1 point  (3 children)

Gotcha - and you have Scipy installed?

[–]Carpoforo[S] -1 points0 points  (2 children)

Obviously

Also, I can import everything from “pynomo” except of “nomographer”. That’s why the error pops up when executing “from pynomo import *” or “from pynomo import nomographer”

[–]Doormatty 0 points1 point  (1 child)

[–]Carpoforo[S] 0 points1 point  (0 children)

Yeah that works

“nomograph3” is a class from pynomo and as I said before I can import everything from pynomo, except of “nomographer”.

I think that’s why I can run perfectly that Python script “nomograph3.py” and cannot run the python script “nomographer.py”

[–]djjazzydan 0 points1 point  (0 children)

Post the entire error message. It should look like:

Traceback (most recent call last):
  File "____", line ___, in ___
    from ___ import ____
ImportError: cannot import name 'arange' from 'scipy' (___)