mirror of
https://github.com/rkk-2s/bad-apple.git
synced 2026-10-14 21:38:53 +00:00
[GH-ISSUE #8] Import error despite having imported all dependencies #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rkk-2s/bad-apple#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Apr 27, 2021).
Original GitHub issue: https://github.com/rkk-2s/bad-apple/issues/8
Traceback (most recent call last):
File "touhou_bad_apple_v4.0.py", line 1, in
import cv2
ImportError: No module named cv2
@rkk-2s commented on GitHub (Apr 28, 2021):
Hmm that is weird, did you do
pip install -r requirements.txt?Also would help if you could include what Python version you are running.
@ghost commented on GitHub (May 1, 2021):
i did and it said that i had already installed all dependencies
also i tried both using python and python3
@rkk-2s commented on GitHub (May 1, 2021):
Could you provide the specific version of python? If you are running Python 3.9.X, you might want to get 3.8.X, as cv2 does not currently support 3.9.X.
Also if you have both python and python3, install the requirements for Python 3 by using
pip3 install -r requirements.txtinstead.@ghost commented on GitHub (May 1, 2021):
ok, i'll try
@ghost commented on GitHub (May 1, 2021):
yooo it worked, thanks man
@ghost commented on GitHub (May 1, 2021):
actually i'm having another problem now
@ghost commented on GitHub (May 1, 2021):
Your option: 1
Original mp3 (0), Midi (1)
Enter 0 or 1: 1
Beginning ASCII generation...
Progress: [####################### ] 99% Frame 6571 of 6572 frames
ASCII generation completed! ASCII generation time: 33.6171236038208Traceback (most recent call last):
File "/home/kali/bad-apple/touhou_bad_apple_v4.0.py", line 204, in
main()
File "/home/kali/bad-apple/touhou_bad_apple_v4.0.py", line 190, in main
play_audio(path_to_file)
File "/home/kali/bad-apple/touhou_bad_apple_v4.0.py", line 24, in play_audio
pygame.mixer.music.load(path)
pygame.error: Couldn't open /etc/timidity/freepats.cfg
do i have to edit something in the file?
@ghost commented on GitHub (May 1, 2021):
it looks like it can't recognize the audio format for some reason
@rkk-2s commented on GitHub (May 25, 2021):
Hi there, really sorry for replying back so late. As option 1 plays back the midi file, it requires the use of a midi player. Judging by your directory, your host system seems to be Linux-based, which I presume does not have a built-in midi player. You might want to search up on that.
Cheers