Coder Social home page Coder Social logo

Comments (4)

grisha avatar grisha commented on August 19, 2024

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.

jonathanjdavis avatar jonathanjdavis commented on August 19, 2024

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.

grisha avatar grisha commented on August 19, 2024

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.

grisha avatar grisha commented on August 19, 2024

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)

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.