Notebooks to upload/download marine footage, connect to a citizen science project, train machine learning models and publish marine biological observations.
A clear and concise description of what the bug is.
To Reproduce (REQUIRED)
Input:
# Save the name of the project
project = p_utils.find_project(project_name=project_name.value)
# Initiate pp
pp = ProjectProcessor(project)
Output:
FileNotFoundError Traceback (most recent call last)
File /usr/lib/python3.8/pathlib.py:1288, in Path.mkdir(self, mode, parents, exist_ok)
1287 try:
-> 1288 self._accessor.mkdir(self, mode)
1289 except FileNotFoundError:
FileNotFoundError: [Errno 2] No such file or directory: 'E:/SpyFish/BOPRC sites'
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
File /usr/lib/python3.8/pathlib.py:1288, in Path.mkdir(self, mode, parents, exist_ok)
1287 try:
-> 1288 self._accessor.mkdir(self, mode)
1289 except FileNotFoundError:
FileNotFoundError: [Errno 2] No such file or directory: 'E:/SpyFish'
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
Cell In[79], line 5
2 project = p_utils.find_project(project_name=project_name.value)
4 # Initiate pp
----> 5 pp = ProjectProcessor(project)
File /usr/src/app/kso/kso_utils/kso_utils/project.py:64, in ProjectProcessor.__init__(self, project)
61 self.connect_to_server()
63 # Map initial csv files
---> 64 self.map_init_csv()
66 # Create empty db and populate with local csv files data
67 self.setup_db()
File /usr/src/app/kso/kso_utils/kso_utils/project.py:107, in ProjectProcessor.map_init_csv(self)
105 # Create the folder to store the csv files if not exist
106 if not os.path.exists(self.project.csv_folder):
--> 107 Path(self.project.csv_folder).mkdir(parents=True, exist_ok=True)
108 # Recursively add permissions to folders created
109 [
110 os.chmod(root, 0o777)
111 for root, dirs, files in os.walk(self.project.csv_folder)
112 ]
File /usr/lib/python3.8/pathlib.py:1292, in Path.mkdir(self, mode, parents, exist_ok)
1290 if not parents or self.parent == self:
1291 raise
-> 1292 self.parent.mkdir(parents=True, exist_ok=True)
1293 self.mkdir(mode, parents=False, exist_ok=exist_ok)
1294 except OSError:
1295 # Cannot rely on checking for EEXIST, since the operating system
1296 # could give priority to other errors like EACCES or EROFS
File /usr/lib/python3.8/pathlib.py:1292, in Path.mkdir(self, mode, parents, exist_ok)
1290 if not parents or self.parent == self:
1291 raise
-> 1292 self.parent.mkdir(parents=True, exist_ok=True)
1293 self.mkdir(mode, parents=False, exist_ok=exist_ok)
1294 except OSError:
1295 # Cannot rely on checking for EEXIST, since the operating system
1296 # could give priority to other errors like EACCES or EROFS
File /usr/lib/python3.8/pathlib.py:1288, in Path.mkdir(self, mode, parents, exist_ok)
1286 self._raise_closed()
1287 try:
-> 1288 self._accessor.mkdir(self, mode)
1289 except FileNotFoundError:
1290 if not parents or self.parent == self:
OSError: [Errno 38] Function not implemented: 'E:'
Expected behavior
Environment
If applicable, add screenshots to help explain your problem.
🐛 Bug
A clear and concise description of what the bug is.
To Reproduce (REQUIRED)
Input:
Output:
Expected behavior
Environment
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.