From: Karol M. L. <kar...@gm...> - 2011-03-16 09:41:54
|
Wow, I'm surprised such a problem came up :) Thanks Noel for working on the new release. Maybe this is a good time to think about packaging cclib for Debian? I already make debs for my own use, so it is a question of getting it into the repository. - Karol On Mon, Feb 28, 2011 at 08:48:52PM -0600, Jim Parker wrote: > You're welcome. Thank you for making the program... > > Cheers, > --Jim > > On Mon, Feb 28, 2011 at 1:59 PM, Noel O'Boyle <bao...@gm...> wrote: > > I just checked this myself, and I find the problem is even worse. I > > can't even cd into the cclib-1.0 folder after untarring the .tar.gz, > > due to permissions problems. > > > > Thanks for letting us know. I badly need to make a new release... > > > > - Noel > > > > On 27 February 2011 22:57, Jim Parker <jim...@gm...> wrote: > >> Noel, > >> The permissions problem I'm having is that all files are installed > >> with 750 + setuid bit (or in symbols: rwxr-s--- ). This occurs when I > >> use > >> $> sudo python setup.py install > >> or > >> $> sudo su root > >> #> python setup.py install > >> > >> Thus when I run as a user and attempt to import cclib, the file isn't found. > >> > >> I agree the sudo su root is unusual, but doing it that way, the > >> installer then placed all documents in the dist-packages directory > >> rather than splitting some into site-packages which is not a default > >> path. Not a big issue as one can just add it as you mention to > >> .bashrc or other startup script. > >> > >> Cheers, > >> --Jim > >> > >> On Sun, Feb 27, 2011 at 3:32 PM, Noel O'Boyle <bao...@gm...> wrote: > >>> Hi Jim, > >>> > >>> We're just using the standard installer for Python packages. > >>> > >>> "sudo python setup.py install" was the correct way to install it. > >>> site-packages is the correct location, not dist-packages. The latter > >>> is a directly for packages from your distribution; the former for ones > >>> you install yourself. You should add site-packages to PYTHONPATH in > >>> your startup script (.bashrc or so), or complain to Ubuntu! :-) > >>> > >>> You didn't say what the permissions problem was exactly, but I expect > >>> that it results from use of "sudo su root", which looks like a very > >>> dangerous command. Just the regular "sudo" will do the trick. > >>> > >>> - Noel > >>> > >>> On 27 February 2011 21:12, Jim Parker <jim...@gm...> wrote: > >>>> This library looks to be very useful for me, and I'd like to thank the > >>>> developers. > >>>> > >>>> I didn't see this in the archives and regret if it is a repeat of > >>>> another post, but the release version of cclib-1.0 will not install > >>>> correctly using the INSTALL notes on Ubuntu 10.04. The user must > >>>> recursively change the permissions of the installed files. Ideally, > >>>> the installer would do this and remove the group "staff" from the new > >>>> install. > >>>> > >>>> My steps. > >>>> 1. Ensure python, python-dev, and numpy are installed per INSTALL directions > >>>> 2. as user, > >>>> $> python setup.py build > >>>> 3. change to root, and install > >>>> $> sudo su root > >>>> $> python setup.py install > >>>> Note: giving the command > >>>> $> sudo python setup.py install > >>>> will install to /usr/local/lib/pythonx.x/site-packages rather than > >>>> /usr/local/lib/pythonx.x/dist-packages. The difference is that > >>>> dist-packages is loaded into PYTHONPATH by default in Ubuntu 10.04, > >>>> site-packages is not. > >>>> > >>>> --Additional steps required beyond INSTALL directions. > >>>> 4. Fix permissions > >>>> $> cd /usr/local/lib/pythonx.x/ > >>>> $> sudo chmod --recursive 755 * (not best, but if you want you can > >>>> change the *.py files to 644) > >>>> 5. Remove "staff" group > >>>> $> sudo chgrp --recursive root * > >>>> > >>>> HTH some other new user. > >>>> > >>>> Cheers, > >>>> --Jim > >>>> > >>>> ------------------------------------------------------------------------------ > >>>> Free Software Download: Index, Search & Analyze Logs and other IT data in > >>>> Real-Time with Splunk. Collect, index and harness all the fast moving IT data > >>>> generated by your applications, servers and devices whether physical, virtual > >>>> or in the cloud. Deliver compliance at lower cost and gain new business > >>>> insights. http://p.sf.net/sfu/splunk-dev2dev > >>>> _______________________________________________ > >>>> cclib-users mailing list > >>>> ccl...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/cclib-users > >>>> > >>> > >> > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > cclib-users mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-users |