Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #40

Closed
wants to merge 2 commits into from
Closed

Update README.md #40

wants to merge 2 commits into from

Conversation

mimi89999
Copy link
Contributor

No description provided.

@@ -10,6 +10,8 @@ Apache, though we will be expanding it to other platforms.

`sudo apt-get install python python-setuptools python-dev python-augeas gcc swig dialog`

`sudo pip install python2-pythondialog`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line below should already satisfy this dependency. Does it not?

@mimi89999
Copy link
Contributor Author

Yes

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

Could you please provide the full output of python setup.py install --user?

@mimi89999
Copy link
Contributor Author

running install
running bdist_egg
running egg_info
writing requirements to letsencrypt.egg-info/requires.txt
writing letsencrypt.egg-info/PKG-INFO
writing top-level names to letsencrypt.egg-info/top_level.txt
writing dependency_links to letsencrypt.egg-info/dependency_links.txt
writing entry points to letsencrypt.egg-info/entry_points.txt
reading manifest file 'letsencrypt.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'letsencrypt.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
copying letsencrypt/client/client.py -> build/lib.linux-armv6l-2.7/letsencrypt/client
copying letsencrypt/client/display.py -> build/lib.linux-armv6l-2.7/letsencrypt/client
creating build/bdist.linux-armv6l/egg
creating build/bdist.linux-armv6l/egg/letsencrypt
copying build/lib.linux-armv6l-2.7/letsencrypt/init.py -> build/bdist.linux-armv6l/egg/letsencrypt
creating build/bdist.linux-armv6l/egg/letsencrypt/scripts
copying build/lib.linux-armv6l-2.7/letsencrypt/scripts/init.py -> build/bdist.linux-armv6l/egg/letsencrypt/scripts
copying build/lib.linux-armv6l-2.7/letsencrypt/scripts/main.py -> build/bdist.linux-armv6l/egg/letsencrypt/scripts
creating build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/configurator.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/options-ssl.conf -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/.ca_offerings -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/logger.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/validator.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/choc_cert_extensions.cnf -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/recovery_token_challenge.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/client.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/recovery_contact_challenge.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/init.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/display.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/setup.sh -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/interactive_challenge.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/ca_offerings -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/le_util.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
creating build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/challengeobject.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/certificateRequest.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/challengeRequest.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/signature.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/statusRequest.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/jwk.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/defer.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/revocationRequest.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/challenge.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/revocation.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/certificate.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/error.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/authorizationRequest.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/responseobject.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/schemata/authorization.json -> build/bdist.linux-armv6l/egg/letsencrypt/client/schemata
copying build/lib.linux-armv6l-2.7/letsencrypt/client/crypto_util.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/acme.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/challenge.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/CONFIG.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
copying build/lib.linux-armv6l-2.7/letsencrypt/client/sni_challenge.py -> build/bdist.linux-armv6l/egg/letsencrypt/client
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/init.py to init.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/scripts/init.py to init.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/scripts/main.py to main.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/configurator.py to configurator.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/logger.py to logger.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/validator.py to validator.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/recovery_token_challenge.py to recovery_token_challenge.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/client.py to client.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/recovery_contact_challenge.py to recovery_contact_challenge.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/init.py to init.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/display.py to display.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/interactive_challenge.py to interactive_challenge.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/le_util.py to le_util.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/crypto_util.py to crypto_util.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/acme.py to acme.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/challenge.py to challenge.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/CONFIG.py to CONFIG.pyc
byte-compiling build/bdist.linux-armv6l/egg/letsencrypt/client/sni_challenge.py to sni_challenge.pyc
creating build/bdist.linux-armv6l/egg/EGG-INFO
copying letsencrypt.egg-info/PKG-INFO -> build/bdist.linux-armv6l/egg/EGG-INFO
copying letsencrypt.egg-info/SOURCES.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying letsencrypt.egg-info/dependency_links.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying letsencrypt.egg-info/entry_points.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying letsencrypt.egg-info/not-zip-safe -> build/bdist.linux-armv6l/egg/EGG-INFO
copying letsencrypt.egg-info/requires.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying letsencrypt.egg-info/top_level.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
creating 'dist/letsencrypt-0.1-py2.7.egg' and adding 'build/bdist.linux-armv6l/egg' to it
removing 'build/bdist.linux-armv6l/egg' (and everything under it)
Processing letsencrypt-0.1-py2.7.egg
removing '/home/pi/.local/lib/python2.7/site-packages/letsencrypt-0.1-py2.7.egg' (and everything under it)
creating /home/pi/.local/lib/python2.7/site-packages/letsencrypt-0.1-py2.7.egg
Extracting letsencrypt-0.1-py2.7.egg to /home/pi/.local/lib/python2.7/site-packages
letsencrypt 0.1 is already the active version in easy-install.pth
Installing letsencrypt script to /home/pi/.local/bin

Installed /home/pi/.local/lib/python2.7/site-packages/letsencrypt-0.1-py2.7.egg
Processing dependencies for letsencrypt==0.1
Searching for python2-pythondialog==3.0.1
Best match: python2-pythondialog 3.0.1
Processing python2_pythondialog-3.0.1-py2.7.egg
python2-pythondialog 3.0.1 is already the active version in easy-install.pth

