Strange linux problem.

38 views
Skip to first unread message

Alejandro Castellanos

unread,
Nov 3, 2009, 5:04:59 PM11/3/09
to pyglet-users
Maybe I'm completely off base, but I'm having a rather weird problem.
I figured I'd finally give it a go and start using pyglet in kubuntu,
and so I did .

I downloaded the recent pyglet 1.1.4-rc1 and tried to install it just
as the readme says. Here's my Terminal output:

cd /home/alejandro/Desktop/inst/pyglet-1.1.4
alejandro@Magog:~$ cd /home/alejandro/Desktop/inst/pyglet-1.1.4
alejandro@Magog:~/Desktop/inst/pyglet-1.1.4$ python setup.py install
running install
running build
running build_py
running install_lib
creating /usr/local/lib/python2.6/dist-packages/pyglet
error: could not create '/usr/local/lib/python2.6/dist-packages/
pyglet': Permission denied

I mean, WTF? I also tried it as super user but no dice. Why am I being
denied permission? I got window'd, damnit!

Any ideas?



Tristam MacDonald

unread,
Nov 3, 2009, 5:08:13 PM11/3/09
to pyglet...@googlegroups.com
Did you try manually mkdir'ing the relevant directory, and see if that causes an error? Vaguelly possible that your /usr/ is mounted read-only, I guess... 

--
Tristam MacDonald
http://swiftcoder.wordpress.com/

Alejandro Castellanos

unread,
Nov 3, 2009, 5:14:11 PM11/3/09
to pyglet-users
I'll give it a try, maybe try it from somewhere else in the home
directory, or something, but I'm turtle slow.

Thanks for replying.

pymike

unread,
Nov 3, 2009, 6:08:47 PM11/3/09
to pyglet...@googlegroups.com
When I installed it I had to use sudo:

sudo python setup.py install
(And then enter the admin password when prompted.)

Ubuntu won't let you create/delete files in the root directories unless you authorize yourself.

--
- pymike

Jonathan Hartley

unread,
Nov 3, 2009, 7:01:37 PM11/3/09
to pyglet-users
Me too - I always have to 'sudo' when I run python setup.py install on
anything.

Matthew Stevens

unread,
Nov 3, 2009, 7:04:19 PM11/3/09
to pyglet...@googlegroups.com
It gets installed into the system's python site-packages directory, so
you need super user permissions.

Richard Jones

unread,
Nov 3, 2009, 7:13:47 PM11/3/09
to pyglet...@googlegroups.com
Note that if you're running virtualenv you can do all this without sudo.


Richard

Alejandro Castellanos

unread,
Nov 4, 2009, 5:09:33 PM11/4/09
to pyglet-users
Thank you guys (especially you pymike).

Bad thing is that I feel like a dumbass. Good thing is that I finally
got it running, Which is all good 'cause I wanted to try some things
with pyglet and some cython modules, which I can only get running
under linux.

Again, thanks a bunch.
Reply all
Reply to author
Forward
0 new messages