Comments (2)
So I have figured out that there is no folder for display (anymore, or never has been?) therefore one has to use:
from pegl import display
dpy = display.Display()
However, then one retrieves:
raise ImportError('Pegl not supported on {}'.format(sys.platform))
ImportError: Pegl not supported on linux
# Native library import.
libname = 'libEGL'
if sys.platform == 'linux2':
libclass, libext = ctypes.CDLL, '.so'
elif sys.platform == 'darwin':
libclass, libext = ctypes.CDLL, '.dylib'
elif sys.platform == 'win32':
libclass, libext = ctypes.WinDLL, '.dll'
else:
raise ImportError('Pegl not supported on {}'.format(sys.platform))
After replacing 'linux2' with 'linux' the code is working
from pegl.
Thanks for reporting this, and I apologise for it taking so long (two years!) to get a reply. My original use case for this code fell through, so it's sat unused for a long time. The issues you reported were with the version available on PyPI, and they (or at least the second one) were corrected in development code that was never shipped.
As it is, I'm working on this code again now, and the imports have changed, so I'm closing this issue. Thanks again for reporting it!
from pegl.
Related Issues (15)
- Native library import does not support linux3 HOT 4
- Work with current aenum version HOT 1
- Easier way to specify attributes
- Test on Python 3.10 HOT 1
- More robust EGL library loading on a range of platforms HOT 8
- Fix exception in surface and context destructors HOT 1
- Cant run minimal example HOT 6
- pegl doesn't provide the OpenGL API HOT 2
- a
- pegl version format HOT 5
- Set up automated testing
- Exception in Display destructor HOT 2
- Publish documentation
- Automate releases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pegl.