Docs

Linux Setup

PopupCAD can run in python 2 or 3, but we recommend using python3. If you want to use python 2, there are only a few minor differences in the instructions

Install/Update Linux packages:

1
2
3
sudo apt-get update
sudo apt-get install dkms git synaptic libgeos-dev gfortran cmake python-qt4-gl phonon-backend-gstreamer
sudo apt-get install python3-pip spyder3 python3-pyside python3-shapely python3-yaml python3-scipy python3-setuptools cython3 python3-dev python3-sphinx python3-pyqt4.qtopengl

Optional: upgrade your system:

sudo apt-get upgrade

Install pip packages:

sudo pip3 install sympy pycollada ezdxf numpy-stl lxml pyopengl pyopengl_accelerate pyqtgraph pypoly2tri idealab_tools

Optional: set flag for systems without hardware video acceleration(for example if using virtualbox):

echo "export LIBGL_ALWAYS_INDIRECT=1" >> ~/.bashrc

Setup Git(if you haven’t already), using your own name and email:

1
2
git config --global user.name "LastName, Firstname"
git config --global user.email "email@address.com"

Check out the popupCAD git repository

cd ~
git clone https://github.com/popupcad/popupcad.git
cd ~/popupcad/
git checkout master
git pull

Add popupcad directory to PYTHONPATH:

1
2
echo "export PYTHONPATH=\$PYTHONPATH:~/popupcad" >> ~/.bashrc
source ~/.bashrc

Run popupCAD

  • From the terminal, navigate to the popupcad directory and type:
python3 popupcad.py
  • Or run using spyder a wonderful GUI for editing and debugging python programs. Open spyder in the program menu or by typing from the terminal:
spyder3
  • In the menu, go to tools–>preferences–>console–>external modules
  • Select PySide instead of PyQt for the QtPython bindings
  • From there you can navigate to the popupcad directory and open popupcad.py.
  • Hit f5 to run.