Printrun/fr

From RepRap
Revision as of 18:14, 31 January 2012 by ThierryM (talk | contribs) (Linux: traduction)
Jump to: navigation, search

Printrun est un ensemble d'applications envoyant des instructions au format G-code, écrit par Kliment. Il inclut printcore (qui envoie le G-code de façon silencieuse), pronsole (qui permet d'envoyer du G-code présenté en ligne de commande), pronterface (qui envoie du G-code avec une interface graphique pour l'utilisateur), et une petite collection de scripts très utiles.

Installation

La dernière version de pronterface est disponible dans le dépôt github de Kliment; celle de skeinforge à l'adresse http://fabmetheus.crsndoo.com.

Linux

Avant d'installer Printrun, assurez-vous d'installer auparavant les dépendances nécessaires à la fois pour pronterface et skeinforge. Sous Ubuntu, ouvrez un terminal et tapez :

sudo apt-get install python python-serial python-wxgtk2.8 python-tk git-core

Maintenant, vous devez installer en premier pronterface, puis Skeinforge dans le répertoire d'installation de pronterface. Le petit script suivant qui vaut ce qu'il vaut, fait tout ceci pour vous :

#! /bin/bash
PRINTRUNDIR="$HOME/Printrun"
SKEINFORGEDIR="$PRINTRUNDIR/skeinforge"
cd $HOME
echo "Removing existing Printrun directory..."
rm -rf $PRINTRUNDIR
echo "Cloning Printrun..."
git clone https://github.com/kliment/Printrun.git
echo "Grabbing skeinforge..."
wget -P /tmp http://fabmetheus.crsndoo.com/files/41_reprap_python_beanshell.zip
echo "Unzipping skeinforge into Printrun directory..."
unzip -d $SKEINFORGEDIR /tmp/41_reprap_python_beanshell.zip
echo "Symlinking skeinforge inside Printrun directory..."
ln -s $SKEINFORGEDIR/* $PRINTRUNDIR/
echo "Cleaning up temporary installation files..."
rm -rf /tmp/41_reprap_python_beanshell.zip

Ubuntu

There are experimental packages for ubuntu (maverick natty oneiric precise):

sudo apt-add-repository ppa:richi-paraeasy/ppa
sudo apt-get update
sudo apt-get install printrun-gui

Debian

There are experimental packages for Debian (squeeze wheezy):

sudo echo "deb http://apt.ulrichard.ch/  squeeze main contrib non-free" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install printrun-gui

Windows

To make it work on Windows, get the following packages and install:

Or, use the ready-to-run version available at http://koti.kapsi.fi/~kliment/printrun/

Mac OSX

To make it work on OSX: (it's similar to linux in may ways, but different)

  • see instructions for Lion, and pre-Lion here

Utilisation

Une fois l'installation faite, pour lancer le programme, taper la ligne de commande suivante :

python pronterface.py

Sous Ubuntu, on pourra le démarrer en passant par le menu "Application" -> "Graphisme" -> "Printrun" ou en tapant la ligne de commande :

pronterface

Printrun fr.png

Vous voudrez peut-être aussi utiliser l'interface en ligne de commande sympa et discrète, pronsole en tapant :

python pronsole.py

Sous Ubuntu, il faudra taper tout simplement :

pronsole

Elle comporte une fonction d'aide en ligne en tapant la commande "help" ou "help <nom de l'instruction>".

Troubleshooting

Good to know that the settings used by Pronterface are not stored in the app folder but in the user's folder (e.g : ~/.pronsolerc (linux) C:\Users\yourname (windows)).

'python goes SyntaxError'

Got an error similar to this?

[~] python pronterface.py
 File "pronterface.py", line 15
   print _("WX is not installed. This program requires WX to run.")
         ^
SyntaxError: invalid syntax

This can happen if you use a linux distribution such as Archlinux.
You can easily solve this by executing the following instead:

python2 pronterface.py

Custom buttons don't appear

See also :