Skip to content

linluk/chaos

Repository files navigation

CHAOS

chaos.py is going to be a fractal generator for mandelbrot and julia sets.

  1. SETUP FOR DEVELOPMENT

1.1. Create a Virtual Environment with 'python3 -m venv venv' in your projects root directory.

1.2. Activate the Virtual Environment with '. venv/bin/activate'.

1.3. Install the Requirements with 'pip install -r requirements.txt'.

1.4. Have fun with fractals! (run: 'python chaos.py')

  1. BUILD

2.1. Make sure that you have activated the Virtual Environment.

2.2. run: 'pyinstaller --onefile chaos.py'

2.3. now you should find the executable: './dist/chaos/chaos'

2.5. More info: https://pythonhosted.org/PyInstaller/usage.html

  1. PROBLEMS:

3.1. If you have troubles installing Pillow (from the requirements.txt) chances are that there are missing dependencies. This worked for me 'apt install libjpeg9 zlibc libtiff5 libfreetype6 liblcms2-2 libwebp5
openjpeg-tools libjpeg9-dev zlib1g zlib1g-dev libtiff5-dev
libfreetype6-dev liblcms2-dev openjpeg-tools libjpeg-dev python3-dev'

3.2. If you run in an error like this: 'ImportError: cannot import name '_imagingtk'' you have to rebuild Pillow with tk/tcl support.

 3.2.1. find out wich version of tk/tcl your python version is using:
        run: 'python -m tkinter'. My version was 8.6

 3.2.2. Install development libs: 'apt install tk8.6-dev tcl8.6-dev'

 3.2.3. Rebuild Pillow:
        'pip install --force-reinstall --ignore-installed Pillow'

3.3. Sources: 3.3.1. python-pillow/Pillow#322

About

A Free Fractal Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages