Unable to open files with python, but filesystem shows files exist

snoeprol
New Contributor II

Dear community,

I have the following problem:

%fs mv '/FileStore/Tree_point_classification-1.dlpk'  '/dbfs/mnt/group22/Tree_point_classification-1.dlpk'

I have uploaded a file of a ML-model and have transferred it to the directory with

When I now check for the file I get:

%fs ls '/dbfs/mnt/group22/'
 
path	name	size
dbfs:/dbfs/mnt/group22/1_2_with_color.las	1_2_with_color.las	36439
dbfs:/dbfs/mnt/group22/Tree_point_classification-1.dlpk	Tree_point_classification-1.dlpk	14517532
dbfs:/dbfs/mnt/group22/out.laz	out.laz	39092572

Meaning the file is there. But now whenever I try

with open('/dbfs/mnt/group22/Tree_point_classification-1.dlpk') as f:
                  pass

it gives me a FileNotFoundException. Why can the filesystem access the file but my Python interpreter can not?

Thanks in advance