mbucc / punch-time-tracking

Automatically exported from code.google.com/p/punch-time-tracking
GNU General Public License v3.0
1 stars 0 forks source link

Execution issue #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded v1.3
2. Set alias
3. Ran program, received errors.

What is the expected output? What do you see instead?
Receiving multiple errors. See below for output.

What version of the product are you using? On what operating system?
v1.3 on Snow Leopard w/ Python 2.6.1

Please provide any additional information below.
: No such file or directory
from: can't read /var/mail/os.path
from: can't read /var/mail/os
~/development/source/scripts/punch.py: line 24: import: command not 
found
~/development/source/scripts/punch.py: line 25: import: command not 
found
~/development/source/scripts/punch.py: line 26: import: command not 
found
~/development/source/scripts/punch.py: line 27: import: command not 
found
~/development/source/scripts/punch.py: line 28: import: command not 
found
~/development/source/scripts/punch.py: line 29: import: command not 
found
: command not founddevelopment/source/scripts/punch.py: line 30: 
from: can't read /var/mail/optparse
: command not founddevelopment/source/scripts/punch.py: line 32: 
: command not founddevelopment/source/scripts/punch.py: line 33: 
: command not founddevelopment/source/scripts/punch.py: line 39: 
~/development/source/scripts/punch.py: line 40: syntax error near 
unexpected token `('
~/development/source/scripts/punch.py: line 40: `class 
PunchCom'andError(ValueError):

Original issue reported on code.google.com by groovygh...@gmail.com on 8 Dec 2009 at 1:53

GoogleCodeExporter commented 9 years ago
I just came across the same issue. It's because your alias is incorrectly set.

At first I put 

alias punch='$PUNCH-DIR/Punch.py' 

in my .bash_profile. However, the Punch.py file doesn't specify the shebang for 
python script so you need to explicitly call python. Doing the following fixed 
the issue:

alias punch='python $PUNCH-DIR/Punch.py' 

The GettingStarted page on the wiki does specify this; but I guess neither of 
us read that before trying.

Original comment by dor...@gmail.com on 14 Mar 2011 at 2:16