Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7852 > unrolled thread
| Started by | Nige Danton <nige.danton@nospam.com> |
|---|---|
| First post | 2011-06-17 19:58 +0000 |
| Last post | 2011-06-17 18:57 -0700 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.python
installing NLTK Nige Danton <nige.danton@nospam.com> - 2011-06-17 19:58 +0000
Re: installing NLTK Hans Mulder <hansmu@xs4all.nl> - 2011-06-17 22:36 +0200
Re: installing NLTK Nige Danton <nige.danton@nospam.com> - 2011-06-17 20:57 +0000
Re: installing NLTK Hans Mulder <hansmu@xs4all.nl> - 2011-06-17 23:42 +0200
Re: installing NLTK Nige Danton <nige.danton@nospam.com> - 2011-06-18 02:47 +0000
Re: installing NLTK Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-06-17 18:57 -0700
| From | Nige Danton <nige.danton@nospam.com> |
|---|---|
| Date | 2011-06-17 19:58 +0000 |
| Subject | installing NLTK |
| Message-ID | <1285724150330032948.091150nige.danton-nospam.com@news.eternal-september.org> |
Mac OSX python 2.6.1: I'm trying to install the natural language toolkit and following the instructions here www.NLTK.org/download I've downloaded the PyYAML package and in a terminal window tried to install it. However terminal asks for my password - I've tried both my user password and admin password but neither is accepted. What am I doing wrong? Thanks for any help -- Nige Danton - Replace the obvious with g.m.a.i.l
[toc] | [next] | [standalone]
| From | Hans Mulder <hansmu@xs4all.nl> |
|---|---|
| Date | 2011-06-17 22:36 +0200 |
| Message-ID | <4dfbbac3$0$49178$e4fe514c@news.xs4all.nl> |
| In reply to | #7852 |
On 17/06/11 21:58:53, Nige Danton wrote: > Mac OSX python 2.6.1: I'm trying to install the natural language toolkit > and following the instructions here www.NLTK.org/download I've downloaded > the PyYAML package and in a terminal window tried to install it. However > terminal asks for my password - I've tried both my user password and admin > password but neither is accepted. What am I doing wrong? You're not really giving us enough information, so I'll just guess: Are you trying a command that begins with "sudo"? If so, then you user password should work, provided you're a member of the 'admin' group. To find out, type "groups" in a Terminal window. If the response does not include "admin" as a separate word, then you''l have to ask someone to give you admin rights. Otherwise, you'll have to tell us what command you are trying. We're too lazy to download the PyYAML package, just to read the installation instructions. -- HansM
[toc] | [prev] | [next] | [standalone]
| From | Nige Danton <nige.danton@nospam.com> |
|---|---|
| Date | 2011-06-17 20:57 +0000 |
| Message-ID | <1690460614330036655.243915nige.danton-nospam.com@news.eternal-september.org> |
| In reply to | #7854 |
Hans Mulder <hansmu@xs4all.nl> wrote: > On 17/06/11 21:58:53, Nige Danton wrote: >> Mac OSX python 2.6.1: I'm trying to install the natural language toolkit >> and following the instructions here www.NLTK.org/download I've downloaded >> the PyYAML package and in a terminal window tried to install it. However > You're not really giving us enough information, so I'll just guess: Sorry. > Are you trying a command that begins with "sudo"? Good guess. Yes it's sudo python setup.py install > If so, then you user password should work, provided you're a member > of the 'admin' group. To find out, type "groups" in a Terminal > window. If the response does not include "admin" as a separate Ok, thanks. Tried that and the response does not include admin nor my user name > word, then you''l have to ask someone to give you admin rights. It's a personal computer - there is no one to ask. When I try my user password the reply is that it's not in the sudoers file and the admin password it just rejects. Any idea what I should do? -- Nige Danton - Replace the obvious with g.m.a.i.l
[toc] | [prev] | [next] | [standalone]
| From | Hans Mulder <hansmu@xs4all.nl> |
|---|---|
| Date | 2011-06-17 23:42 +0200 |
| Message-ID | <4dfbca2c$0$49047$e4fe514c@news.xs4all.nl> |
| In reply to | #7857 |
On 17/06/11 22:57:41, Nige Danton wrote: > Hans Mulder<hansmu@xs4all.nl> wrote: >> On 17/06/11 21:58:53, Nige Danton wrote: >>> Mac OSX python 2.6.1: I'm trying to install the natural language toolkit >>> and following the instructions here www.NLTK.org/download I've downloaded >>> the PyYAML package and in a terminal window tried to install it. However > >> You're not really giving us enough information, so I'll just guess: > > Sorry. > >> Are you trying a command that begins with "sudo"? > > Good guess. Yes it's sudo python setup.py install > >> If so, then you user password should work, provided you're a member >> of the 'admin' group. To find out, type "groups" in a Terminal >> window. If the response does not include "admin" as a separate > > Ok, thanks. Tried that and the response does not include admin nor my user > name > >> word, then you''l have to ask someone to give you admin rights. > > It's a personal computer - there is no one to ask. > > When I try my user password the reply is that it's not in the sudoers file > and the admin password it just rejects. Any idea what I should do? If you open the "System Preferences" application, and click "Accounts" (the icon in the lower left), do you get to see your own account? If so, is the checkbox "Allow user to administer this computer" checked? If not, try logging out, log in as "admin" and go back to "Accounts" in "System Preferences". If the lock in the lower left corner is in the "locked" state, click it and give the password to open it. Then select your own account, check the checkbox, log out and log back in as yourself. That should make you a member of the "admin" group. -- HansM
[toc] | [prev] | [next] | [standalone]
| From | Nige Danton <nige.danton@nospam.com> |
|---|---|
| Date | 2011-06-18 02:47 +0000 |
| Message-ID | <1959486780330057960.653326nige.danton-nospam.com@news.eternal-september.org> |
| In reply to | #7863 |
Hans Mulder <hansmu@xs4all.nl> wrote: should make you a member of the "admin" group. All sorted now - thanks for your help. -- Nige Danton - Replace the obvious with g.m.a.i.l
[toc] | [prev] | [next] | [standalone]
| From | Benjamin Kaplan <benjamin.kaplan@case.edu> |
|---|---|
| Date | 2011-06-17 18:57 -0700 |
| Message-ID | <mailman.102.1308362238.1164.python-list@python.org> |
| In reply to | #7857 |
On Fri, Jun 17, 2011 at 1:57 PM, Nige Danton <nige.danton@nospam.com> wrote: > Hans Mulder <hansmu@xs4all.nl> wrote: >> On 17/06/11 21:58:53, Nige Danton wrote: >>> Mac OSX python 2.6.1: I'm trying to install the natural language toolkit >>> and following the instructions here www.NLTK.org/download I've downloaded >>> the PyYAML package and in a terminal window tried to install it. However > >> You're not really giving us enough information, so I'll just guess: > > Sorry. > >> Are you trying a command that begins with "sudo"? > > Good guess. Yes it's sudo python setup.py install > >> If so, then you user password should work, provided you're a member >> of the 'admin' group. To find out, type "groups" in a Terminal >> window. If the response does not include "admin" as a separate > > Ok, thanks. Tried that and the response does not include admin nor my user > name > >> word, then you''l have to ask someone to give you admin rights. > > It's a personal computer - there is no one to ask. > > When I try my user password the reply is that it's not in the sudoers file > and the admin password it just rejects. Any idea what I should do? > > -- > Nige Danton - Replace the obvious with g.m.a.i.l You need to switch to the admin user. Sudo will only accept your own password, and only if you're in the "sudoers" file. If you don't want to log out, you can use the "su admin" command to change to admin within that shell- that one is expecting your admin password. Then as the admin, do the sudo python setup.py install and enter your admin password again. The point in all this is that your admin isn't actually an admin. There is only one account on the computer that actually has access to the core system files and that's "root". "sudo" is a command that lets you execute a command as another user by entering your own password. If you don't specify a user, it defaults to using root. An "admin" account on a Unix system is just an account with permission to use the sudo command.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web