Comments (6)
I made a fresh clone and virtualenv installation and was not able to reproduce your issue:
git clone https://github.com/martinstein/pyramid_jinja_issue
cd pyramid_jinja_issue
mkvirtualenv pyramid_jinja_issue
pip install -e .
pserve development.ini
curl http://localhost:6543/works -I
HTTP/1.1 200 OK
Content-Length: 753
Content-Type: text/html; charset=UTF-8
Date: Thu, 09 Jul 2015 10:14:02 GMT
Server: waitress
curl http://localhost:6543/works2 -I
HTTP/1.1 200 OK
Content-Length: 753
Content-Type: text/html; charset=UTF-8
Date: Thu, 09 Jul 2015 10:14:09 GMT
Server: waitress
curl http://localhost:6543/broken -I
HTTP/1.1 200 OK
Content-Length: 753
Content-Type: text/html; charset=UTF-8
Date: Thu, 09 Jul 2015 10:14:14 GMT
Server: waitress
from pyramid_jinja2.
Just to make sure, I created another virtualenv, too, and I can still reproduce the issue. I get the error:
`OSError: [Errno 22] Invalid argument: 'PATH_TO_REPOSITORY\\pyramid_jinja_issue\\pyramid_jinja_issue\\templates\\pyramid_jinja_issue:email\\other_template.html
I'm running Python 3.4.3 on Windows 7. Perhaps this is Windows or Python3-specific. Which environment/Python are you on?
from pyramid_jinja2.
I just tried it with python2.7 and python3.4 in ubuntu trusty and both are working as expected
Your error looks like the part before the colon ":" is handled as Drive-Letter (I have not so deep Windows knowledge)
resp. the package name is not properly recognized...
I have no further idea for you, since I am not able to reproduce, but I suggest that you put a debugger somewhere
before the exception and inspect your case: expected vs. manifested
from pyramid_jinja2.
Thank you for your example. I can confirm it works on my 10.10 OSX machine as well. I will try to find some time to spin up a windows VM and give this a try as I suspect that is the issue.
from pyramid_jinja2.
This looks similar to #107.
from pyramid_jinja2.
Thank you for a simple http://sscce.org/!
I've reproduced the issue on Windows 7. Upgrading to latest pyramid_jinja2 shows the error has already been fixed (and I've found a test that covers exactly this case).
from pyramid_jinja2.
Related Issues (20)
- Bug in GETTEXT when loading templates dynamically HOT 2
- After including pyramid_jinja2, config.get_jinja2_environment() is still None HOT 1
- [Resolved]Log warnings while sphinx generate documentation HOT 3
- jinja2 exceptions propages to top - not caught by debug toolbar HOT 11
- release 2.6 HOT 3
- add test coverage for python 3.5 and pypy3, remove 3.2 HOT 2
- Impossible to set `jinja2.i18n.gettext` via configuration file HOT 7
- switch to py.test and pip HOT 3
- Typo in the default template in trans tag causes i18n to fail HOT 8
- convert scaffold to cookiecutter HOT 14
- add_jinja2_renderer `name` only works for default search path HOT 1
- globals cannot be set to strings HOT 1
- Can't list templates HOT 1
- ModuleNotFoundError: No module named 'pyramid_Jinja2' HOT 1
- Support for continue / break statements HOT 2
- add support for lstrip_blocks HOT 4
- Fix pypy version on Travis HOT 5
- What's the best way to add the current request object to Jinja's globals? HOT 3
- Requires Jinja2 3.0, but doesn't declare so HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyramid_jinja2.