-
Notifications
You must be signed in to change notification settings - Fork 262
Nibabel 2.2.0 cannot be frozen #571
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
Comments
Is this something that can be fixed by updating the MANIFEST? I don't really know the rules for that. |
Not as far as I know - I'm actually related trouble with some other packages, due to some newly added dependencies in my project. I've found that with I suppose it comes down to where you think the responsibility lies - one of:
|
@pauldmccarthy - given that standard @effigies and @matthew-brett - this function is always executed when nibabel is imported, although it is in the testing folder. is that necessary or can that be avoided?
|
Avoid doing the ufunc / memmap test until we need it. Might fix nipygh-571.
How about #572 ? |
@pauldmccarthy - could you please check if @matthew-brett's PR branch fixes your py2app issue? |
Hey guys, That looks like it would do - thanks for the fast work! I can't test now unfortunately - it will have to wait until monday. @satra It would be nice for this sort of thing to be handled by Thanks! |
Managed to find 10 minutes free - can confirm that #572 solves the problem |
Thanks all for the very prompt work on this! |
👍 Thanks, @matthew-brett! Does this warrant a bug-fix release (2.2.1)? |
No objection from my side - @pauldmccarthy - do you need a new release with this? |
@effigies and @matthew-brett No, I don't need this to be officially released, but have no objections! |
Okay. Well, if nobody's clamoring for the release, then I think we can hold off. We were talking of another release in a couple weeks which can include these fixes, and (hopefully) image slicing. |
I'd very much appreciate a new release for this fix if possible. I can wait if a bigger release is just a week or so away. |
Hi @sxg, I think we can push out a bug fix release by next week at the latest. The other changes I was hoping to get in on a short time frame have been delayed by life. @matthew-brett Are you okay with releasing given the Windows issues for Py3.4 on AppVeyor, or is that something that needs resolving first? |
Chris - it turns out we can fix the Appveyor failures easily by dropping conda - https://ci.appveyor.com/project/matthew-brett/nibabel/build/1.0.1/job/imvybv1kbyud87dq I'll put a PR up tomorrow. |
Looks like the Appveyor fix is working - fine to release from my point of view. |
Hey guys,
Problem description
I've just discovered that
nibabel
2.2.0 is incompatible with bothpyinstaller
andpy2app
, projects for creating standalone (a.k.a. "frozen") python applications.Here is a stack trace from a frozen version of FSLeyes using
nibabel
2.2.0:Cause
This occurs because
nibabel.testing.np_features
is now imported when thenibabel
package is imported*. Thenibabel.testing.np_features._memmap_after_ufunc
function is called on import, and attempts to open the filenibabel/testing/np_features.py
. The catch is that this source file doesn't exist when the code is executed from a frozen application.Solutions
First of all, I'm not sure if this should be fixed within
nibabel
, or rather if it should be the responsibility ofpyinstaller
/py2app
to explicitly handlenibabel
(they have hooks for various other projects, e.g.matplotlib
,numpy
, etc).Having said that, it would be easy to fix within
nibabel
- here are a couple of ideas:numpy
version number)What do you think? I'm happy to start a PR if you think that this should be handled in
nibabel
.The text was updated successfully, but these errors were encountered: