Re: nvpy does not start after upgrade to 0.9.6 (latest version)... help!

33 views
Skip to first unread message

Charl P. Botha

unread,
Dec 23, 2015, 10:36:26 AM12/23/15
to calintel, nv...@googlegroups.com
Hi there Ray,

Let's keep this on the mailing list so that it might help other people.

1. What happens when you start with "nvpy --help"? If the right nvpy is being executed, you should see a message explaining how to use the --cmd command-line parameter. (I just want to see that nvpy is installed)

2. Is there anything up to date in your ~/.nvpy/nvpy.log ?

3. If 1 and 2 don't help, please try "strace nvpy" -- you'll see bunches of output, but the last few lines might tell us why nvpy is just hanging there not being useful.

See you,
Charl


2015-12-23 16:44 GMT+02:00 calintel <cali...@gmail.com>:
Hi Charl,

nvpy worked great for years,
    (UBUNTU 12.04 32-bit + Python 2.7.3).

But after I upgraded to v.0.9.6, today:
       sudo pip uninstall nvpy
       sudo pip install --upgrade --ignore-installed --no-deps nvpy

now, nvpy will not start at all.

Tried typing: nvpy in Terminal
and also clicking on the Desktop icon.

Nothing shows up,
even after several minutes wait...

I checked my home folder
and it has the file:
   .nvpy.cfg:
[nvpy]
sn_username = value ok ...
sn_password = value ok...

Help,  Charl!

RAY
cali...@gmail.com
(UBUNTU LINUX 12.04 32-bit + Python 2.7.3)

---


Charl P. Botha

unread,
Dec 23, 2015, 3:21:30 PM12/23/15
to calintel, nv...@googlegroups.com
Dear Ray,

Could you try doing: sudo pip install docutils

... and then try running nvpy again?

See you,
Charl

2015-12-23 19:48 GMT+02:00 calintel <cali...@gmail.com>:
Hi Charl
   - thanks for the quick reply!

Q1: 
What happens when you start with "nvpy --help"? If the right nvpy is being executed, you should see a message explaining how to use the --cmd command-line parameter. (I just want to see that nvpy is installed)

A1:
No, no message like that at all...
~$ nvpy --help
Traceback (most recent call last):
  File "/usr/local/bin/nvpy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: docutils
------------------------------------------------------------------------

Q2:
  Is there anything up to date in your ~/.nvpy/nvpy.log ?

A2:
Nope!
No nvpy.log entries for today Dec 23! = (today , after upgrade...).
Last most recent are all old entries,
from before the upgrade:
...
2015-12-13 22:18:51,098 - DEBUG - Retrieved full note list from server.
2015-12-13 22:18:51,695 - DEBUG - Synced new note 116 (317) from server.
2015-12-13 22:18:51,710 - DEBUG - Full sync complete.
2015-12-13 22:19:38,006 - DEBUG - modifydate "R prompt User input in scripts" resync
2015-12-13 22:19:42,114 - DEBUG - Updating note 07e6dd29514a4b3781dc960a85e6b37a (local key 07e6dd29514a4b3781dc960a85e6b37a) to server.
2015-12-13 22:19:42,775 - DEBUG - Server replies with updated note 07e6dd29514a4b3781dc960a85e6b37a
------------------------------------------------------------------------

Q3: 
If 1 and 2 don't help, please try "strace nvpy" -- you'll see bunches of output, but the last few lines might tell us why nvpy is just hanging there not being useful.

A3:
I pasted the output of "strace nvpy"
to Evernote:
   (just click "> Skip" in the EV welcome window
    to see the note contents...)

thanks Charl!

RAY
(UBUNTU LINUX 12.04 32-bit + Python 2.7.3)
<===

---



RAY
(UBUNTU LINUX 12.04 32-bit + Python 2.7.3)

---




Charl P. Botha

unread,
Dec 23, 2015, 3:32:18 PM12/23/15
to calintel, nv...@googlegroups.com
(BTW, I find it very strange that it's missing docutils -- the nvpy pip install should have installed docutils automatically as one of the nvpy dependencies)

Charl P. Botha

unread,
Dec 23, 2015, 3:32:29 PM12/23/15
to calintel, nv...@googlegroups.com
Err, sorry for the email storm... that's my bad. The command for upgrading states "--no-deps" (I'm sure there was a good reason for this long ago, but maybe not anymore)

After doing "sudo pip install docutils Markdown" you should be able to run nvpy as per usual.

Charl P. Botha

unread,
Jan 9, 2016, 4:55:15 AM1/9/16
to calintel, nv...@googlegroups.com
Glad to hear it worked!

(sending to mailing list for future reference!)

2015-12-24 14:21 GMT+02:00 calintel <cali...@gmail.com>:

On Wed, Dec 23, 2015 at 6:31 PM, Charl P. Botha <in...@charlbotha.com> wrote:
sudo pip install docutils Markdown

OK!  did:

    sudo pip install docutils Markdown

then clicked on my nvpy desktop icon and...
nvpy appeared in all its (updated) glory!
THANKS!!👍

So, your thinking and diagnostic steps
were right on the mark, Charl!!!

Works great, pls remember to update this
in the nvpy instructions page?
https://github.com/cpbotha/nvpy/blob/master/docs/installation.rst#integrating-with-your-linux-desktop-environment

Charl, merry Christmas to you and family
and best for 2016!!
(from all your nvpy users!!...)

Reply all
Reply to author
Forward
0 new messages