Coder Social home page Coder Social logo

Comments (5)

tek0011 avatar tek0011 commented on August 19, 2024

Alright, magic must be on my side. I was able to get it to compile after making all the changes here:
#20 (comment)
Then deleting version.c so it would repopulate from the other includes.

I know the project isnt active, but sure would be nice to have these changes.
Must not have too much magic on my side yet though, since now I am running into:

[Fri Jan 05 08:21:09.016421 2018] [:error] [pid 21275] [client 100.91.160.19:54497] PythonHandler mod_python.psp: Traceback (most recent call last):
[Fri Jan 05 08:21:09.016433 2018] [:error] [pid 21275] [client 100.91.160.19:54497] PythonHandler mod_python.psp:   File "/usr/lib64/python2.7/site-packages/mod_python/apache.py", line 398, in HandlerDispatch\n    result = obj(req)
[Fri Jan 05 08:21:09.016437 2018] [:error] [pid 21275] [client 100.91.160.19:54497] PythonHandler mod_python.psp:   File "/usr/lib64/python2.7/site-packages/mod_python/psp.py", line 351, in handler\n    p.run()
[Fri Jan 05 08:21:09.016440 2018] [:error] [pid 21275] [client 100.91.160.19:54497] PythonHandler mod_python.psp:   File "/usr/lib64/python2.7/site-packages/mod_python/psp.py", line 271, in run\n    raise et(ev).with_traceback(etb)
[Fri Jan 05 08:21:09.016442 2018] [:error] [pid 21275] [client 100.91.160.19:54497] PythonHandler mod_python.psp: AttributeError: 'exceptions.ImportError' object has no attribute 'with_traceback'

Which is where I was at on Tuesday. Come full circle :) Any idea what this errors means? I fought it for quite some time a few days ago. Eventually gave up, but looks like I need to get past it.

from mod_python.

grisha avatar grisha commented on August 19, 2024

How are you getting the code that you're compiling? There is a note on the website:

Mod_python is going to be maintained on Github from here on. There is no plan for additional releases, the latest code is the master branch, which will be kept as stable as possible.

The above is meant to imply that the code should be obtained via git clone https://github.com/grisha/mod_python from here on. You'll get the master branch which already has the above fix.

Regarding the second question - it's probably just an import error because it mentions `exceptions.ImportError` which in turn means that whatever it is you're trying to run isn't found in PythonPath. You should double-check your configuration and the URL you're hitting, etc.

from mod_python.

tek0011 avatar tek0011 commented on August 19, 2024

Huh. I suppose that could be a big issue.. I was just doing what I've done in the past:

http://dist.modpython.org/dist/

Eyes naturally go immediately to the download.

Let me try to recompile from latest master branch. Perhaps that will fix the second issue as well.

from mod_python.

grisha avatar grisha commented on August 19, 2024

I removed those links from the website, hopefully it's a little clearer now.

from mod_python.

tek0011 avatar tek0011 commented on August 19, 2024

Thats all it was :) The new master version ended up fixing both issues. I just looked at the site and I think that is a huge improvement. Immediately my eyes look for a download, when I dont see it, time to start reading everywhere. The site wasnt the only confusion really. On various how-to's they say go to modpython.org and download the latest, so you click on the link and naturally just move on to download.

Thats my fault for not stopping to read first! Sorry.

Anyhow, thanks for your help. Using the latest master and recompiling fixed both the original compiler issues and python import issues.

from mod_python.

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.