Comments (5)
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.
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.
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.
I removed those links from the website, hopefully it's a little clearer now.
from mod_python.
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)
- segfault when releasing a thread HOT 16
- Prefer checking .so over the Python version HOT 3
- Linux packages HOT 2
- Tests failing on Red Hat Linux HOT 1
- configure - flex version test needs to be modified.
- Fatal Python error: PyEval_RestoreThread: NULL tstate HOT 2
- Python 3.10 detected as 3.1 HOT 1
- Still live? HOT 3
- Segfault when porting to python 3.10 HOT 2
- detect python version failed HOT 2
- parse_qsl problems HOT 1
- How to configure the Python interpreter path? HOT 4
- UTF-8 characters in page sources no longer supported under Python 3 HOT 1
- Mod Python causing segmentation faults when compiled with Python3.9 HOT 2
- new release? HOT 2
- Regarding Releasing mod_python HOT 1
- indentation format should be configurable (or default to 4 spaces) HOT 3
- cgi escape will not import HOT 5
- ImportError: Import by filename is not supported.
- Website link outdated HOT 1
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 mod_python.