Re: [SE|PY-macdev] newbie -- First Error from CVS latest
Brought to you by:
sephiroth_tmm
|
From: Ashley M. <as...@gv...> - 2004-09-04 21:51:57
|
If you do ls -la in /usr/local/bin you will see ... -rw-r--r-- 1 amccoy staff 40 9 Nov 2003 pyshell.py lrwxr-xr-x 1 amccoy staff 9 3 Sep 08:31 python -> python2.3 lrwxr-xr-x 1 amccoy staff 60 3 Sep 08:31 python2.3 -> /Library/Frameworks/Python.framework/Versions/2.3/bin/python lrwxr-xr-x 1 amccoy staff 10 3 Sep 08:31 pythonw -> pythonw2.3 -rwxr-xr-x 1 amccoy staff 115 3 Sep 08:31 pythonw2.3 ... on the left are the permissions on the files in three sets r read w write x execute for Owner, Group and everyone ( do get info in the finder and expand Ownership and Permissions ) the blank at the start is for file it can also be a d for directory or in this case l for link, a link is like a shortcut, unix style type man ln at the command line. Setting a enviroment variable permenently, this is what $PATH is . Using shell bash (check by typing echo $SHELL) In your home directory a file called .bashrc is read on login add export $PATH="$PATH:/dir/to/add:/seperate/entries/with/colan:/no/trailing/slash" (instuctions apply to OSX.3 which uses bash as default shell) Quick look at google hits http://www.ss64.com/osx/ there is lots on Unix :) Ashley Isaac Rivera wrote: > Ok--- > > I added ":/usr/local/bin" to my path and deleted Python on "/usr/bin" > > Now Python 2.3.4 launches on the terminal correctly when I type > python during the current shell session. > > However, I does not find wxPython from this location. I just the the > classic: > > >>> import wxPython > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: No module named wxPython > > 2 questions: > > How do I alter PATH to this permanently and not just the current > session. > "export > PATH=/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Tools:/usr/local:/usr/ > local/bin/" > > and how do I make python see wxPython? > > > On Sep 2, 2004, at 3:53 PM, Ashley McCoy wrote: > >> Remove or rename old python binary, make sure /usr/local/bin is is >> your PATH >> >> % echo $PATH >> % export PATH=$PATH:/usr/local/bin >> % echo $PATH >> >> Did you get $suite to compile? >> >> Ashley >> >> old pythoIsaac Rivera wrote: >> >>> Thats exactly what happens. >>> >>> But when I type "/usr/local/bin/python" then this happens: >>> >>> Python 2.3.4 (#1, Sep 2 2004, 09:02:03) >>> [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin >>> Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> >>> Notice two the headers: >>> >>> Python 2.3 (#1, Sep 13 2003, 19:51:59) >>> >>> vs. >>> >>> Python 2.3.4 (#1, Sep 2 2004, 09:02:03) >>> >>> Diferent versions and dates. The second one, the one I just updated >>> and I invoke by typing "/usr/local/bin/python" is the current >>> version. The other one accessed by just typing "python" is older, >>> the Panther default and the one we are all using unless we are >>> calling "/usr/local/bin/python". >>> >>> Isaac >>> >>> On Sep 2, 2004, at 2:08 PM, valley wrote: >>> >>>> So what happens when you type 'python' or 'python2.3' in your shell ? >>>> Normally something like this should appear: >>>> $ python >>>> Python 2.3 (#1, Sep 13 2003, 19:51:59) >>>> [GCC 3.3 20030304 (Apple Computer, build 1495)] on darwin >>>> Type "help", "copyright", "credits" or "license" for more >>>> information. >>>> >>>>>>> >>>> >>>> Perhaps it's a path problem. On the 4Suite site it is said that you >>>> don't have to do the build for installing it, just type >>>> python setup.py install >>>> >>>> >>>> valley >>>> >>>> >>>> >>>> ----- Original Message ----- >>>> From: "Isaac Rivera" <isa...@mi...> >>>> To: <sep...@li...> >>>> Sent: Thursday, September 02, 2004 3:17 PM >>>> Subject: Re: [SE|PY-macdev] newbie -- First Error from CVS latest >>>> >>>> >>>>> On trying to install 4Suite in Panther I get >>>>> >>>>> "command 'gcc' failed with exit status 1" >>>>> >>>>> I have upgraded XCode tools and the gcc is the new version 3.3. >>>>> >>>>> Isaac >>>>> >>>>> On Sep 2, 2004, at 7:17 AM, Valentin Treu wrote: >>>>> >>>>>> I never had this error. But 4Suite should build and install >>>>>> correctly, so try a little bit around ;-) >>>>>> This error perhaps also could be a SEPY error due to changes >>>>>> that Alessandro made - I can try this out this evening with >>>>>> the latest cvs version. >>>>>> >>>>>> valley >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Thu, 2 Sep 2004, Ashley McCoy wrote: >>>>>> >>>>>>> Thanks Valley, >>>>>>> >>>>>>> got the latest wxpython, sepy runs splash screen then tooltips >>>>>>> appear >>>>>>> but splash screen stays, the document window which appears >>>>>>> under the >>>>>>> tool tips resizes with incorrect screen redraw >>>>>>> >>>>>>> Throws an errror at command line --> below >>>>>>> >>>>>>> I had thought to check through the list of dependancies you >>>>>>> mentioned >>>>>>> on >>>>>>> the Wiki and have found an error building 4suite that does not >>>>>>> seem to >>>>>>> be resolved as of yet, it fails on build_ext this appears to be a >>>>>>> problem with python2.3 >>>>>>> >>>>>>> So I wonder if I I would have to build python from scratch ?? >>>>>>> >>>>>>> Ashley >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> g4-1ghz:~/SciTE amccoy$ pythonw main.pyw >>>>>>> [Debug] 20:32:46: Unrecognized accel key 'CAPSLOCK', accel string >>>>>>> ignored. >>>>>>> [Debug] 20:32:46: Unrecognized accel key 'CAPSLOCK', accel string >>>>>>> ignored. >>>>>>> Traceback (most recent call last): >>>>>>> File "/Users/amccoy/SciTE/SEPY.py", line 140, in Notify >>>>>>> frame = main_window(parent=None, id=wx.NewId(), >>>>>>> title=About_title, >>>>>>> dialog = self.dialog) >>>>>>> File "/Users/amccoy/SciTE/SEPY.py", line 321, in __init__ >>>>>>> self.loadDB() >>>>>>> File "/Users/amccoy/SciTE/SEPY.py", line 371, in loadDB >>>>>>> self.DB["values"] = DB.values() >>>>>>> AttributeError: _DBWithCursor instance has no attribute 'values' >>>>>>> >>>>>>> Valentin Treu wrote: >>>>>>> >>>>>>>> i also had this error. be sure that you've got the >>>>>>>> newest wxpython from here: >>>>>>>> http://starship.python.net/crew/robind/wxPython/daily/ >>>>>>>> >>>>>>>> valley >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, 2 Sep 2004, Ashley McCoy wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Is there a curent list of changes I need to make? >>>>>>>>> >>>>>>>>> Ashley >>>>>>>>> >>>>>>>>> First Error :: >>>>>>>>> >>>>>>>>> Traceback (most recent call last): >>>>>>>>> File "/Users/amccoy/SciTE/SEPY.py", line 140, in Notify >>>>>>>>> frame = main_window(parent=None, id=wx.NewId(), >>>>>>>>> title=About_title, >>>>>>>>> dialog = self.dialog) >>>>>>>>> File "/Users/amccoy/SciTE/SEPY.py", line 183, in __init__ >>>>>>>>> self.project_history = wx.FileHistory(5, wx.ID_FILE11) >>>>>>>>> File >>>>>>>>> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ >>>>>>>>> python2.3/site-packages/wxPython/misc2.py", >>>>>>>>> line 1072, in __init__ >>>>>>>>> self.this = misc2c.new_wxFileHistory(*_args,**_kwargs) >>>>>>>>> TypeError: new_wxFileHistory() takes at most 1 argument (2 >>>>>>>>> given) >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------- >>>>>>>>> This SF.Net email is sponsored by BEA Weblogic Workshop >>>>>>>>> FREE Java Enterprise J2EE developer tools! >>>>>>>>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>>>>>>>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>>>>>>> _______________________________________________ >>>>>>>>> sepy-macdev mailing list >>>>>>>>> sep...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------- >>>>>>>> This SF.Net email is sponsored by BEA Weblogic Workshop >>>>>>>> FREE Java Enterprise J2EE developer tools! >>>>>>>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>>>>>>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>>>>>> _______________________________________________ >>>>>>>> sepy-macdev mailing list >>>>>>>> sep...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> This SF.Net email is sponsored by BEA Weblogic Workshop >>>>>>> FREE Java Enterprise J2EE developer tools! >>>>>>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>>>>>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>>>>> _______________________________________________ >>>>>>> sepy-macdev mailing list >>>>>>> sep...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.Net email is sponsored by BEA Weblogic Workshop >>>>>> FREE Java Enterprise J2EE developer tools! >>>>>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>>>>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>>>> _______________________________________________ >>>>>> sepy-macdev mailing list >>>>>> sep...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >>>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.Net email is sponsored by BEA Weblogic Workshop >>>>> FREE Java Enterprise J2EE developer tools! >>>>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>>>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>>> _______________________________________________ >>>>> sepy-macdev mailing list >>>>> sep...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by BEA Weblogic Workshop >>>> FREE Java Enterprise J2EE developer tools! >>>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>> _______________________________________________ >>>> sepy-macdev mailing list >>>> sep...@li... >>>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by BEA Weblogic Workshop >>> FREE Java Enterprise J2EE developer tools! >>> Get your free copy of BEA WebLogic Workshop 8.1 today. >>> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>> _______________________________________________ >>> sepy-macdev mailing list >>> sep...@li... >>> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by BEA Weblogic Workshop >> FREE Java Enterprise J2EE developer tools! >> Get your free copy of BEA WebLogic Workshop 8.1 today. >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >> _______________________________________________ >> sepy-macdev mailing list >> sep...@li... >> https://lists.sourceforge.net/lists/listinfo/sepy-macdev >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > sepy-macdev mailing list > sep...@li... > https://lists.sourceforge.net/lists/listinfo/sepy-macdev > |