andycasey / smhr

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

Exception raised: [Errno 2] No such file or directory: '/Users/maudegull/.smh/tmp1xjDTu/64IOM0EKOG.EW_all.moog' #290

Closed maudegull closed 5 years ago

maudegull commented 6 years ago

An exception was encountered using version e94df1f* on Python 2.7.14 |Anaconda custom (x86_64)| (default, Mar 12 2018, 07:39:26) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]:

Traceback (most recent call last):

  File "/Users/maudegull/Desktop/UROP_FREBEL/smhr/smh/gui/ui_mainwindow.py", line 463, in save_session
    self.session.save(self.session_path, overwrite=True)

  File "/Users/maudegull/iCloud Drive (Archiv)/Desktop/UROP_FREBEL/smhr/smh/session.py", line 285, in save
    tarball.add(path, arcname=os.path.basename(path))

  File "/Users/maudegull/anaconda2/lib/python2.7/tarfile.py", line 2009, in add
    tarinfo = self.gettarinfo(name, arcname)

  File "/Users/maudegull/anaconda2/lib/python2.7/tarfile.py", line 1881, in gettarinfo
    statres = os.lstat(name)

OSError: [Errno 2] No such file or directory: '/Users/maudegull/.smh/tmp1xjDTu/64IOM0EKOG.EW_all.moog'

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

screenshot

Additional details on how this exception occurred: When trying to save file,

alexji commented 6 years ago

This is a bug I introduced when trying to keep track of the original line lists that were imported for backup purposes. In some cases it does not make the copy properly. However it does not affect functionality or the saving (the error is thrown after saving all other files). On Mon, Jul 2, 2018 at 6:04 AM mgull19 notifications@github.com wrote:

An exception was encountered using version e94df1f https://github.com/andycasey/smhr/commit/e94df1ff268fe4bf8de52768f3a1e05c1140bb16* on Python 2.7.14 |Anaconda custom (x86_64)| (default, Mar 12 2018, 07:39:26) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]:

Traceback (most recent call last):

File "/Users/maudegull/Desktop/UROP_FREBEL/smhr/smh/gui/ui_mainwindow.py", line 463, in save_session self.session.save(self.session_path, overwrite=True)

File "/Users/maudegull/iCloud Drive (Archiv)/Desktop/UROP_FREBEL/smhr/smh/session.py", line 285, in save tarball.add(path, arcname=os.path.basename(path))

File "/Users/maudegull/anaconda2/lib/python2.7/tarfile.py", line 2009, in add tarinfo = self.gettarinfo(name, arcname)

File "/Users/maudegull/anaconda2/lib/python2.7/tarfile.py", line 1881, in gettarinfo statres = os.lstat(name) OSError: [Errno 2] No such file or directory: '/Users/maudegull/.smh/tmp1xjDTu/64IOM0EKOG.EW_all.moog'

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

[image: screenshot] https://camo.githubusercontent.com/550a400fe6c108d8f7de47950cc68557faffd461/68747470733a2f2f7472616e736665722e73682f59614b77512f73637265656e73686f742e706e67

Additional details on how this exception occurred: When trying to save file,

— 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/290, or mute the thread https://github.com/notifications/unsubscribe-auth/AC8Ijgm9rwP-6GvJM_IiSsWJzIy7pIKPks5uCZvegaJpZM4U-p75 .

alexji commented 5 years ago

I think this was fixed in the most recent patch (see #307)