Issue 65 in trash-cli: getting syntax error while installing on centOS5 using source code

8 views
Skip to first unread message

tras...@googlecode.com

unread,
Apr 28, 2011, 1:19:37 PM4/28/11
to trash-c...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 65 by navidu...@gmail.com: getting syntax error while installing
on centOS5 using source code
http://code.google.com/p/trash-cli/issues/detail?id=65

What steps will reproduce the problem?
1. i installed python and python-setuptools on CentOS5. when i run python
setup.py install, then i get following error
-----------------------------------
[root@localhost trash-cli-0.11.3-r315]# python setup.py bdist_rpm
Traceback (most recent call last):
File "setup.py", line 50, in ?
import trashcli
File "/root/Desktop/trash-cli-0.11.3-r315/trashcli/__init__.py", line 2
from .version import version
^
SyntaxError: invalid syntax
=================================================

What version of the product are you using? On what operating system?

i downloaded tar.gz of trash-cli on its official site.


tras...@googlecode.com

unread,
Apr 28, 2011, 1:25:40 PM4/28/11
to trash-c...@googlegroups.com

Comment #1 on issue 65 by andrea.f...@gmail.com: getting syntax error while
installing on centOS5 using source code
http://code.google.com/p/trash-cli/issues/detail?id=65

Deaer user, what is the output of the following command on your machine?

# python --version

tras...@googlecode.com

unread,
Apr 28, 2011, 2:11:30 PM4/28/11
to trash-c...@googlegroups.com

Comment #2 on issue 65 by navidu...@gmail.com: getting syntax error while
installing on centOS5 using source code
http://code.google.com/p/trash-cli/issues/detail?id=65

i run your given command in CentOS but it did not show any valid output.Any
i installed python2.6 and above give error is fixed but
i am getting anther error after installing python2.6 version .

I run command python2.6 setup.py install
and got following error
============================
[root@localhost trash-cli-0.11.3-r315]# python2.6 setup.py install
running install
error: invalid Python installation: unable to open
/usr/lib/python2.6/config/Makefile (No such file or directory)

tras...@googlecode.com

unread,
Apr 28, 2011, 6:53:33 PM4/28/11
to trash-c...@googlegroups.com

Comment #3 on issue 65 by andrea.f...@gmail.com: getting syntax error while
installing on centOS5 using source code
http://code.google.com/p/trash-cli/issues/detail?id=65

Dear User,
maybe you need remove the hash '#' before the command:

python --version

tras...@googlecode.com

unread,
Apr 29, 2011, 3:14:40 AM4/29/11
to trash-c...@googlegroups.com

Comment #4 on issue 65 by navidu...@gmail.com: getting syntax error while
installing on centOS5 using source code
http://code.google.com/p/trash-cli/issues/detail?id=65

hmm:) sir i m not new in linux actually, i run python --version without
Hash in CentOS and i got error message and when i run same command in
Ubuntu, it works and it give me python version,

Your Trash-cli is working fine on Ubuntu OS , but now i am trying to use it
on CentOS/Fedora based Linux.

by "yum install python" command it installed python2.4, so as per trash-cli
requirement i installed rpm of python2.6. and now error of Syntax got fixed
but now i am getting following error
=====================================================


[root@localhost trash-cli-0.11.3-r315]# python2.6 setup.py install
running install
error: invalid Python installation: unable to open
/usr/lib/python2.6/config/Makefile (No such file or directory)

======================================================

Have you tested your utility on CentOS as well?? Guide me if i am doing
some thing wrong .

and Thanks for your reply...::)

Regards
Naveed Ahmad

tras...@googlecode.com

unread,
Apr 29, 2011, 12:41:18 PM4/29/11
to trash-c...@googlegroups.com

Comment #5 on issue 65 by navidu...@gmail.com: getting syntax error while
installing on centOS5 using source code
http://code.google.com/p/trash-cli/issues/detail?id=65

any update sir ? plz


tras...@googlecode.com

unread,
Apr 30, 2011, 4:01:46 AM4/30/11
to trash-c...@googlegroups.com
Updates:
Status: Invalid

Comment #6 on issue 65 by andrea.f...@gmail.com: getting syntax error while

installing on centOS5 using source code
http://code.google.com/p/trash-cli/issues/detail?id=65

I think that maybe your CentOS python installation is somewhat broken. Your
issue seems related to CentOS or your CentOS configuration rather that
trash-cli. When I have time I try to help users to resolve their problems
even when they aren't related to trash-cli but please note that trash-cli
is my hobby and I use my spare time to work on it and I work for free. In
this case I can't help you because is too outside the scope of my
commitment.

I would suggest you to use a generic mailing list about CentOS or Python
for getting actual help, I'll be glad if you would put
trash-c...@googlegroups.com in CC so I can follow the problem and the
solution.

Thank you

Reply all
Reply to author
Forward
0 new messages