Giter Site home page Giter Site logo

Comments (6)

diefans avatar diefans commented on June 12, 2024

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.

martinstein avatar martinstein commented on June 12, 2024

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.

diefans avatar diefans commented on June 12, 2024

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.

mmerickel avatar mmerickel commented on June 12, 2024

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.

mmerickel avatar mmerickel commented on June 12, 2024

This looks similar to #107.

from pyramid_jinja2.

domenkozar avatar domenkozar commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.