learnleapfly / gamecamp Goto Github PK
View Code? Open in Web Editor NEWGame Camp is a set of tutorials and resoures aimed at helping anyone learn to make mobile games using Python and Kivy.
License: MIT License
Game Camp is a set of tutorials and resoures aimed at helping anyone learn to make mobile games using Python and Kivy.
License: MIT License
When running kivy, if I plugin a mouse and I disable the touchpad (not the touchscreen). Running a Kivy app returns the following error:
[INFO ] [Text ] Provider: sdl2
[INFO ] [ProbeSysfs ] device match: /dev/input/event7
[INFO ] [MTD ] Read event from </dev/input/event7>
[INFO ] [Base ] Start application main loop
[INFO ] [GL ] NPOT texture support is available
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/dorian.pula/pycon_sprints/kivy/kivy/input/providers/mtdev.py", line 219, in _thread_run
_device = Device(_fn)
File "/home/dorian.pula/pycon_sprints/kivy/kivy/lib/mtdev.py", line 143, in __init__
self._fd = os.open(filename, os.O_NONBLOCK | os.O_RDONLY)
OSError: [Errno 13] Permission denied: '/dev/input/event7'
[INFO ] [Base ] Leaving application in progress...
This error goes away, when the mouse in unplugged and the touchpad is reenabled.
Environment:
From Carl:
(kivy2)ghostwheel:kivy carl$ python setup.py build_ext --inplace
Using distutils
Detected Cython version 0.24
This version of Cython is untested with Kivy. While this version may
work perfectly fine, it is possible that you may experience issues. If
you do have issues, please downgrade to a supported version. It is
best to use the newest supported version, 0.23, but the minimum
supported version is 0.20.
If your platform provides a Cython package, check if you can downgrade
to a supported version. Otherwise, uninstall the platform package and
install Cython via pip:
pip install -I Cython==0.23
User distribution detected, avoid portable command.
Using this graphics system: OpenGL ES 2
OSX framework used, force to x86_64 only
OSX ARCHFLAGS are: -arch x86_64
Found sdl2 frameworks: /Library/Frameworks/SDL2.framework
Found sdl2 frameworks: /Library/Frameworks/SDL2_ttf.framework
Found sdl2 frameworks: /Library/Frameworks/SDL2_image.framework
Found sdl2 frameworks: /Library/Frameworks/SDL2_mixer.framework
Check if SDL2_mixer smpeg2 have an @executable_path
WARNING: Your SDL2_mixer version is invalid
WARNING: The smpeg2 framework embedded in SDL2_mixer contains a
WARNING: reference to @executable_path that will fail the
WARNING: execution of your application.
WARNING: We are going to change:
WARNING: from: @executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2
WARNING: to: @rpath/../../../../SDL2.framework/Versions/A/SDL2
WARNING: A problem occured while running install_name_tool -change @executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2 @rpath/../../../../SDL2.framework/Versions/A/SDL2 /Library/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 (code 1)
b"error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open input file: /Library/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 for writing (Permission denied)\nerror: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't lseek to offset: 4096 in file: /Library/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 for writing (Bad file descriptor)\nerror: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't write new headers in file: /Library/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 (Bad file descriptor)\nerror: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't lseek to offset: 270336 in file: /Library/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 for writing (Bad file descriptor)\nerror: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't write new headers in file: /Library/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 (Bad file descriptor)\nerror: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't close written on input file: /Library/Frameworks/SDL2_mixer.framework/Versions/A/Frameworks/smpeg2.framework/Versions/A/smpeg2 (Bad file descriptor)\n"
WARNING: Unable to apply the changes, sorry.
Activate SDL2 compilation
Xcode detected at b'/Applications/Xcode.app/Contents/Developer', and using OS X10.11 sdk
/Users/carl/anaconda/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'dependency_links'
warnings.warn(msg)
/Users/carl/anaconda/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'setup_requires'
warnings.warn(msg)
/Users/carl/anaconda/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running build_ext
Build configuration is:
* use_rpi = 0
* use_mali = 0
* use_egl = 0
* use_opengl_es2 = 1
* use_opengl_debug = 0
* use_opengl_mock = 0
* use_glew = 0
* use_sdl2 = 1
* use_ios = 0
* use_mesagl = 0
* use_x11 = 0
* use_gstreamer = 1
* use_avfoundation = 1
* use_osx_frameworks = 1
* debug_gl = 0
* debug = False
Detected compiler is unix
cythoning kivy/graphics/instructions.pyx to kivy/graphics/instructions.c
building 'kivy.graphics.instructions' extension
creating build
creating build/temp.macosx-10.5-x86_64-3.5
creating build/temp.macosx-10.5-x86_64-3.5/kivy
creating build/temp.macosx-10.5-x86_64-3.5/kivy/graphics
gcc -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/carl/anaconda/include -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/Users/carl/anaconda/include/python3.5m -c kivy/graphics/instructions.c -o build/temp.macosx-10.5-x86_64-3.5/kivy/graphics/instructions.o -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks -arch x86_64
In file included from kivy/graphics/instructions.c:4:
/Users/carl/anaconda/include/python3.5m/Python.h:25:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
error: command 'gcc' failed with exit status 1
From George:
The linux install instructions have:
sudo yum install SDL2
sudo yum install SDL2-devel
CentOS 7, SDL2_mixer, and SDL2_ttf don't seem to exist in repositories (though it's possible I just haven't found the right repos)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.