-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
web: Use Unicode paths to send files on Windows under Python 2 #2592
Comments
Hi! Thanks for reporting this, and for investigating the problem. Since you're on Windows, it does makes sense that Flask might want Unicode paths. Here's one other thing to try: can you try changing that argument to use util.syspath(item.path), Another alternative would be to try running beets under Python 3.6 instead of 2.7—I think this might "just work" in that setting. |
Hi sampsyo, thank you for quick reply and solution! beets version 1.4.4 I can confirm following works:
Upgrading python definitely is something to consider .. eventually maybe ;) |
Thanks! That's helpful to know. I think the solution is to use syspath on Windows and py3_path on other platforms. This should be a straightforward fix—a pull request would be very helpful if you have a chance! |
fix beetbox/issues/2592: web: Use Unicode paths to send files on Windows und…
Hi,
beets version 1.4.3
Python version 2.7.11
plugins: web
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Following flask error was encountered when calling item/file method for non-ascii items:
https://github.com/beetbox/beets/blob/master/beetsplug/web/__init__.py
Unicode path fixes it for me:
The text was updated successfully, but these errors were encountered: