Installing GLPK/CBC - windows

I am new to Pyomo and would love to use it and call GLPK or CBC. However, I am struggling to get any of them working, perhaps I am not able to install and call them correctly. I am using windows and would appreciate any input.
Here is an error message I am receiving:
"Could not locate the 'glpsol' executable, which is required for solver 'glpk'"
I am using python 3.6.

Related

Error when i install Bazel in a RaspBerry pi

Im trying yo install bazel-0.8.0 in my raspberry pi 3, but when i compile bazel, after an hour, through me an error. The specific error i think is package-bazel.sh zip: doesnt found. I follow the instruction of this video "https://www.youtube.com/watch?v=WqCnW_2XDw8", and i do all the things like the video, but i cant fix that error that appears to me. Anybody know why i get that error?
This is the exactly error i get:
It seems as the programm zip is not installed. Please try to execute the command line to install all prerequisits as mentioned here https://docs.bazel.build/versions/master/install-compile-source.html#unix-like-systems

pyinstaller gives weird errors when compiling pandas

UPDATE june 18:
I would like compiling my python code for windows.
I use to work with pyinstaller, python 3.5+, windows 7 and anaconda to control modules pandas, pyqt (v5) and pyqtgraph, but it seems something is not compatible. I would not be surprised if you tell me to change a version.
In previous versions, it worked with python 3.5, windows 7 and Pyinstaller 3.3.1- without pandas; the new version imports pandas and then this doesn’t work anymore:
with the usual config pyinstaller gives a message saying the C libraries are not built. Following the instructions, I should run python setup.py build_ext --inplace --force, except I don’t see the setup.py file, so I don’t know what to do. Forums tell me it should be a problem with pip but not with conda… but I use conda…
with python 3.6, I got an error message ‘RecursionError: maximum recursion depth exceeded’ (https://github.com/steph2016/profiles/blob/master/errorMessage). This problem seems known and solutions I found on forums is either to downgrade python or to replace my PyInstaller-3.3.1 by PyInstaller-3.4.dev0+7b3143612. But with PyInstaller-3.4.dev0+7b3143612 I get a ’’str’ object has no attribute ‘items’’ error (https://github.com/steph2016/profiles/blob/master/ErrorMessage2). I’m not sure pyinstaller is compatible with python 3.6…
with python 3.4, I got an error similar to the ‘str object’ one above. I’m not sure python3.4 is compatible with qt5…
I would be pleased by any solution with any version of whatever to windows-compile my code
I don't know if it is the issue but I didn't find PyQtGraph in Supported-Packages
I eventually applied the first solution proposed in No module named 'pandas._libs.tslibs.timedeltas' in PyInstaller in the original config (python 3.5, PyInstaller 3.3.1, pyqtgraph, pandas, windows 7,...) and it worked.
I don't know why adding def get_pandas_path ..... a.binaries) helps, so I can't justify. But just to be explicit even if it seems obvious: pyinstaller must be run on the spec file, not on the py one (for instance > pyinstaller toto.spec)

linecache error while creating python exe

I am trying to create an exe of my Python application using py2exe. I am getting this error: "Import error: No module named linecache"
I've tried everything that has been suggested on this forum in the past, but nothing works. Please help.

Clojure fireplace in vim asking for python

Trying to get get fireplace set up in vim but having trouble with some error messages.
When I type cpr in a clojure buffer the following error shows up:
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform..fireplace#register_
port_file..fireplace#nrepl_connection#open..fireplace#nrepl#for..<SNR>75_nrepl_
process..<SNR>75_nrepl_message..<SNR>75_nrepl_call..<SNR>74_nrepl_transport_cal
l..<SNR>74_nrepl_transport_dispatch:
line 6:
E605: Exception not caught: nREPL: zsh:1: command not found: python^#
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform:
line 9:
E171: Missing :endif
The thing I understand is that it cant find python. In my shell I can start python with the python command which will fire up 3.4.2.
Im using nixos
:echo has('python') returns 0
echo $PATH and :! echo $PATH return the same path.
What can I try in order to find what is actually causing this error?
You have to install/compile vim with python support for vim-fireplace to work, and this may not be the default on your system. I believe typing :help python will do this for you. If you don't get anything, you may have to recompile vim with python support, for which I'll direct you towards Google for now.
Another option if you have pip installed is to consider switching to neovim. Installing neovim with pip install neovim will get you python support. I've been using neovim lately, and it's worked pretty well for me.

win32 folder not found after "easy_install pywin32"

ImportError: No module named win32api this is the error i am getting. and looking at other posts i know that pywin32 is what missing from my virtualenv.
i tried easy_install pywin32.. but it didnt install the "win32" folder and win32api is part if win32 and i still get importError error.
i dont want to isntall the .exe (pywin32-219.win32-py2.7 fixes) which as mentioned in other posts since i will be making changes to the source and running it though automation hooks.
i am using python 2.7.6 version
easy_install "http://sourceforge.net/projects/pywin32/files/pywin32/Build 219/pywin32-219.win32-py2.7.exe solved the problem. Thanks

Resources