Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Maybe Computer Science should be in the College of Theology. -- R. S. Barton


devel / comp.lang.python / Re: 'Pygame Module' not working

SubjectAuthor
o Re: 'Pygame Module' not workingDennis Lee Bieber

1
Re: 'Pygame Module' not working

<mailman.303.1627761130.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14383&group=comp.lang.python#14383

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: 'Pygame Module' not working
Date: Sat, 31 Jul 2021 15:46:05 -0400
Organization: IISS Elusive Unicorn
Lines: 18
Message-ID: <mailman.303.1627761130.4164.python-list@python.org>
References: <CAErz32_7XHn3V_FWNis-U46DcEeO7yJc86Q00-AQ43gGF7DDGQ@mail.gmail.com>
<q0abggdi7gdnoc5605mt69b6dsn5a9ov38@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de r0ts6ji74ZvwYpnPvKilWwDOA93MX2SFD38DtoTg2ung==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'jul': 0.04; 'wrong.':
0.07; 'received:ciao.gmane.io': 0.09; 'received:gmane.io': 0.09;
'received:list': 0.09; 'subject:not': 0.09; 'subject:working':
0.09; '"current': 0.16; 'directory.': 0.16; 'message-id:@4ax.com':
0.16; 'received:116.202': 0.16; 'received:116.202.254': 0.16;
'received:116.202.254.214': 0.16; 'subject:Module': 0.16;
'subject:Pygame': 0.16; 'upload': 0.16; 'ran': 0.23; 'sat,': 0.23;
'to:addr:python-list': 0.23; 'error': 0.28; 'header:User-Agent:1':
0.31; 'header:Organization:1': 0.31; 'script': 0.32; 'program':
0.33; 'file': 0.38; 'going': 0.38; 'use': 0.38; 'showing': 0.63;
'your': 0.64; 'full': 0.68; 'received:116': 0.71; 'advise': 0.78;
'2021': 0.84; 'url-ip:76/8': 0.84
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: ForteAgent/8.00.32.1272
X-Mailman-Approved-At: Sat, 31 Jul 2021 15:52:09 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <q0abggdi7gdnoc5605mt69b6dsn5a9ov38@4ax.com>
X-Mailman-Original-References: <CAErz32_7XHn3V_FWNis-U46DcEeO7yJc86Q00-AQ43gGF7DDGQ@mail.gmail.com>
 by: Dennis Lee Bieber - Sat, 31 Jul 2021 19:46 UTC

On Sat, 31 Jul 2021 14:07:05 +0530, 37_VA_VEER CHAKRABORTY
<veerchakraborty612@gmail.com> declaimed the following:

>pygame.image.load('assets/Flappy Bird.png')
>However, when I ran the script it was showing an error message - File not
>found
>Please advise me on how to upload the sprites and where I was going wrong.

First attempt: use a full pathname.

Second: determine what the "current working directory" is in which your
program is running, then use a pathname relative to that directory.

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor