PermissionError Traceback (most recent call last)
Cell In[2], line 7
4 local_execution = False
5 date_template = "" # strftime format, used to build the dataset from scratch (ignore if the dataset is already built)
----> 7 dataset = Spectrogram(dataset_path =Path(path_osmose_dataset, dataset_name), sr_analysis=sr_analysis, owner_group="gosmose", local=local_execution)
9 print(dataset)
File /home/datawork-osmose/osmose_package_dev/src/OSmOSE/Spectrogram.py:91, in Spectrogram.init(self, dataset_path, sr_analysis, gps_coordinates, owner_group, analysis_params, batch_number, local)
30 def init(
31 self,
32 dataset_path: str,
(...)
39 local: bool = False,
40 ) -> None:
41 """Instanciates a spectrogram object.
42
43 The characteristics of the dataset are essential to input for the generation of the spectrograms. There is three ways to input them:
(...)
89 alone. The default is False.
90 """
---> 91 super().init(
92 dataset_path=dataset_path,
93 gps_coordinates=gps_coordinates,
94 owner_group=owner_group,
95 )
97 self.__local = local
99 processed_path = self.path.joinpath(OSMOSE_PATH.spectrogram)
File /home/datawork-osmose/osmose_package_dev/src/OSmOSE/Dataset.py:67, in Dataset.init(self, dataset_path, gps_coordinates, owner_group, original_folder)
65 self.__path = Path(dataset_path)
66 self.name = self.path.stem
---> 67 self.owner_group = owner_group
68 self.__gps_coordinates = []
69 if gps_coordinates is not None:
File /home/datawork-osmose/osmose_package_dev/src/OSmOSE/Dataset.py:186, in Dataset.owner_group(self, value)
184 try:
185 gid = grp.getgrnam(value).gr_gid
--> 186 os.setegid(gid)
187 except KeyError as e:
188 raise KeyError(
189 f"The group {value} does not exist on the system. Full error trace: {e}"
190 )
PermissionError: [Errno 1] Operation not permitted
PermissionError Traceback (most recent call last) Cell In[2], line 7 4 local_execution = False 5 date_template = "" # strftime format, used to build the dataset from scratch (ignore if the dataset is already built) ----> 7 dataset = Spectrogram(dataset_path =Path(path_osmose_dataset, dataset_name), sr_analysis=sr_analysis, owner_group="gosmose", local=local_execution) 9 print(dataset)
File /home/datawork-osmose/osmose_package_dev/src/OSmOSE/Spectrogram.py:91, in Spectrogram.init(self, dataset_path, sr_analysis, gps_coordinates, owner_group, analysis_params, batch_number, local) 30 def init( 31 self, 32 dataset_path: str, (...) 39 local: bool = False, 40 ) -> None: 41 """Instanciates a spectrogram object. 42 43 The characteristics of the dataset are essential to input for the generation of the spectrograms. There is three ways to input them: (...) 89 alone. The default is False. 90 """ ---> 91 super().init( 92 dataset_path=dataset_path, 93 gps_coordinates=gps_coordinates, 94 owner_group=owner_group, 95 ) 97 self.__local = local 99 processed_path = self.path.joinpath(OSMOSE_PATH.spectrogram)
File /home/datawork-osmose/osmose_package_dev/src/OSmOSE/Dataset.py:67, in Dataset.init(self, dataset_path, gps_coordinates, owner_group, original_folder) 65 self.__path = Path(dataset_path) 66 self.name = self.path.stem ---> 67 self.owner_group = owner_group 68 self.__gps_coordinates = [] 69 if gps_coordinates is not None:
File /home/datawork-osmose/osmose_package_dev/src/OSmOSE/Dataset.py:186, in Dataset.owner_group(self, value) 184 try: 185 gid = grp.getgrnam(value).gr_gid --> 186 os.setegid(gid) 187 except KeyError as e: 188 raise KeyError( 189 f"The group {value} does not exist on the system. Full error trace: {e}" 190 )
PermissionError: [Errno 1] Operation not permitted