miracle2k / webassets

Asset management for Python web development.
BSD 2-Clause "Simplified" License
924 stars 260 forks source link

Fail when packing an external resource #512

Closed golyalpha closed 4 years ago

golyalpha commented 6 years ago

When trying to pack an external resource (i.e., resource not hosted on the same file system), webassets tries to cope, but eventually fails with: TypeError: sequence item 0: expected str instance, bytes found

Full traceback of the issue can be found here

DavidLemayian commented 5 years ago

Experienced this same issue. Thank you so much @golyalpha for pointing out! Was about to pull my hair out.

Workaround for anyone who come across the same issue: download the file to a local directory.

To note: remote file downloads seems to have used to work before but doesn't in latest 0.12.1 version. 🤔

golyalpha commented 5 years ago

@DavidLemayian Do you know what release were they working on?

louking commented 4 years ago

This seems to be working ok in release 2.0. I was using 0.12.1, had the problem, then found this issue when searching for the solution. I upgraded, then all seemed fine.

golyalpha commented 4 years ago

@louking Alright, thanks for the info, I'll close, and reopen if it fails for some reason.