Comments (4)
Thanks @notdavis, very useful info! How did you get your Python 3.3 - compile manually, install the package from python.org? I'd like to be able to recreate this locally. Also, which specific git revision of mod_python do you have?
from mod_python.
I downloaded python-3.3.2-macosx10.6.dmg from http://www.python.org/download/ and ran the Python.mpkg, then added "/Library/Frameworks/Python.framework/Versions/3.3/bin" to my PATH in my .profile
For mod_python I downloaded the 3.5.x branch as a zip
I've also installed the python 3 PIP which I used to install SQLalchemy with Python 3 support
from mod_python.
I've had no luck getting it to work on 10.9 (Mavericks) with Python .dmg downloaded from python.org, nor did homebrew version work for me. I did get it to work by downloading Python-3.3.3rc1 source tgz and configuring it with (you may need to adjust paths to your set up):
./configure --prefix=/Users/grisha/src/mod_python/install_p3 --enable-ipv6 \
--datarootdir=/Users/grisha/src/mod_python/install_p3/share \
--datadir=/Users/grisha/src/mod_python/install_p3/share \
--enable-framework=/Users/grisha/src/mod_python/install_p3/Frameworks \
--without-gcc \
MACOSX_DEPLOYMENT_TARGET=10.9
The configure options were borrowed from the way homebrew did it, the key difference here I think is that it's 3.3.3rc1, not 3.3.2. I'd try the homebrew install first, especially if you're still on 10.8 (mountain lion).
Then of course mod_python itself will need a --with-python=/Users/grisha/src/mod_python/install_p3/bin/python3
argument to configure.
from mod_python.
Closing this as it seems like the problem is not with mod_python itself, but Python 3.3 on OSX and its intricacies, and we do have a working solution in the comments.
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
- Segfaults when compiled against python 3.11 HOT 1
- Not able to compile mod_python with Python3.11
- Please do a new release for Python 3.11 compat HOT 9
- Python 3.12 failed because imp was removed. HOT 14
- Broken compatibility with Python 2.7
- unable to compile mod_python due to "apxs:Error: Command failed with rc=9240576" during make command HOT 5
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.