Skip to content
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

AttributeError: module 'ctypes' has no attribute 'windll' error when running video_to_slomo.py on Ubuntu 18.04 #5

Closed
ybabs opened this issue Dec 31, 2018 · 2 comments

Comments

@ybabs
Copy link

ybabs commented Dec 31, 2018

Hi, I'm trying to run the video_to_slomo.py script on ubuntu and I get the following error:

Traceback (most recent call last):
  File "video_to_slomo.py", line 199, in <module>
    main()
  File "video_to_slomo.py", line 95, in main
    ctypes.windll.kernel32.SetFileAttributesW(extractionDir, FILE_ATTRIBUTE_HIDDEN)
AttributeError: module 'ctypes' has no attribute 'windll'

I try to run the script using the following command:

python video_to_slomo.py --ffmpeg /usr/bin/ffmpeg --video ~/Super-SloMo/sample.mp4 --sf 4 --checkpoint checkpoint.ckpt --fps 240 --output output.mp4
Any ideas? I'm running on Ubuntu 18.04

@ybabs
Copy link
Author

ybabs commented Dec 31, 2018

Commented out the line and seems to be working now

@ybabs ybabs closed this as completed Dec 31, 2018
avinashpaliwal pushed a commit that referenced this issue Jan 3, 2019
* Added case in setting hidden flag on tmp dir for non-Windows

* Added shebang and marked video_to_slomo.py as executable for UNIX-like OSes

Addresses issue #5
@wessyig
Copy link

wessyig commented May 12, 2020

hoE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants