Installation problem on windows 10

1,046 views
Skip to first unread message

stephan.fi...@googlemail.com

unread,
Apr 12, 2016, 3:59:03 PM4/12/16
to pyomo...@googlegroups.com

Hello together,


sorry I’m a newbie and have an installation problem. I’ve tried to install Pyomo on windows 10.

My approach was as follows:

1.    Installing of Anaconda 2.7 for 32 bit

2.      Adding PIP (C:\Anaconda\Scripts) to the system environment variables

3.      Installing of Pyomo using „pip install pyomo“ in cmd -->  resulting message: successfully installed pyomo-4.3.11328

4.      Installing of Pyomo Extras using „pip install pyomo.extras“ --> resulting message: successfully installed pyomo.extras-2.0

5.      Numpy and scipy had been already installed during the Anaconda installation (already checked)

 

Now the following error appears if pyomo is opened in cmd:

ImportError: error loading pyomo.command entry point pyomo.pysp2smps = pyomo.pysp.smps.pysp2smps: Original ImportError: cannot import name BasicSymbolMap

 

Additionally, there’s an error in the Spyder Console after using „from pyomo.environ import *“:

ImportError: pyomo.environ failed to import pyomo.pysp.plugins:

Original ImportError: cannot import name BasicSymbolMap

Traceback:

  File "C:\Anaconda\lib\site-packages\pyomo\environ\__init__.py", line 45, in _import_packages

    _do_import(pname)

  File "C:\Anaconda\lib\site-packages\pyomo\environ\__init__.py", line 25, in _do_import

    __import__(pkg_name, globals(), locals(), [], -1)

  File "C:\Anaconda\lib\site-packages\pyomo\pysp\__init__.py", line 29, in <module>

    import pyomo.pysp.ph

  File "C:\Anaconda\lib\site-packages\pyomo\pysp\ph.py", line 34, in <module>

    from pyomo.core.base import BasicSymbolMap, CounterLabeler

 

Could someone help me please? I have no idea what the problem is.

Thanks Stephan

Gabriel Hackebeil

unread,
Apr 12, 2016, 4:31:35 PM4/12/16
to pyomo...@googlegroups.com
That particular import no longer exists in PySP, especially in Pyomo 4.3. My guess is that you had a previous installation of Pyomo installed into Anaconda at some point (perhaps using a different installation method). I would recommend doing the following:

(1) run “pip uninstall Pyomo Pyutilib”
(2) download pyomo_uninstall.py and run “python pyomo_uninstall.py”

The second command will make sure no older distributions of Pyomo, Coopr, or Pyutilib remain in that particular Python’s site-packages directory. I’m guessing pip is not picking up on the fact that an older version is installed. This might be because Pyomo packages were organized differently in older version.

Once you’ve completed the above, go ahead and retry the “pip install Pyomo” and “pip install pyomo.extras” commands.

Let us know if this does not fix the problem.

Gabe

On Apr 12, 2016, at 12:56 PM, stephan.fichtner1910 via Pyomo Forum <pyomo...@googlegroups.com> wrote:

Hello together,


sorry I’m a newbie and have an installation problem. I’ve tried to install Pyomo on windows 10.

My approach was as follows:

1. Installing of Anaconda 2.7 for 32 bit

2.      2. Adding PIP (C:\Anaconda\Scripts) to the system environment variables

3.      3. Installing of Pyomo using „pip install pyomo“ in cmd -->  resulting message: successfully installed pyomo-4.3.11328

4.      4. Installing of Pyomo Extras using „pip install pyomo.extras“ --> resulting message: successfully installed pyomo.extras-2.0

5.      5. Numpy and scipy had been already installed during the Anaconda installation (already checked)

 

Now the following error appears if pyomo is opened in cmd:

ImportError: error loading pyomo.command entry point pyomo.pysp2smps = pyomo.pysp.smps.pysp2smps: Original ImportError: cannot import name BasicSymbolMap

 

Additionally, there’s an error in the Spyder Console after using „from pyomo.environ import *“:

ImportError: pyomo.environ failed to import pyomo.pysp.plugins:

Original ImportError: cannot import name BasicSymbolMap

Traceback:

  File "C:\Anaconda\lib\site-packages\pyomo\environ\__init__.py", line 45, in _import_packages

    _do_import(pname)

  File "C:\Anaconda\lib\site-packages\pyomo\environ\__init__.py", line 25, in _do_import

    __import__(pkg_name, globals(), locals(), [], -1)

  File "C:\Anaconda\lib\site-packages\pyomo\pysp\__init__.py", line 29, in <module>

    import pyomo.pysp.ph

  File "C:\Anaconda\lib\site-packages\pyomo\pysp\ph.py", line 34, in <module>

    from pyomo.core.base import BasicSymbolMap, CounterLabeler

 

Could someone help me please? I have no idea what the problem is.

Thanks Stephan


--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gabriel Hackebeil

unread,
Apr 15, 2016, 6:05:40 PM4/15/16
to pyomo...@googlegroups.com
Something went wrong when we uploaded the release to PyPI. We have corrected it. You should be able to make the problem go away by running “pip install -U Pyomo”. (copy-pasting my response from another thread)

Gabe

zeryab hassan Kiani

unread,
Apr 27, 2016, 9:20:14 AM4/27/16
to Pyomo Forum
I had same issue for some previous days in Windows 10
Please check this link http://stackoverflow.com/questions/36886524/installing-pyomo-windows-10
I hope this will help you
Reply all
Reply to author
Forward
0 new messages