Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

File not found error #2

Open
AeriaVelocity opened this issue Mar 7, 2021 · 1 comment
Open

File not found error #2

AeriaVelocity opened this issue Mar 7, 2021 · 1 comment

Comments

@AeriaVelocity
Copy link

Traceback (most recent call last):
  File "/home/that1m8head/Desktop/solitaire-master/game/solitaire_tests.py", line 9, in setUp
    self.deck = Deck()
  File "/home/that1m8head/Desktop/solitaire-master/game/deck.py", line 32, in __init__
    self.card_back_image = pygame.image.load(name_of_image)
FileNotFoundError: No such file or directory.

Seems like it can't find an image.
Full output:

<that1m8head@my-epic-arch-stick>:~ $ python '/home/that1m8head/Desktop/solitaire-master/game/solitaire_tests.py' 
pygame 2.0.1 (SDL 2.0.14, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
EEE
======================================================================
ERROR: test_deck_size (__main__.SolitaireTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/that1m8head/Desktop/solitaire-master/game/solitaire_tests.py", line 9, in setUp
    self.deck = Deck()
  File "/home/that1m8head/Desktop/solitaire-master/game/deck.py", line 32, in __init__
    self.card_back_image = pygame.image.load(name_of_image)
FileNotFoundError: No such file or directory.

======================================================================
ERROR: test_pile_selection (__main__.SolitaireTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/that1m8head/Desktop/solitaire-master/game/solitaire_tests.py", line 9, in setUp
    self.deck = Deck()
  File "/home/that1m8head/Desktop/solitaire-master/game/deck.py", line 32, in __init__
    self.card_back_image = pygame.image.load(name_of_image)
FileNotFoundError: No such file or directory.

======================================================================
ERROR: test_pile_sizes (__main__.SolitaireTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/that1m8head/Desktop/solitaire-master/game/solitaire_tests.py", line 9, in setUp
    self.deck = Deck()
  File "/home/that1m8head/Desktop/solitaire-master/game/deck.py", line 32, in __init__
    self.card_back_image = pygame.image.load(name_of_image)
FileNotFoundError: No such file or directory.

----------------------------------------------------------------------
Ran 3 tests in 0.001s

FAILED (errors=3)
@csirick2020
Copy link

Could this be because you don't have the image files downloaded and/or in the right directory?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants