Re: [Pydev-users] Help please: Python, Mac, Eclipse, PyDev
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2011-08-11 01:09:37
|
It's exactly the use-case I told you before: the python from mac doesn't ship with the .py files (only the .pyc files). PyDev needs those to properly do a bunch of static-code analysis, so, if you can, grab the python version from python.org and use that version (otherwise, grab the version from python.org and just extract the .py files from /Lib over your current installation of python in mac os). Cheers, Fabio On Wed, Aug 10, 2011 at 9:46 PM, Eiko Fried <to...@gm...> wrote: > I did edit the links in the forum, somehow they got cut. > > The direct link to the thread is: > http://old.nabble.com/Help-please%3A-Python%2C-Mac%2C-Eclipse%2C-PyDev-td32236580.html > > I hope the screenshot will provide enough help to help me ;) > > Thanks! > Eiko > > > On 11 August 2011 02:39, Fabio Zadrozny <fa...@gm...> wrote: >> The links for dropbox didn't appear, so, it's hard to know what's >> going on... so, I'm guessing here: mac doesn't provide the .py files >> for the library, so, you have to either use the interpreter from >> python.org or grab the .py files from the library and copy them to >> your mac installation (personally, I always use the version from >> python.org instead of using the one from the system -- you never know >> what you may break in the system while developing). >> >> If that's not the case, try entering the links in the forum (not sure >> why the links didn't appear properly in the e-mail). >> >> Cheers, >> >> Fabio >> >> On Wed, Aug 10, 2011 at 3:37 PM, Torvon <to...@gm...> wrote: >>> >>> Hey there. >>> >>> (1) My employer forces me to work on a MAC, that's a new OS to me. So excuse >>> me if these questions are stupid. (10.6.8) >>> >>> (2) I have eclipse, and want to run Python in it. I followed the steps >>> installing PyDev, no problemo. Now I have to setup the path where the >>> interpreter is in. And I can't find it. I found 10.000 topics on the net for >>> this problem, but none solved my issues. >>> >>> (3) Most of the topics say check /libraries/Python. In this folder I have 3 >>> subfolders, called 2.3, 2.5 and 2.6. These folders contain identical things: >>> a folder called "site-packages", which contains a readme, which contains >>> ("This directory exists so that 3rd party packages can be installed here. >>> Read the source for site.py for more details.") >>> Nothing else. >>> The PyDev stuff is apparently in my /repast-simphony/eclipse/plugins folder >>> (in this folder are 5 subfolders called PyDev 2.2.1 etc blablabla and then >>> debug/fastparser/analysis etc.) >>> >>> Ok. So how do I find where my Python actually is? >>> I tried --> python -c "from distutils.sysconfig import get_python_lib; print >>> get_python_lib()" >>> which tells me >>> --> /Library/Python/2.6/site-packages >>> >>> But that is empty. >>> >>> In /system/frameworks there is one. That one looks interesting. But no >>> matter if I choose "Python" (alias, no idea what that means on mac, but it >>> looks like an executable file) in the main folder, or the other Pythons in >>> subfolders (e.g. versions/2.6 or versions/current), I receive an unspecific >>> error which is kind enough to tell me that common problems are using an >>> unsupported version or specifying an invalid interpreter. >>> >>> python -c "import sys; print sys.executable" >>> ... points to the folder /usr/bin/python. >>> (there are also other ones like python 2.6 in that folder) >>> >>> In eclipse now I enter this path as interpreter, like that: >>> http://dl.dropbox.com/u/35594260/Bildsc ... .18.31.png >>> >>> I get this message dialog afterwards (I don't understand this, because this >>> is EXACTLY the dialog that appears if I do not enter the path manually "new >>> ->", like above, but when I hit "auto config): >>> http://dl.dropbox.com/u/35594260/Bildsc ... .18.38.png >>> >>> When I click OK, this error message pops up: >>> http://dl.dropbox.com/u/35594260/Bildsc ... .18.44.png >>> >>> I honestly have no idea what to do. Please help. >>> >>> Thanks >>> Eiko >>> -- >>> View this message in context: http://old.nabble.com/Help-please%3A-Python%2C-Mac%2C-Eclipse%2C-PyDev-tp32236580p32236580.html >>> Sent from the pydev-users mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> uberSVN's rich system and user administration capabilities and model >>> configuration take the hassle out of deploying and managing Subversion and >>> the tools developers use with it. Learn more about uberSVN and get a free >>> download at: http://p.sf.net/sfu/wandisco-dev2dev >>> _______________________________________________ >>> Pydev-users mailing list >>> Pyd...@li... >>> https://lists.sourceforge.net/lists/listinfo/pydev-users >>> >> >> ------------------------------------------------------------------------------ >> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >> user administration capabilities and model configuration. Take >> the hassle out of deploying and managing Subversion and the >> tools developers use with it. >> http://p.sf.net/sfu/wandisco-dev2dev >> _______________________________________________ >> Pydev-users mailing list >> Pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-users >> > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. > http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-users > |