Go to advanced search

by zyyzxx
Sat Apr 26, 2014 8:32 pm
Forum: Python
Topic: program installation
Replies: 17
Views: 2132

Re: program installation

Hi,
Thanks for the reference to the problem with dos/unix file formats.
I carried out the suggested changes to the file formats using vim and the program now works correctly from any directory.
It was written originally under Windows, hence the dos file formatting.
Thanks for all the help, Trev
by zyyzxx
Sat Apr 26, 2014 12:52 pm
Forum: Python
Topic: program installation
Replies: 17
Views: 2132

Re: program installation

Hi,
Yes the program works fine if preceded by python ie:
python /user/local/bin/minefinder

The script includes the full file spec of the image files in my development directory.
I have confirmed there are no characters preceding the shebang.
Regards Trev
by zyyzxx
Fri Apr 25, 2014 10:51 am
Forum: Python
Topic: program installation
Replies: 17
Views: 2132

Re: program installation

Hi, I use a different shebang: #!/usr/bin/env python ls -l /usr/local/bin/minefinder results in: -rwxr-xr-x 1 root staff 12795 Apr 23 13:25 /usr/local/bin/minefinder $PATH results in bash: /usr/lib/arm-linux-gnueabihf/libfm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/game...
by zyyzxx
Thu Apr 24, 2014 7:15 pm
Forum: Python
Topic: program installation
Replies: 17
Views: 2132

Re: program installation

Hi,
I used "mygame" as an example for the post. The game is in fact called minefinder.
I have tried putting the full file spec in the Python script, with the same error message.

Regards Trev
by zyyzxx
Thu Apr 24, 2014 9:54 am
Forum: Python
Topic: program installation
Replies: 17
Views: 2132

Re: program installation

Hi, the relevant fragment of code (from a minesweeper game) is: # load the images BOMBIMAGES = [] for i in range (0, NUMIMAGES+1): bombImage = pygame.image.load('bomb%s.png' %i) BOMBIMAGES.append(bombImage) mineImage = pygame.image.load('mine.png') mineRect = mineImage.get_rect() After typing minefi...
by zyyzxx
Wed Apr 23, 2014 1:34 pm
Forum: Python
Topic: program installation
Replies: 17
Views: 2132

Re: program installation

Thanks, have tried both options with the same result.
Regards Trev
by zyyzxx
Tue Apr 22, 2014 8:29 pm
Forum: Python
Topic: program installation
Replies: 17
Views: 2132

program installation

I have written a pygame program which works fine under IDLE3. I want to call up the program directly without using the python environment. I have done this in the past as follows: chmod +x mygame.py sudo cp mygame.py /usr/local/bin sudo mv /usr/local/bin/mygame.py /usr/local/bin/mygame then mygame w...
by zyyzxx
Thu Apr 04, 2013 7:31 pm
Forum: General discussion
Topic: Approval process
Replies: 4
Views: 1706

Re: Approval process

Hi DrPiD,
Thanks for the advice, clicked on Build and got the new version.
Thanks Trevor
by zyyzxx
Wed Apr 03, 2013 3:44 pm
Forum: General discussion
Topic: Approval process
Replies: 4
Views: 1706

Re: Approval process

Thanks for the reply. Done what you suggested and the puzzle is available again. Unfortunately it is the old version, not the new one. What's the procedure for updating software? I just uploaded the new version, should I have deleted the old version first?
Regards Trevor
by zyyzxx
Sat Mar 30, 2013 4:08 pm
Forum: General discussion
Topic: Approval process
Replies: 4
Views: 1706

Approval process

It's now a month since I submitted an updated version of my Quadoku game. What's the delay in approving it? If there is a problem, why not tell me about it.
by zyyzxx
Mon Dec 31, 2012 2:26 pm
Forum: Python
Topic: Graphic Scripts
Replies: 1
Views: 538

Graphic Scripts

Hi, How do you put a Python/Pygame script on the LX home screen? I know how to run a script from the LXTerminal - that works fine, but when run from the console it crashed the Pi!
Hope you can help.
Regards Trev.
by zyyzxx
Mon Dec 10, 2012 8:43 pm
Forum: General discussion
Topic: Website for Python software
Replies: 1
Views: 528

Website for Python software

I have developed a logic puzzle in Python and would like to make it available to the community. I don't have a web site available to the public, but it seems to me that one would be a good idea. Can one be made available on this site?

Regards Trev
by zyyzxx
Fri Aug 24, 2012 3:59 pm
Forum: Troubleshooting
Topic: No sound on vlc
Replies: 19
Views: 22582

Re: No sound on vlc

I notice that /etc/modules has the last line:
snd-bcm2835
Notice - not _
Is this why I cant get sound either HDMI or earphones.
I am using 2012-07-15-wheezy-raspbian.
I have tried sudo modprobe snd_bcm2835 to no effect.

Regards Trevor
by zyyzxx
Sat Aug 18, 2012 8:08 pm
Forum: Python
Topic: pygame installation
Replies: 7
Views: 30963

Re: pygame installation

Thanks Peter.
Wow! Pygame now installed and works seamlessly.

Regards Trevor
by zyyzxx
Sat Aug 18, 2012 6:01 pm
Forum: Python
Topic: pygame installation
Replies: 7
Views: 30963

Re: pygame installation

How do I install the pygame libraries on raspberry pi? Its easy enough on Windows, but how to do it on Debian. I have tried: sudo apt-get install pygame and sudo apt-get install python-pygame without success. Regards Trevor Thanks vinntec. The first 3 lines worked fine. The fourth line reported an ...
by zyyzxx
Sat Aug 18, 2012 1:17 pm
Forum: Python
Topic: pygame installation
Replies: 7
Views: 30963

pygame installation

How do I install the pygame libraries on raspberry pi?
Its easy enough on Windows, but how to do it on Debian.
I have tried:
sudo apt-get install pygame
and
sudo apt-get install python-pygame
without success.

Regards Trevor

Go to advanced search