Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oct2py hangs in Windows #63

Closed
skhnat opened this issue Dec 16, 2014 · 22 comments
Closed

Oct2py hangs in Windows #63

skhnat opened this issue Dec 16, 2014 · 22 comments

Comments

@skhnat
Copy link

skhnat commented Dec 16, 2014

Oct2py hangs in Windows after importing "octave" in either Python or IPython in Windows command line. Currently using Windows 7, Python 2.7.8, Anaconda 2.1.0, oct2py 2.4.0. It also hangs during the nosetests after cloning the repo.

@blink1073
Copy link
Owner

Hi @spinningplates, thanks for the report. Can you open up a "cmd" Window and just type "octave" and let me know if Octave starts?

@blink1073
Copy link
Owner

Actually, also paste the Octave start prompt if you don't mind.

@skhnat
Copy link
Author

skhnat commented Dec 17, 2014

Octave is able to start and I have successfully run programs using Octave.

This is copy-pasted after initializing Octave:

GNU Octave, version 3.8.1
Copyright (C) 2014 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.

Octave was configured for "i686-w64-mingw32".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

@moorepants
Copy link
Contributor

@blink1073 I've noticed that anaconda does not work inside a MinGW or Cygwin shell. The Octave binaries for Windows are built with wither MinGW or Cygwin, so maybe there is an incompatibility. How do you install Octave on windows and do you use it with Anaconda on Windows?

@blink1073
Copy link
Owner

Here's my environment:

$ bash --version
GNU bash, version 3.1.0(1)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.
User: ~
$ python --version
Python 2.7.7 :: Anaconda 2.0.1 (32-bit)
$ octave --version
GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

Octave was configured for "i686-pc-mingw32".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

@blink1073
Copy link
Owner

I use Git Bash. I also tested with a clean install of oct2py 2.4.0. I'll try upgrading Octave to the latest and see if that makes a difference...

@blink1073
Copy link
Owner

@spinningplates, I see that 3.8 is an unofficial build for Windows. http://wiki.octave.org/Octave_for_Windows#Octave_3.8_MXE_Builds. I do not want to get into the business of supporting unofficial builds. Its hard enough keeping up with all the environments as is...

@moorepants
Copy link
Contributor

I think we were using 3.8 because of some other issues. How do you find official builds for octave?

@blink1073
Copy link
Owner

I'll make the docs clearer in that I only support the official builds on Windows and do not support Cygwin. http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/. There's a link to the .NET builds on the installation page.

@moorepants
Copy link
Contributor

@spinningplates Can you try Octave 3.6.4 from the download @blink1073 just shared?

@moorepants
Copy link
Contributor

I think this is why I was using 3.8+ on Ubuntu: #35

BTW, 3.8.1 is the default on 14.04 LTS: http://packages.ubuntu.com/trusty/math/octave

@skhnat
Copy link
Author

skhnat commented Dec 18, 2014

@moorepants @blink1073 Confirmed that oct2py works in Octave 3.6.4.

@moorepants
Copy link
Contributor

Great. So that's the deal. oct2py likely doesn't work on Windows with anything > 3.6.4.

See if our software works. We may need to modify the matlab code to run with 3.6.4.

@blink1073
Copy link
Owner

I did have to make some changes to accommodate 3.8 on Linux, but its been working for a couple versions now. It sounds like the pipe behavior may have changed between 3.6 and 3.8 (which led me to go back to pty on Linux). I fear oct2py may never work on Windows with Octave 3.8+. How did you install 3.8 on Windows? I can take a look when I get a spare moment.

@skhnat
Copy link
Author

skhnat commented Dec 19, 2014

I just downloaded 3.8.2 from here: http://mxeoctave.osuv.de/ and installed as I did the other versions of Octave (in an Octave folder on the C drive). I also manually added the Octave/bin folder to the path to get it to work in Windows command line.

@blink1073
Copy link
Owner

Fixed! I'll make sure it works still on Linux, and fire off a bug fix release.

@blink1073
Copy link
Owner

Should be good in v2.4.2, pip install -U oct2py

@moorepants
Copy link
Contributor

Awesome, thanks! I'll pin our software to this version as the dependency (at least for Windows).

@moorepants
Copy link
Contributor

@spinningplates Can you confirm that the 2.4.2 release works?

pip install --upgrade oct2py

will install the new version.

@skhnat
Copy link
Author

skhnat commented Jan 5, 2015

I've just confirmed that the 2.4.2 release works. Thanks!

@blink1073
Copy link
Owner

Great! You're very welcome!

@uozden
Copy link

uozden commented Nov 2, 2015

Dear Blink1075
Which version of oct2py does work with Octave 4.0.0 on Windows ?
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants