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

[WINDOWS] TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' #2

Open
onidius opened this issue Nov 17, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@onidius
Copy link

onidius commented Nov 17, 2023

Hi,
I have just attempted to use this script to run against my library.

I downloaded the 'master' .zip file, extracted it and move ibroadcast-uploader.py to my music directory.

I am on Windows 11 and I installed Python 3.12
I open PowerShell with regular permissions and run the below line.
python ibroadcast-uploader.py "login_token"

It then proceeds to build the file list and give me the option to list 'L' or upload 'U'
When I select 'L' it lists all the files and asks me to upload 'U'
When I type 'U' the below is printed
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

If you need more information please let me know, and I hope I am asking in the right area.

@deseven
Copy link
Owner

deseven commented Nov 17, 2023

Hi. Never tested it on WIndows before :)
Is that everything that is being printed? Maybe there's also some information about the line of code that triggers this error?

@deseven deseven added the bug Something isn't working label Nov 17, 2023
@onidius
Copy link
Author

onidius commented Nov 18, 2023

The below is all I see

PS Z:\musicdir> python ibroadcast-uploader.py "token"
Building file list...
Found 120642 files.  Press 'L' to list, or 'U' to start the upload.
--> U

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
PS Z:\musicdir>

So have you run it on Linux? I could try spooling up a VM, Ubuntu or Debian, and give it a test.
Will do that and post results

Thank you for your time with this, not that knowledgeable with coding :)

@onidius
Copy link
Author

onidius commented Nov 19, 2023

Ran up a Debian 11 VM
Was able to run the script perfectly well

I will keep in mind to run it on Debian next time and steer clear of Windows for this purpose

One other thing, it seems one of my directories had ".flac" at the end and it closed with an error. Once I fixed the directory name it ran perfectly well.

Thank you so much for your time

@onidius onidius closed this as completed Nov 19, 2023
@deseven deseven changed the title TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' [WINDOWS] TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' Nov 23, 2023
@deseven
Copy link
Owner

deseven commented Nov 23, 2023

Glad that you figured it out! However, I'm willing to try to make it work on Windows as well, so I'm reopening it.

@deseven deseven reopened this Nov 23, 2023
@onidius
Copy link
Author

onidius commented Nov 24, 2023

Not a problem, happy to help with testing if you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants