Import arcade Error
AhmedOmda (0)

the console gives me the following error when running code
don't know what to to do
i would appreciate some help

You are viewing a single comment. View All
21natzil (707)

You're running your code in a Python repl. If you move this to a PyGame repl, it should run just fine!

AhmedOmda (0)

@21natzil well
there is no errors out there is no out put also
https://repl.it/@AhmedOmda/Bing-Bong

TheDrone7 (547)

@AhmedOmda pygame repls take a while to run, be patient.

AhmedOmda (0)

@TheDrone7

https://Bing-Bong.ahmedomda.repl.run
i waited tell it gave me this
"exit status 1"
should this happen?
sorry if i am being impatient
https://repl.it/@AhmedOmda/Bing-Bong

TheDrone7 (547)

@AhmedOmda exit status 1 usually means that there's an error in your program. It should either show the output or give exit status 0 whenever ending the execution if everything is fine.

AhmedOmda (0)

@TheDrone7 But there is nothing wrong with my code - i guess- ,is there?
i tried the same code on pycharm on another PC in another place
and it worked perfectly,so..what do i do? @21natzil

ash15khng (234)

@AhmedOmda Can you copy and paste the entire error message? We can't see the whole thing.

AhmedOmda (0)

@ash15khng
This is yhe error msg on pycharm
C:\Users\Omda\PycharmProjects\El-Omda01\venv\Scripts\python.exe C:/Users/Omda/PycharmProjects/El-Omda/game.py
Traceback (most recent call last):
File "C:/Users/Omda/PycharmProjects/El-Omda/game.py", line 248, in <module>
arcade.run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\window_commands.py", line 240, in run
pyglet.app.run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app__init.py", line 142, in run
event_loop.run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app\base.py", line 175, in run
self._run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app\base.py", line 187, in _run
timeout = self.idle()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app\base.py", line 314, in idle
window.dispatch_event('on_draw')
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\window__init
.py", line 1313, in dispatch_event
if EventDispatcher.dispatch_event(self, args) != False:
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\event.py", line 370, in dispatch_event
if handler(
args):
File "C:/Users/Omda/PycharmProjects/El-Omda/game.py", line 41, in on_draw
self.title = arcade.draw_text("BING BONG", 80, 380, arcade.color.AERO_BLUE, 140)
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\text.py", line 289, in draw_text
label.text_sprite_list.draw()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\sprite_list.py", line 590, in draw
fragment_shader=FRAGMENT_SHADER
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\shader.py", line 226, in program
(fragment_shader, GL_FRAGMENT_SHADER)
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\shader.py", line 114, in init
shader = compile_shader(shader_code, shader_type)
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\shader.py", line 257, in compile_shader
f"Shader compile failure ({result.value}): {msg.value.decode('utf-8')}")
arcade.shader.ShaderException: Shader compile failure (0): 0(2) : error C0201: unsupported version 330
0(3) : warning C7532: global type mat4 requires "#version 100" or later
0(6) : warning C7532: global type vec2 requires "#version 100" or later
0(11) : warning C7532: global type float requires "#version 100" or later
0(13) : warning C7532: global type vec4 requires "#version 100" or later
0(16) : error C5060: out can't be used with non-varying v_texture
0(17) : error C5060: out can't be used with non-varying v_color
0(20) : warning C7532: global type mat2 requir
Error in sys.excepthook:

Original exception was:

Process finished with exit code 1

here is the error on the pygame repl

C:\Users\Omda\PycharmProjects\El-Omda01\venv\Scripts\python.exe C:/Users/Omda/PycharmProjects/El-Omda/game.py
Traceback (most recent call last):
File "C:/Users/Omda/PycharmProjects/El-Omda/game.py", line 248, in <module>
arcade.run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\window_commands.py", line 240, in run
pyglet.app.run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app__init.py", line 142, in run
event_loop.run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app\base.py", line 175, in run
self._run()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app\base.py", line 187, in _run
timeout = self.idle()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\app\base.py", line 314, in idle
window.dispatch_event('on_draw')
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\window__init
.py", line 1313, in dispatch_event
if EventDispatcher.dispatch_event(self, args) != False:
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\pyglet\event.py", line 370, in dispatch_event
if handler(
args):
File "C:/Users/Omda/PycharmProjects/El-Omda/game.py", line 41, in on_draw
self.title = arcade.draw_text("BING BONG", 80, 380, arcade.color.AERO_BLUE, 140)
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\text.py", line 289, in draw_text
label.text_sprite_list.draw()
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\sprite_list.py", line 590, in draw
fragment_shader=FRAGMENT_SHADER
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\shader.py", line 226, in program
(fragment_shader, GL_FRAGMENT_SHADER)
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\shader.py", line 114, in init
shader = compile_shader(shader_code, shader_type)
File "C:\Users\Omda\PycharmProjects\El-Omda01\venv\lib\site-packages\arcade\shader.py", line 257, in compile_shader
f"Shader compile failure ({result.value}): {msg.value.decode('utf-8')}")
arcade.shader.ShaderException: Shader compile failure (0): 0(2) : error C0201: unsupported version 330
0(3) : warning C7532: global type mat4 requires "#version 100" or later
0(6) : warning C7532: global type vec2 requires "#version 100" or later
0(11) : warning C7532: global type float requires "#version 100" or later
0(13) : warning C7532: global type vec4 requires "#version 100" or later
0(16) : error C5060: out can't be used with non-varying v_texture
0(17) : error C5060: out can't be used with non-varying v_color
0(20) : warning C7532: global type mat2 requir
Error in sys.excepthook:

Original exception was:

Process finished with exit code 1