-
Notifications
You must be signed in to change notification settings - Fork 15
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
The script doesn't work... #8
Comments
Hey there! Thanks for your interest. I'm away at the moment but I'll take a look as soon as I get back. I know it's working so there may be a small little step that's missing. The line you deleted creates a cue file path object based on the input mp3 file's path. Are you passing the absolute path to the mp3 file by chance? If you could, send me your entire command line input and I'll look it over! |
Looking at it again, there may indeed be a bug. The validation function should covert it to the proper type before it hits that block of code, but it appears to be empty when you hit that portion. I'll look at it right now. Out of curiosity, did you use the |
Hey! This is the code from Windows command line: C:\Users\User\Downloads\Chapterize-Audiobooks-main>chapterize_ab.py -h ─────────────────────────────────────────────────── Starting script ──────────────────────────────────────────────────── Preparing chapterfying magic ⚡... Traceback (most recent call last): I didn't use the thanks for your help! |
I did some testing and I was unable to reproduce the error you are receiving. I have a questions about your configuration that might help solve the problem.
Generally you'd prefix |
thanks again! |
Sorry, things got a bit busy on my end! This is very strange indeed. Installing all of the packages from requirements.txt should do the trick. Let me download the current version and run it myself - I've made a lot of changes in preparation for a new release coming soon and perhaps I inadvertently fixed something I didn't realize was broken. Just to clarify though, you're running it like so: PS > python .\chapterize_ab.py -h That's pretty much the lock stock way of running python scripts on Windows. Unless you've set some kind of alias, prefixing with As another follow up, where are your python packages installed? Another thing that might be causing issues is the namespace. Most of the time this isn't an issue, but python provides an environment variable called PS > $env:PYTHONPATH = "C:\Users\<user>\Downloads\Chapterize-Audiobooks\" That will ensure python is properly considering the project directory as a search path. Lastly, ensure your Python distribution is added to the system PATH. Depending on how you installed python, it should be something like I'll report back my findings here shortly and let you know if I'm seeing any issues with the current code in |
I'm sorry for the delay too. The second thing you said works! I typed "$env:PYTHONPATH = "C:\Users<user>\Downloads\Chapterize-Audiobooks"" in Windows PowerShell and the script started running. Waiting to see the results, It seems to be taking a while... |
Thanks a lot! |
No worries! That has bitten me in the past, too, unfortunately Anyways, glad to hear it is working. I'm going to close this for now, feel free to reach out again if you run into troubles. I have many new updates coming that address some weird audiobook chapter formats, so stay tuned (just need the time to complete testing). |
I found your script and I really liked the idea. But I tried to run it and I get stuck all the time!
At first I got the following error:
File "C:\FFOutput\Chapterize-Audiobooks-0.6.0\chapterize_ab.py", line 316, in parse_args
args.audiobook.with_suffix('.cue').exists()
AttributeError: 'NoneType' object has no attribute 'with_suffix'
So I went to line 316 and deleted the
or args.audiobook.with_suffix('.cue').exists()
Now the script started working. And I got the message:
ERROR: The script only works with .mp3 files (for now)
I tried different lines and got the same error:
I tried at first from the Windows command line, and then also from IDLE (3.11), but without success.
I tried to run older versions of your script, and I got the first error in version 0.5 as well, and the second error in all your versions...
Would appreciate help.
post Scriptum. I don't understand Python that much, so it is not unreasonable that I skipped a step that is obvious to you, simply due to lack of knowledge.
The text was updated successfully, but these errors were encountered: