Skip to main content

License

With this program you can interactively investigate some polyhedra. I use this program myself and I am willing to share it with other who are interested. I use Ubuntu, as a consequence some problems might exist with windows.

Copyright (C) 2021 Marcel Tunnissen http://www.tunnissen.eu

License: GPLv2, see LICENCSE.txt

wxPython

When wxPython is installed through pip it is compiled. This can take quite some time (e.g. more than 15 minutes). This means that there should be c-compiler available at least. For a Debian Linux you would need have installed (e.g. through apt-get) the packages

  • build-essential
  • libgtk-3-dev and libwxgtk3.0-gtk3-dev (or whathever GTK version you are using)
  • python3-dev
  • libgl1-mesa-glx libglu1-mesa

The reason for me to choose wxPython over Tk was that I ran into quite some preformance problems with Tk. The disadvantage is that it can be a pain to install wxPython through pip.

If You Install through PyPI (pip install)

Alse here it is important to have the correct packages for building wxPython installed. See section wxPython" above.

Install

pip install orbitit

Run

python -m orbitit

If You Downloaded from Github Directly

Requirements

You will need:

  1. python 3.x: http://www.python.org
  2. wxPython: http://www.wxpython.org
  3. pyOpenGL: http://pyopengl.sourceforge.net/

Install

E.g. for Ubuntu or other Debian based Linux dist: sudo apt-get install python3 python3-pip

Then use pip to install other packages, e.g: pip3 install pyopengl wxpython

See section wxPython for more about installing wxPython through pip.

Run

Make sure the PYTHONPATH points out this directory, e.g. in Linux export PYTHONPATH=$PWD

Also make sure to have set the PYOPENGL_PLATFORM environment variable. On my system I do

source init_env
python orbitit

Errors

1.

If you get problems with a context not being valid, e.g. OpenGL.error.Error: Attempt to retrieve context when no valid context

Then this might be related to eht wrong PYOPENGL_PLATFORM In my case this problem was solved by

PYOPENGL_PLATFORM=egl python -m orbitit

2.

If you get problems with NotImplementedError on GLCanvas you probably built wxPython without the wxgtk support. See section wxPython above.

Metadata

Release files for orbitit 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orbitit 0.5.4
File Size Uploaded
orbitit-0.5.4.tar.gz 198.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orbitit 0.5.4
File Interpreter ABI Platform
orbitit-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 428.5 kB

Release files / orbitit-0.5.4.tar.gz

Download URL orbitit-0.5.4.tar.gz
Size 198.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8ec67aa71f2c483a5a4026ad4a99e36f7690a5270d34dbdb41ad8b02d175e7db
BLAKE2b-256 checksum
How to use checksums
11ea26bef5a8911cf24846c69e7c38b4d8cbc5c646969285feb8c2b7d72db114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

Release files / orbitit-0.5.4-py3-none-any.whl

Download URL orbitit-0.5.4-py3-none-any.whl
Size 229.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecda6cc0d3a33c8a0c2110c8b34f21473873a2bfd34aa381ef243db2fbdcc727
BLAKE2b-256 checksum
How to use checksums
909e4fd7986ab5062d155e2766c59ef27538bfd61e00765b9079eaa9ae5c987f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page