Hello,
I am trying to open my project folder. However, I get an error message that says: Error loading project: ‘NoneType’ object has no attribute ‘repositories’.
In the terminal I have the following:
==> Loading CCPN project “/Users/bri/Documenti/PhD_Koln/nmr/nmr/20221026_Ave1_effect_15N_TRACT_64.ccpn”
INFO : Closing /var/folders/91/l3_71nm91wd89pz0y6ftqqk00000gn/T/CcpnProject_v36eq257.ccpn/default (Project.close:252)
Error loading file for: <memops.Implementation.MemopsRoot id:140517890992736>
Reading: <_io.TextIOWrapper name=’/Users/bri/Documenti/PhD_Koln/nmr/nmr/20221026_Ave1_effect_15N_TRACT_64.ccpn/ccpnv3/memops/Implementation/20221026_Ave1_effect_15N_TRACT_64.xml’ mode=‘r’ encoding=‘UTF-8’>
Last xml tag read: IMPL.MemopsRoot
Parser state was: reading
Current object was: <memops.Implementation.MemopsRoot id:140517890992736>
Error loading file for: <memops.Implementation.MemopsRoot id:140517891316944>
Reading: <_io.TextIOWrapper name=’/Users/bri/Documenti/PhD_Koln/nmr/nmr/20221026_Ave1_effect_15N_TRACT_64.ccpn/ccpnv3/memops/Implementation/20221026_Ave1_effect_15N_TRACT_64.xml’ mode=‘r’ encoding=‘UTF-8’>
Last xml tag read: IMPL.MemopsRoot
Parser state was: reading
Current object was: <memops.Implementation.MemopsRoot id:140517891316944>
Traceback (most recent call last):
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/framework/Framework.py”, line 1515, in loadProject
with open(_path / CCPN_STATE_DIRECTORY / ccpnVersionHistory, ‘r’) as fp:
FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/bri/Documenti/PhD_Koln/nmr/nmr/20221026_Ave1_effect_15N_TRACT_64.ccpn/state/versionHistory.json’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/ui/gui/lib/GuiMainWindow.py”, line 520, in _loadProjectSingleTry
project = self.application.loadProject(projectDir)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/framework/Framework.py”, line 1522, in loadProject
project = coreIo.loadProject(path, useFileLogger=self.useFileLogger, level=self.level)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/core/_implementation/Io.py”, line 41, in loadProject
project = _loadNmrProject(path, useFileLogger=useFileLogger)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/core/_implementation/Io.py”, line 77, in _loadNmrProject
apiProject = apiIo.loadProject(path, useFileLogger=useFileLogger)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpnmodel/ccpncore/lib/Io/Api.py”, line 295, in loadProject
project = XmlIO.loadProject(path, projectName, partialLoad=True)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpnmodel/ccpncore/memops/format/xml/XmlIO.py”, line 201, in loadProject
return loadProjectFile(filePath, partialLoad=partialLoad)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpnmodel/ccpncore/memops/format/xml/XmlIO.py”, line 217, in loadProjectFile
for repository in project.packageLocator.repositories:
AttributeError: ‘NoneType’ object has no attribute ‘repositories’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/ui/gui/widgets/Action.py”, line 79, in
self.triggered.connect(lambda checked, *args, **kwds: callback(*args, **kwds))
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/ui/gui/lib/GuiMainWindow.py”, line 624, in loadProject
project = self._loadProjectLastValid(projectDir)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/ui/gui/lib/GuiMainWindow.py”, line 569, in _loadProjectLastValid
project = self._loadProjectSingleTry(projectDir)
File “/Applications/CcpNmrLauncher.app/Contents/Resources/ccpnmrV3/src/python/ccpn/ui/gui/lib/GuiMainWindow.py”, line 559, in _loadProjectSingleTry
raise ValueError(“Error loading project: %s” % str(es))
ValueError: Error loading project: ‘NoneType’ object has no attribute ‘repositories’
Is there any way to open the project again? Or do you know what might have caused the issue?
Thank you in advance! :)