-
Notifications
You must be signed in to change notification settings - Fork 96
BF: Install on Windows 64 systems, but not on 32 bit Windows. #123
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
Conversation
At least until someone helps us build the messenger for that system.
I have a 32-bit python installed (mainly because psychopy declares not to work on 64 bit python) on a 64 bit windows. In this scenario both sys and platform return 32 bit: import sys
sys.platform
Out[2]: 'win32'
import platform
platform.architecture()
Out[4]: ('32bit', 'WindowsPE') Checking for maxint also does not work in this context: maxint = sys.maxint()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-10-8213151cd894> in <module>()
----> 1 maxint = sys.maxint()
TypeError: 'int' object is not callable
maxint = sys.maxint
maxint
Out[12]: 2147483647 However, checking platform.machine().endswith('64')
Out[5]: True So if 32 bit python running on 64 bit windows is ok, I would consider checking system architecture with |
Thanks @mmagnuski for checking this! Does the recent commit work for you? As you might understand, I don't have a Windows machine to test this on, so I rely heavily on help from people like you! |
I completely understand, windows drives me crazy sometimes. 😄 Invalid MEX-file 'D:\Python\Anaconda\lib\site-packages\pymatbridge\matlab\messenger.mexw64': Nie można odnaleźć określonego modułu.
Error in matlabserver (line 7)
messenger('init', socket_address); I would like to help here but I'm not sure if I can - I have never done any C or mex. |
I will try compiling messenger.c to mex in the nex few days (will have to figure how to do it) and see if this helps. But this seems to be unrelated to this pull request, so I think it would be better if I opened a new issue for this |
Oh - oops - thanks for pointing that out. As for your mex error, I sort of know what "nie mozna" means, but what does For building the messenger on your system, you might want to refer to these On Sun, Feb 1, 2015 at 3:09 PM, mmagnuski [email protected] wrote:
|
Just to be sure - is this branch ready to merge from your point of view? On Sun, Feb 1, 2015 at 3:36 PM, Ariel Rokem [email protected] wrote:
|
Thanks for the resources, they will be very useful. |
Hmm. I wonder what |
BF: Install on Windows 64 systems, but not on 32 bit Windows.
Just for the record: what is your Matlab version? In case that ends up being a meaningful variable here. |
Sorry for the delay - my matlab version:
I will report soon on my progress :) |
@mmagnuski , I also encountered this type of problem in windows, the error is the same to you: Invalid MEX-file 'D:\Python\Anaconda\lib\site-packages\pymatbridge\matlab\messenger.mexw64': .
Error in matlabserver (line 7)
messenger('init', socket_address); The version of my python is as follows: and my matlab version is also I run the package python-matlab-bridge in Ubuntu 14.04 successfully, but the problem in the window 7 still unsolved. |
Hi, I am having the same issue with windows 7 and Anaconda:
Python 3.4.2:
|
First question: are you installing from a recent version of pymatbridge?
|
Hi! I've just tried to install pymatbridge via pip so I guess the answer is This is the output I get with the code you mention:
On Tue, Mar 3, 2015 at 8:47 PM, Ariel Rokem [email protected]
Francisco J. Navarro-Brull |
That confuses me. Would you mind trying to install this from the source? That would entail downloading the current source code (https://github.com/arokem/python-matlab-bridge/archive/master.zip) and running
in the source directory. |
Ok, from source it worked :) But... now I get this in the MATLAB console (I am watching the conversations here because same problem happened before) Matlab version R2013a
'C:\Users\franz\Anaconda3\envs\imatlab\lib\site-packages\pymatbridge\matlab\messenger.mexw64': |
Well, progress, but so sorry that it isn't working yet. This might be an Could you please tell me what you get when you type:
Hey @blink1073 - could you confirm that this was built against zmq3? Do you There's this page on SO, describing how to build the messenger yourself on http://stackoverflow.com/questions/23716426/installing-pymatbridge-on-windows On Tue, Mar 3, 2015 at 1:00 PM, Fran Navarro [email protected]
|
is that a problem? |
@arokem, I did not build the Matlab mex for Windows, since I only have a Linux version. |
Indeed, it looks like @aebrahim did that here: If you're still around, @aebrahim: could we ask for your help building the Although, how did you get the Octave messenger for Windows, without a On Tue, Mar 3, 2015 at 3:38 PM, Steven Silvester [email protected]
|
I'll take a crack at that this weekend. |
@arokem, I have a Windows machine, just no Windows Matlab. 😄 |
Aha! Of course - that explains. Oh well, let's wait for @aebrahim to take a On Tue, Mar 3, 2015 at 5:50 PM, Steven Silvester [email protected]
|
Hey @aebrahim - any luck with this? |
Sorry for the delay. See #161 |
@franktoffel - this is now merged into master, could you try reinstalling from master? |
Hi @arokem, I have just tried the installation from master (the installation worked fine). I am still unable to connect due to a problem with the mex files (albeit these files exist). This is the error I've got on the matlab command window:
|
I am having the same error. Installed from master, installation was ok but mex still does not work. |
Ok. Strange because it worked for me. What matlab version?
|
My matlab version:
My zmq version: print(zmq.zmq_version())
4.0.5 I have 64 bit windows 8 and 32 bit python (2.7) - I am not sure if this is relevant, but try to always mention it just to be on the safe side. |
Did MATLAB break some binary compatibility or something? I have the On Wed, Mar 11, 2015 at 9:39 AM, mmagnuski [email protected] wrote:
|
In fact, it runs for me in R2014b but not R2013a. On Wed, Mar 11, 2015 at 9:56 AM, Ali Ebrahim [email protected] wrote:
|
I built this with 2013a... does it work any better? https://drosophi.la/messenger.mexw64 On Wed, Mar 11, 2015 at 10:12 AM, Ali Ebrahim [email protected] wrote:
|
With R2014a (Classroom license) didn't work before. I didn't try with your mex file, @aebrahim |
Matlab 2014b changes the way handles work in graphics and generally redesigns graphic internals, but I am not aware if this entails binary incompatibility. Regarding the mex file - it works! 🐹 👍 def is_connected(self):
if not self.started:
time.sleep(2)
return False What is the |
A success (with yet another error :) ):
from pymatbridge import Matlab
mlab = Matlab()
mlab.start() This quickly connects to matlab (probably because one matlab instance was connected to the socket already) and everything works (
So it may be useful not to spawn another matlab instance in this case (although it is harmless). Anyway - the mex file works, and python and matlab can finally speak to each other. 👯 |
Just to clarify which mex works for me - the one built on matlab 2013b by @aebrahim |
(BTW - |
OK I'll create a pull request using the new file. On Wed, Mar 11, 2015 at 2:04 PM, mmagnuski [email protected] wrote:
|
Wait there never was a 2013b. There is 2013a and 2014b. Which did you mean? On Wed, Mar 11, 2015 at 2:09 PM, Ali Ebrahim [email protected] wrote:
|
Sorry, 2013a. |
Hi, I have the same issue. and followed all mentioned tricks, but it did not work. this is my error:
|
At least until someone helps us build the messenger for that system.
This should help with #122