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

"BundleError: No module named f" on Windows only #57

Open
uralbash opened this issue Sep 29, 2014 · 4 comments
Open

"BundleError: No module named f" on Windows only #57

uralbash opened this issue Sep 29, 2014 · 4 comments

Comments

@uralbash
Copy link

My traceback http://dumpz.org/1206696/
On this line https://github.com/sontek/pyramid_webassets/blob/master/pyramid_webassets/__init__.py#L108 pyramid_webassets try to split by ':' this path 'f:\itcase\sacrud\pyramid_sacrud\pyramid_sacrud\static\css_base.css' and set package as 'f'. Probably it's a bug.

@tilgovi
Copy link
Collaborator

tilgovi commented Oct 22, 2014

I'm not sure what to do about this. The challenge is that a lot of arguments in pyramid_webassets can be a file path or an asset specification. Since the asset specification syntax separates packages from relative paths with a : probably the thing to do is to fall through to trying the file path whenever the asset spec fails. Maybe that already happens and I'm just not catching an exception that's breaking it.

@tilgovi
Copy link
Collaborator

tilgovi commented Oct 22, 2014

Okay. I think we can probably just fall back in that function and try to resolve the file as a path. Do you want to try to write the patch and test it?

@uralbash
Copy link
Author

I observed this problem at one user. I do not have Windows, but if I have time I will try to reproduce it on VM

@diogo-paschoal
Copy link

Same problem here. Using pyramid . I had to change to windows susbystem for linux to make the project work.

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

3 participants