my guess is that you need to tell your macports version of python
where to find psychopy, by adding a Psychopy.pth file somewhere. I use
mac 10.6.6 and run experiments from the command line (terminal).
I use the the "Enthought python distribution" version of python, and
so for me this means making a file named Psychopy.pth in the directory
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/
The file is plain text, and contains a single line, which is the
location (directory) of my psychopy source code.
about a week ago I installed the EPD python + psychopy on a
colleague's computer. it it took maybe 10-15 min, no need for gcc or
xcode.
best,
--Jeremy
> --
> You received this message because you are subscribed to the Google Groups "psychopy-users" group.
> To post to this group, send email to psychop...@googlegroups.com.
> To unsubscribe from this group, send email to psychopy-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/psychopy-users?hl=en.
>
>
From your errors, it looks like you're GCC version is 4.2... but scipy
needs GCC 4.0. I think you can fix this typing by the following:
$ ln -s /usr/bin/g++-4.0 g++
$ ln -s /usr/bin/g++-4.0 c++
This (soft) links your g++/c++ versions to g++4.0. I don't entirely
remember if this is the only thing that I did to fix it so it may not
be sufficient. Try restarting after this and see if you have the same
problem.
As for running pyschopy as 32-bit by default, I'd add:
export VERSIONER_PYTHON_PREFER_32_BIT=yes
to your .bashrc file (if you're running in the regular "bash" shell).
The rc files are worth looking up and using a lot if you don't
already, but you can find it as follows.
[current path]$ cd
[/]$ open .bashrc
Add that variable to the file, save it, and then to update:
[/]$ source .bashrc
Good luck,
Emily
still, I suspect that for most people who want to run from the command
line, unless they have a reason not to do so it will be easier to do:
[0. if needed: uninstall any versions of python that you have
personally installed. don't touch your system version. if you have a
stand alone version of psychopy, you don't need to worry about it,
fine to leave it as is.]
1. download & install the EPD 32-bit (not 64-bit) version of python
2.6 (from http://www.enthought.com/products/edudownload.php ) -- its
just a typical GUI click-through install, very easy.
2. open a new terminal window, type 'python' and it should show that
the EPD version is the one that is now on your regular user path:
[gray-matter:~] jgray% python
Enthought Python Distribution -- http://www.enthought.com
Version: 6.2-2 (32-bit)
3. from the command line, type 'easy_install psychopy', and once it
completes you should be good to go. start python interactively, and
type 'import psychopy' -- no error message means all is well.
4. if / when you need other packages, you can do things like
'easy_install pyaudio' to make those available to psychopy
I did this about 10 days ago for a colleague on a mac, no need to
wrangle with with gcc, .bashrc, sudo, versions of scipy, etc.
if you have had previous versions of python, you need to make sure
that your path variable no longer contains pointers to old versions of
python (or at least: that they are not ahead of a pointer to the new
version). typing 'python' at the command line should tell you
definitively which version is found. for me on XP, it was placing the
new pointer at the end of my path variable, so I had to manually edit
the path so that the new python would be found and used.
I think this should more or less work on mac, windows, and linux.
--Jeremy