-
Notifications
You must be signed in to change notification settings - Fork 23
Python3 pass tests and libssl #23
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
|
Hi Dominik,
Thanks for you PR!
Unfortunately, I wasn't able to have a closer look at it yet. Please be
patient. Thanks.
Marek
|
|
Re: libssl workaround I'm reluctant to merge this part, because it seems to be a local issue and seem to be too invasive to load libssl in every installation of matlab_wrapper on every system. It could have some unpredictable consequences. If more people report it and we can pinpoint the versions of MATLAB and system where the issue occurs, then we could make it a conditional load behind an 'if'. For now, I recommend that you load libssl before importing matlab_wrapper if necessary. |
|
Re: removal of import unicode_literals and Python 3 compat. ATM matlab_wrapper is Python 2 compatible and the backward compatibility is one of the most important properties of this library. I don't want to break people's code! So if Python 3 compatibility can be added without loosing the backward compatibility then it can be merged. I actually believe that's it's better/easier to make a new library by forking matlab_wrapper that would be purely Python 3 compatible. It would also allow to adjust some initial design decisions that went into matlab_wrapper and cannot be changed now. |
Hi,
Thanks for the good work!
Due to the data types of structured arrays, a few tests failed on the
python3branch (at least after I merged withmaster). All tests now pass using Python 3.5.2 and Python 2.7.12, but for compatibility with Python 2, unicode strings have to be input as data to numpy arrays explicitly (u''). I can't seem to find an elegant solution because dtype field names can't be unicode in numpy (see here).Also, when first used with Matlab 9.0.0.341360 (R2016a), I got the error:
OSError: /opt/MWmatlabR2016a/bin/glnxa64/libssl.so.1.0.0: undefined symbol: EVP_idea_cbcwhich occurs because Matlab 2016a is using an older version of
libssl.. Unfortunately, I don't have permission to modify the system environment, so one workaround is to load the system'slibsslprior to loadinglibengandlibmg.Only tested on Ubuntu 16.04.2 LTS.
Cheers