getting Started with Pinax

165 views
Skip to first unread message

miquael

unread,
Jun 7, 2011, 12:56:15 AM6/7/11
to Pinax Users
Okay, so I'm new to Pinax, and have some questions to get it up and
running.

First off, I'm following the installation instructions here for
version 0.7: http://pinaxproject.com/docs/0.7/install/

I just read about the newer "fast start" version, and wondering if I
should begin with that? Is that the current "development" version?
Or shall I stick with the 0.7 stable version?

Anyway, as I went forward with installing 0.7, I got as far as this
line in the instructions:

"$ python scripts/pinax-boot.py <path-to-virtual-env-to-create>"

where by I put in my own path of course:

"$ python scripts/pinax-boot.py ../../_INTRA/DOMAIN/
SYNCHRONICITY_NETWORK/www"

And then I get these error messages:

"New python executable in ../../_INTRA/DOMAIN/SYNCHRONICITY_NETWORK/
www/bin/python
Error [Errno 2] No such file or directory while executing command
install_name_tool -change /Library/Frameworks/Python.fra...ython
@executable_path/../.Python ../../_INTRA/DOMAIN/SYNCHRONIC...ython
Could not call install_name_tool -- you must have Apple's development
tools installed
Traceback (most recent call last):
File "scripts/pinax-boot.py", line 1752, in <module>
main()
File "scripts/pinax-boot.py", line 528, in main
use_distribute=options.use_distribute)
File "scripts/pinax-boot.py", line 611, in create_environment
site_packages=site_packages, clear=clear))
File "scripts/pinax-boot.py", line 805, in install_python
py_executable])
File "scripts/pinax-boot.py", line 556, in call_subprocess
cwd=cwd, env=env)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory"

"you must have Apple's development tools installed"??? I'm pretty
sure that I do!

Also, I've been working with Django, and have had no problems what-so-
ever with install and running it locally.

Anyone have insights into how to overcome this?

christian.posta

unread,
Jun 7, 2011, 3:30:45 PM6/7/11
to Pinax Users
you may wish to use the latest version, not 0.7.
The latest versions are all pretty stable.

Patrick Altman

unread,
Jun 7, 2011, 3:55:08 PM6/7/11
to pinax...@googlegroups.com
On Jun 6, 2011, at 11:56 PM, miquael wrote:

> I just read about the newer "fast start" version, and wondering if I
> should begin with that? Is that the current "development" version?
> Or shall I stick with the 0.7 stable version?

I highly recommend you use fresh-start. You should be able to do:

$ pip install --extra-index=http://dist.pinaxproject.com/fresh-start/ Pinax


miquael

unread,
Jun 7, 2011, 4:24:48 PM6/7/11
to Pinax Users
So is "fresh-start" the same as what is downloaded when I download
what is the current "development" version on the Pinax website?

(I only hear references to "fresh-start", and am not sure where to
actually get it)

>   $ pip install --extra-index=http://dist.pinaxproject.com/fresh-start/Pinax

Also, when I do any pip command in my terminal (such as the one
above), I get "-bash: pip: command not found". So I tried to install
pip by following instructions here:

http://www.pip-installer.org/en/latest/installing.html

Tho had this issue:

AVATARA:Python mac$ curl -O https://github.com/pypa/pip/raw/master/contrib/get-pip.py
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
123 123 123 123 0 0 37 0 0:00:03 0:00:03
--:--:-- 105
AVATARA:Python mac$ python get-pip.py
File "get-pip.py", line 1
<html><body>You are being <a href="https://raw.github.com/pypa/pip/
master/contrib/get-pip.py">redirected</a>.</body></html>
^
SyntaxError: invalid syntax

What's up with that?

ashish tiwari

unread,
Jun 8, 2011, 2:28:40 AM6/8/11
to pinax...@googlegroups.com
hey friends m new to pinax and following pinax-0.7 installation and docs.
I'm using linuxmint-11.

$ python scripts/pinax-boot.py ../pinax-env it fails to create virtuaenvironment with the error..

ashish@shiv ~/Documents/projects/meluha/pinax/pinax-0.7beta3 $ sudo python scripts/pinax-boot.py $HOME/pinax-env
New python executable in /home/ashish/pinax-env/bin/python
Traceback (most recent call last):
  File "/home/ashish/pinax-env/lib/python2.7/site.py", line 66, in <module>
    import os
  File "/home/ashish/pinax-env/lib/python2.7/os.py", line 398, in <module>
    import UserDict
  File "/home/ashish/pinax-env/lib/python2.7/UserDict.py", line 83, in <module>
    import _abcoll
  File "/home/ashish/pinax-env/lib/python2.7/_abcoll.py", line 11, in <module>
    from abc import ABCMeta, abstractmethod
  File "/home/ashish/pinax-env/lib/python2.7/abc.py", line 8, in <module>
    from _weakrefset import WeakSet
ImportError: No module named _weakrefset
ERROR: The executable /home/ashish/pinax-env/bin/python is not functioning
ERROR: It thinks sys.prefix is '/home/ashish/Documents/projects/meluha/pinax/pinax-0.7beta3' (should be '/home/ashish/pinax-env')
ERROR: virtualenv is not compatible with this system or executable

thanks in advance..

Daniel Greenfeld

unread,
Jun 8, 2011, 4:37:24 AM6/8/11
to pinax...@googlegroups.com
Please use Pinax-0.9a2.dev1013.tar.gz at
http://dist.pinaxproject.com/fresh-start/Pinax/. It is stable and used
in production sites like http://djangopackages.com.

Danny

> --
> You received this message because you are subscribed to the Google Groups
> "Pinax Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pinax-users/-/bldVeTlIdkZ6andK.
> To post to this group, send email to pinax...@googlegroups.com.
> To unsubscribe from this group, send email to
> pinax-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pinax-users?hl=en.
>

--
'Knowledge is Power'
Daniel Greenfeld
http://pydanny.com
http://cartwheelweb.com

kweerious

unread,
Jun 8, 2011, 10:41:02 AM6/8/11
to Pinax Users
On Jun 7, 3:55 pm, Patrick Altman <palt...@gmail.com> wrote:
> I highly recommend you use fresh-start.  You should be able to do:
>
>   $ pip install --extra-index=http://dist.pinaxproject.com/fresh-start/Pinax

Would you suggest the same for folks that are starting a project that
will have social/friendship features (since those aren't fully baked
in yet)?

.dd

Jonathan of Cambridge

unread,
Jul 19, 2011, 1:54:46 PM7/19/11
to Pinax Users
Why is that?
==========================================================

pip install pinax --extra-index=http://dist.pinaxproject.com/fresh-
start/Pinax
Downloading/unpacking pinax
Downloading Pinax-0.9a1.tar.gz (4.7Mb): 4.7Mb downloaded
Running setup.py egg_info for package pinax

Yarko Tymciurak

unread,
Jul 19, 2011, 2:24:38 PM7/19/11
to pinax...@googlegroups.com
Try putting the extra-index parameter before the package name, e.g.:

$ pip install --extra-index=http://dist.pinaxproject.com/fresh-start Pinax
Downloading/unpacking Pinax
  Downloading Pinax-0.9a2.dev1016.tar.gz (1.4Mb): 1.4Mb downloaded
  Running setup.py egg_info for package Pinax


--
You received this message because you are subscribed to the Google Groups "Pinax Users" group.
To post to this group, send email to pinax...@googlegroups.com.
To unsubscribe from this group, send email to pinax-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pinax-users?hl=en.




--
Regards,
- Yarko

Brian Rosner

unread,
Jul 21, 2011, 4:47:23 PM7/21/11
to pinax...@googlegroups.com

On Jul 19, 2011, at 12:24 PM, Yarko Tymciurak wrote:

> Try putting the extra-index parameter before the package name, e.g.:
>
> $ pip install --extra-index=http://dist.pinaxproject.com/fresh-start Pinax
> Downloading/unpacking Pinax
> Downloading Pinax-0.9a2.dev1016.tar.gz (1.4Mb): 1.4Mb downloaded
> Running setup.py egg_info for package Pinax

I find it odd this works. The option is --extra-index-url not --extra-index. Perhaps some optparse magic or bug ;-)

Brian Rosner
https://twitter.com/brosner
https://github.com/brosner

Carl Karsten

unread,
Jul 21, 2011, 5:17:03 PM7/21/11
to pinax...@googlegroups.com
On Thu, Jul 21, 2011 at 3:47 PM, Brian Rosner <bro...@gmail.com> wrote:

On Jul 19, 2011, at 12:24 PM, Yarko Tymciurak wrote:

> Try putting the extra-index parameter before the package name, e.g.:
>
> $ pip install --extra-index=http://dist.pinaxproject.com/fresh-start Pinax
> Downloading/unpacking Pinax
>   Downloading Pinax-0.9a2.dev1016.tar.gz (1.4Mb): 1.4Mb downloaded
>   Running setup.py egg_info for package Pinax

I find it odd this works. The option is --extra-index-url not --extra-index. Perhaps some optparse magic or bug ;-)


Nothing in the docs:
http://docs.python.org/library/optparse.html

But it is on the code:

if
option_string.startswith(option_prefix

http://hg.python.org/cpython/file/44a02d6b74e4/Lib/argparse.py#l2137
 
huh.

--
Carl K

Yarko Tymciurak

unread,
Jul 21, 2011, 6:50:09 PM7/21/11
to pinax...@googlegroups.com
On Thu, Jul 21, 2011 at 3:47 PM, Brian Rosner <bro...@gmail.com> wrote:

On Jul 19, 2011, at 12:24 PM, Yarko Tymciurak wrote:

> Try putting the extra-index parameter before the package name, e.g.:
>
> $ pip install --extra-index=http://dist.pinaxproject.com/fresh-start Pinax
> Downloading/unpacking Pinax
>   Downloading Pinax-0.9a2.dev1016.tar.gz (1.4Mb): 1.4Mb downloaded
>   Running setup.py egg_info for package Pinax

I find it odd this works. The option is --extra-index-url not --extra-index. Perhaps some optparse magic or bug ;-)

sheesh!   just looking @ pip sources, I agree - --extra-index  doesn't look like it should work;   will have to trace this thru (tomorrow); maybe we found a bug in pip....

be safe:   use  --extra-index-url


--
You received this message because you are subscribed to the Google Groups "Pinax Users" group.
To post to this group, send email to pinax...@googlegroups.com.
To unsubscribe from this group, send email to pinax-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pinax-users?hl=en.




--
Regards,
- Yarko

Reply all
Reply to author
Forward
0 new messages