Using /home/pi/.local/lib/python2.7/site-packages/python2_pythondialog-3.0.1-py2.7.egg
Searching for pycrypto==2.6
Best match: pycrypto 2.6
Adding pycrypto 2.6 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Searching for M2Crypto==0.21.1
Best match: M2Crypto 0.21.1
Adding M2Crypto 0.21.1 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Searching for jsonschema==0.2
Best match: jsonschema 0.2
Adding jsonschema 0.2 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Searching for requests==0.12.1
Best match: requests 0.12.1
Adding requests 0.12.1 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for letsencrypt==0.1

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

Using /home/pi/.local/lib/python2.7/site-packages/python2_pythondialog-3.0.1-py2.7.egg => so "python2-pythondialog" is already installed. Could you please paste the runtime exception that suggests otherwise? Also, are you able to import dialog in a Python interactive session?

@mimi89999
Copy link
Contributor Author

Yes, I'm able to import dialog in a Python interactive session

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

So what is the problem that your commit tries to solve?

@mimi89999
Copy link
Contributor Author

What I pasted here is after I executed sudo pip install python2-pythondialog on my server.

@mimi89999
Copy link
Contributor Author

Before I was getting this error:
Traceback (most recent call last):
File "./letsencrypt.py", line 121, in
main()
File "./letsencrypt.py", line 93, in main
c.authenticate(args, redirect, eula)
File "/home/pi/lets-encrypt-preview-master/letsencrypt/client/client.py", line 63, in authenticate
if not display.generic_yesno(f.read(), "Agree", "Disagree"):
File "/home/pi/lets-encrypt-preview-master/letsencrypt/client/display.py", line 284, in generic_yesno
return display.generic_yesno(message, yes_label, no_label)
File "/home/pi/lets-encrypt-preview-master/letsencrypt/client/display.py", line 101, in generic_yesno
a = self.d.yesno(message, HEIGHT, WIDTH, yes_label = yes, no_label = no)
File "/usr/lib/pymodules/python2.7/dialog.py", line 1571, in yesno
**kwargs)[0]
File "/usr/lib/pymodules/python2.7/dialog.py", line 825, in _perform
child_rfd)
File "/usr/lib/pymodules/python2.7/dialog.py", line 765, in _wait_for_program_termination
"perhaps the dialog-like program could not be executed; "
dialog.PythonDialogErrorBeforeExecInChildProcess:

#38

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

What OS are you running exactly?

@mimi89999
Copy link
Contributor Author

Debian

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

Debian stable (wheezy)? I'm not able to reproduce your error. Please run git log --oneline | head -n1 and paste the output.

@mimi89999
Copy link
Contributor Author

I'm not using git.
I'm on Debian wheezy.

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

Did you download zip then? When? What version of the code are you running? Are you sure you're running latest code from master? I would strongly advise to use git, which would help to solve this problem.

Could you please, download the code again, and follow instructions from README.md one by one? Does it work this way?

@mimi89999
Copy link
Contributor Author

I downloaded the zip with wget https://github.com/letsencrypt/lets-encrypt-preview/archive/master.zip 2-3 hours ago.

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

For some reason, you're running system wide pythondialog instead of the python2-pythondialog from ~/.local... Could you please try to sudo apt-get remove python-dialog and rerun sudo ./letsencrypt.py?

@mimi89999
Copy link
Contributor Author

It work, but if I sudo pip uninstall python2-pythondialog it doesn't.

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

Okay, please run the following in order:

sudo pip uninstall python2-pythondialog >/dev/null 2>&1
python setup.py install --user
sudo ./letsencrypt.py

Does it work?

Also, please paste the output of sudo python -c 'import sys; print sys.path'

@mimi89999
Copy link
Contributor Author

No, it doesn't.
The output of sudo python -c 'import sys; print sys.path':
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7']

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

Are you 100% sure that you invoke as a non-root user:

pi$ python setup.py install --user
pi$ sudo ./letsencrypt.py

and not

pi$ SUDO python seup.py install --user
pi$ sudo ./letsencrypt.py

instead?

@jdkasten
Copy link
Contributor

That is correct... you can invoke it as a non root user

On Thu, Nov 20, 2014 at 2:05 PM, Jakub Warmuz notifications@github.com
wrote:

Are you 100% sure that you invoke as a non-root user:

pi$ python setup.py install --user
pi$ sudo ./letsencrypt.py

and not

pi$ SUDO python seup.py install --user
pi$ sudo ./letsencrypt.py

instead?


Reply to this email directly or view it on GitHub
#40 (comment)
.

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

@mimi89999 "No, it doesn't." => please paste exact error message after attempting steps found in #40 (comment)

@kuba
Copy link
Contributor

kuba commented Nov 20, 2014

Please close this pull request and let's move our discussion over to #41, where I provide test results from different systems.

@jdkasten
Copy link
Contributor

Thanks for doing this investigation @kuba.

@jdkasten jdkasten closed this Nov 20, 2014
pconrad-fb pushed a commit to pconrad-fb/certbot that referenced this pull request Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants