andycasey / smhr

Spectroscopy Made Hard(er)
14 stars 7 forks source link

Exception raised: cannot import name wraps #297

Closed maddiecain closed 6 years ago

maddiecain commented 6 years ago

An exception was encountered using version 4f7f523 on Python 2.7.14 (default, Sep 25 2017, 09:53:17) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]:

Traceback (most recent call last):

  File "/Users/levkendrick/smhr/smh/gui/ui_mainwindow.py", line 369, in open_session
    self.session = smh.Session.load(path)

  File "/Users/levkendrick/smhr/smh/session.py", line 372, in load
    metadata = pickle.load(fp)

  File "/usr/local/lib/python2.7/site-packages/astropy/table/column.py", line 27, in <module>
    from ..utils.metadata import MetaData

  File "/usr/local/lib/python2.7/site-packages/astropy/utils/metadata.py", line 8, in <module>
    from ..utils import wraps

ImportError: cannot import name wraps

Below is a screenshot from the application at the time that the exception occurred:

screenshot

Additional details on how this exception occurred:

maddiecain commented 6 years ago

If it helps, this is the terminal printout when I load up SMH RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

If you suspect this is an IPython bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via: %config Application.verbose_crash=True

'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' objc[4437]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff991b5c90) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x11e4facd8). One of the two will be used. Which one is undefined.

alexji commented 6 years ago

What is your version of astropy? I currently have 2.0.2.

Another thing is make sure that astropy, numpy, etc are installed with anaconda; it looks like there may be a version mismatch.

On Wed, Aug 8, 2018 at 8:13 PM maddiecain notifications@github.com wrote:

If it helps, this is the terminal printout when I load up SMH RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

If you suspect this is an IPython bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via: %config Application.verbose_crash=True

'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' objc[4437]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff991b5c90) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x11e4facd8). One of the two will be used. Which one is undefined.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andycasey/smhr/issues/297#issuecomment-411622777, or mute the thread https://github.com/notifications/unsubscribe-auth/AC8IjmzWAbQEzjshsSYmNZZfImCf6W5Hks5uO6i8gaJpZM4V09JC .

maddiecain commented 6 years ago

2.0.1

On Thu, Aug 9, 2018 at 2:49 PM, Alex Ji notifications@github.com wrote:

What is your version of astropy? I currently have 2.0.2.

Another thing is make sure that astropy, numpy, etc are installed with anaconda; it looks like there may be a version mismatch.

On Wed, Aug 8, 2018 at 8:13 PM maddiecain notifications@github.com wrote:

If it helps, this is the terminal printout when I load up SMH RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

If you suspect this is an IPython bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via: %config Application.verbose_crash=True

'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' 'NoneType' object has no attribute 'metadata' objc[4437]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit. framework/Versions/A/FinderKit (0x7fff991b5c90) and /System/Library/PrivateFrameworks/FileProvider.framework/ OverrideBundles/FinderSyncCollaborationFilePro viderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFilePro viderOverride (0x11e4facd8). One of the two will be used. Which one is undefined.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andycasey/smhr/issues/297#issuecomment-411622777, or mute the thread https://github.com/notifications/unsubscribe-auth/ AC8IjmzWAbQEzjshsSYmNZZfImCf6W5Hks5uO6i8gaJpZM4V09JC .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andycasey/smhr/issues/297#issuecomment-411859126, or mute the thread https://github.com/notifications/unsubscribe-auth/ANFZ_Zlxc4DFZgMh_weuFg9CozNi8jWaks5uPIQwgaJpZM4V09JC .

alexji commented 6 years ago

Have not heard any more problems so closing