Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Python] Erreur de syntaxe près du symbole inattendu(résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Neuromancien
l33t
l33t


Joined: 03 Dec 2003
Posts: 867

PostPosted: Thu Jul 07, 2011 4:16 pm    Post subject: [Python] Erreur de syntaxe près du symbole inattendu(résolu) Reply with quote

Bonjour,

Un script Python avec les droits d'exécution et commençant par :
Code:
#/usr/bin/python
# -*- coding: iso-8859-15 -*-


me donne une erreur si je le lance directement :
Code:
Erreur de syntaxe près du symbole inattendu « ( »

(avec python <nom_script> aucun problème)

J'utilise Python 2.7 :
Code:
eselect python show
python2.7

J'ai beau chercher je ne trouve pas d'où vient le problème. Qui a une idée ?
_________________
emerge --info
dmesg
lspci
.config


Last edited by Neuromancien on Thu Jul 07, 2011 8:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1699
Location: 127.0.0.1

PostPosted: Thu Jul 07, 2011 5:37 pm    Post subject: Reply with quote

Ton shebang est faux.
Quote:

#!/usr/bin/python
Back to top
View user's profile Send private message
Neuromancien
l33t
l33t


Joined: 03 Dec 2003
Posts: 867

PostPosted: Thu Jul 07, 2011 8:42 pm    Post subject: Reply with quote

Merci.
_________________
emerge --info
dmesg
lspci
.config
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum