vitalyrodnenko / geeknote

Console client for Evernote.
2.1k stars 331 forks source link

setuptools #293

Open alkresin opened 9 years ago

alkresin commented 9 years ago

First of all I want to say that this is a good idea to create such a tool like geeknote and say thanks to authors. Now about the problem. I got it immedeately after trying to install geeknote:

"ImportError: no module named setuptools"

I understand, that if I will learn a bit the python environment, will search the Internet, I'll find this extension and will be possible to download and install it. But why this information is absent in the docs ? Or authors suppose that I should be familiar with python programming environment to use the geeknote ?

alkresin commented 9 years ago

Just to clarify my questions: 1) As far as I know, python is an interpretive language, so the compilation and linking are not required and .py files may be executed directly. So, what the setup.py does ? 2) Is there a way to avoid installing setuptools ? 3) If no, how to install it ?

dwlf commented 9 years ago

@alkresin it would likely help if you started with the OS and version you are installing to and the exact steps you performed.

alkresin commented 9 years ago

Debian 7. I did it exactly as docs says: got the sources with 'git clone ', changed the current dir to geeknote/ and run the command: python setup.py install

"ImportError: no module named setuptools" - that was the answer.

dwlf commented 9 years ago

@alkresin you did the first step?

# Install dependencies. (This example for Debian-based systems):
$ [sudo] apt-get update; [sudo] apt-get -y install python-setuptools
alkresin commented 9 years ago

Sorry, I really missed this. Thanks for your patience. But now, after installing python-setuptools, I get the following when execute 'python setup.py install' or 'python setup.py test':

Error on http://pypi.python.org/simple/thrift/: [Errno -2] Name or service not known -- Some packages > may not be found! Couldn't find index page for 'thrift' (maybe misspelled?)

Probably, this happens because that computer is behind the proxy. Is there a way to tell setuptools to use a proxy ?

dwlf commented 9 years ago

Sorry, I don't have Debian installed and I was not able to duplicate the issue in a docker container. Did you "apt-get update; apt-get upgrade" if you haven't done so recently?

What I tried:

$ docker run -it debian:7
# apt-get update; apt-get -y install git python-setuptools
# python --version
Python 2.7.3
# git clone git://github.com/VitaliyRodnenko/geeknote.git
# cd geeknote
# python setup.py install
# geeknote login
kzys commented 9 years ago

Maybe you can specify the location of the proxy server, to use the proxy from setup.py

% HTTP_PROXY=http://user:password@your-company-proxy.com:8080 python setup.py install
...

Please see http://stackoverflow.com/a/12144756 for the detail.