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

Cant get this to work on MAC #1

Open
david101523 opened this issue Apr 7, 2024 · 1 comment
Open

Cant get this to work on MAC #1

david101523 opened this issue Apr 7, 2024 · 1 comment

Comments

@david101523
Copy link

Does not work on mac, really wanted this to work

@devfel
Copy link
Owner

devfel commented Jul 2, 2024

Hey David, thanks for the feedback,
I myself do not have a MAC to test it, but it should work.

Do you have any error message or info to share with us?

There could be several reasons why your code isn't working on a Mac. Here are some common issues and troubleshooting steps to consider:

Dependencies Installation:
Ensure that moviepy and its dependencies are installed correctly on the Mac. You can recommend installing them via pip:

pip install moviepy

Mac OS might require additional steps to install certain dependencies like FFmpeg, which moviepy uses. FFmpeg can be installed using Homebrew:

brew install ffmpeg

Path Issues:
The way paths are handled might differ slightly between Windows and macOS, especially if there are spaces or special characters in filenames or paths. Double-check the paths and filenames used in the script.

Permissions:
The script might be lacking permissions to read from or write to the specified directories. Make sure you are running the script with the necessary read/write permissions for ./input and ./output directories.

Python Environment:
If you're using Python environments (like virtualenv or conda), ensure that the environment is activated, and the required packages are installed within that environment on the Mac.


You could add logging or error handling around potential failure points in the script, such as file access operations and video processing steps. This could provide more info when running the script on Mac. It should be something like this:

import logging

logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')


try:
    # CODE
    mp3_to_mp4_folder("test-placeholder.jpg")
except Exception as e:
    logging.error("Failed to process video", exc_info=True)

@devfel devfel changed the title Cant get this to work Cant get this to work on MAC Jul 2, 2024
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