-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operation not supported: 'results/v1.avi_frame_0.jpg' -> 'temp_link/v1.avi_frame_0.jpg' #1
Comments
What OS are you using? I guess this code is only tested on linux/unix
…On Thu, 6 Aug 2020 at 18:05, Shreshth Saxena ***@***.***> wrote:
- easyimages version: 1.5
- Python version: 3.6
- Operating System: NA (Colab Notebook)
Description
while trying to explore images in folder "results" using:
L = EasyImageList.from_folder("results")
L.symlink_images()
got error:
What I Did
OSError Traceback (most recent call last)
<ipython-input-109-43b03d11ef71> in <module>()
2
3 L = EasyImageList.from_folder("results")
----> 4 L.symlink_images()
5 L.html(sample = 500, size = 44)
/usr/local/lib/python3.6/dist-packages/easyimages/easyimages.py in symlink_images(self, base_path)
303
304 for target, dest in zip(targets, destination):
--> 305 os.symlink(target, dest)
306
307 for i, d in zip(self.images, destination):
OSError: [Errno 95] Operation not supported: 'results/v1.avi_frame_0.jpg' -> 'temp_link/v1.avi_frame_0.jpg'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTZGENBRM2NKL2GALCBPODR7LIF7ANCNFSM4PWXU43A>
.
|
Ah now i see its a collab notebook. I will check if i can make it run there
- actually not sure why it does not.
Btw the symlink part is only needed when your data is not down-path of the
dir where your notebook was started. So you can always symlink (or move the
images) on your own.
…On Thu, 6 Aug 2020 at 22:45, Jakub Cieslik ***@***.***> wrote:
What OS are you using? I guess this code is only tested on linux/unix
On Thu, 6 Aug 2020 at 18:05, Shreshth Saxena ***@***.***>
wrote:
>
> - easyimages version: 1.5
> - Python version: 3.6
> - Operating System: NA (Colab Notebook)
>
> Description
>
> while trying to explore images in folder "results" using:
> L = EasyImageList.from_folder("results")
> L.symlink_images()
>
> got error:
> What I Did
>
> OSError Traceback (most recent call last)
> <ipython-input-109-43b03d11ef71> in <module>()
> 2
> 3 L = EasyImageList.from_folder("results")
> ----> 4 L.symlink_images()
> 5 L.html(sample = 500, size = 44)
>
> /usr/local/lib/python3.6/dist-packages/easyimages/easyimages.py in symlink_images(self, base_path)
> 303
> 304 for target, dest in zip(targets, destination):
> --> 305 os.symlink(target, dest)
> 306
> 307 for i, d in zip(self.images, destination):
>
> OSError: [Errno 95] Operation not supported: 'results/v1.avi_frame_0.jpg' -> 'temp_link/v1.avi_frame_0.jpg'
>
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#1>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABTZGENBRM2NKL2GALCBPODR7LIF7ANCNFSM4PWXU43A>
> .
>
|
"Btw the symlink part is only needed when your data is not down-path of the can you please explain that? |
So how this works is that it will use html and host images directly from
the filesystem (thats why its really fast)
But for this to work the data has to be accessible by jupyter server and
that's only possible if data is downstream:
so for instance:
Your notebook is started in /home/myfolder
and your image folder is /home/myfolder/mydata:
You can do .from_folder(mydata).html() and it will work.
But if your data is lets say in /mydata you need to symlink your data from
/mydata -> /home/myfolder/symlinked_data
…On Fri, 7 Aug 2020 at 11:33, Shreshth Saxena ***@***.***> wrote:
"Btw the symlink part is only needed when your data is not down-path of the
dir where your notebook was started. So you can always symlink (or move the
images) on your own."
can you please explain that?
The images are inside a folder called "results" that is in my pwd/current
directory
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTZGEOGNCUNCLC5BKVR4FTR7PC6VANCNFSM4PWXU43A>
.
|
Ok i just tested in colab, but unfortunate this will not work in colab
notebooks. Colab is adding additional security measures and does not allow
hosting directly.
…On Fri, 7 Aug 2020 at 11:39, Jakub Cieslik ***@***.***> wrote:
So how this works is that it will use html and host images directly from
the filesystem (thats why its really fast)
But for this to work the data has to be accessible by jupyter server and
that's only possible if data is downstream:
so for instance:
Your notebook is started in /home/myfolder
and your image folder is /home/myfolder/mydata:
You can do .from_folder(mydata).html() and it will work.
But if your data is lets say in /mydata you need to symlink your data from
/mydata -> /home/myfolder/symlinked_data
On Fri, 7 Aug 2020 at 11:33, Shreshth Saxena ***@***.***>
wrote:
> "Btw the symlink part is only needed when your data is not down-path of
> the
> dir where your notebook was started. So you can always symlink (or move
> the
> images) on your own."
>
> can you please explain that?
> The images are inside a folder called "results" that is in my pwd/current
> directory
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABTZGEOGNCUNCLC5BKVR4FTR7PC6VANCNFSM4PWXU43A>
> .
>
|
yeah I thought so. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
while trying to explore images in folder "results" using:
L = EasyImageList.from_folder("results")
L.symlink_images()
got error:
What I Did
The text was updated successfully, but these errors were encountered: