"Entry point not found"

41 views
Skip to first unread message

Matthew Harris

unread,
Feb 2, 2017, 11:21:42 PM2/2/17
to Beancount
At some point in the past few weeks, I ceased to be able to run beancount. When I run bean-web, for example, I get

$ bean-web finances.beancount 
Traceback (most recent call last):
  File "/Users/mharris/homebrew/bin/bean-web", line 11, in <module>
    load_entry_point('beancount==2.0b13', 'console_scripts', 'bean-web')()
  File "/Users/mharris/homebrew/lib/python3.6/site-packages/pkg_resources/__init__.py", line 561, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/mharris/homebrew/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2630, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group, name),))
ImportError: Entry point ('console_scripts', 'bean-web') not found

I don't know if this was a beancount change or a change of my machine. FWIW, I'm running OS X with homebrew. You probably can't solve my problem for me, but can you point me in the right direction?

Thanks.


Matthew

Martin Blais

unread,
Feb 2, 2017, 11:50:23 PM2/2/17
to Beancount
I made a change to the installation:
The scripts apparently weren't appearing under Windows.
When I tested under Linux, it failed, so I made the change condition on platform = Windows & not setuptools.

Oh! I forgot to remove the old test options.
Here:

Update and try again.
LMK if it doesn't fix it.
Thanks for reporting,




--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/707b0b9f-555e-4c71-a4fc-b6ed11807e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Harris

unread,
Feb 3, 2017, 12:16:57 AM2/3/17
to Beancount
Well, now I get a different error:

$ bean-web finances.beancount

Traceback (most recent call last):

  File "/Users/mharris/homebrew/bin/bean-web", line 4, in <module>

    __import__('pkg_resources').run_script('beancount==2.0b13', 'bean-web')

  File "/Users/mharris/homebrew/lib/python3.6/site-packages/pkg_resources/__init__.py", line 739, in run_script

    self.require(requires)[0].run_script(script_name, ns)

  File "/Users/mharris/homebrew/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1486, in run_script

    raise ResolutionError("No script named %r" % script_name)

pkg_resources.ResolutionError: No script named 'bean-web'

To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.

Martin Blais

unread,
Feb 3, 2017, 12:22:12 AM2/3/17
to Beancount
Wait, how do you install it?
Send me all the details.
I have a macOS box here, I just tested this, it works for me.
pip3 install . , from the beancount directory.
It installs the script under /usr/local/bin




To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

Matthew Harris

unread,
Feb 3, 2017, 7:30:10 PM2/3/17
to Beancount
Interesting. I didn't know about that approach. My procedure has always been

# I haven't bothered to track down what I need to do to avoid the --insecure now.
hg pull --insecure
hg update
./setup install

This installs it in ~/homebrew/bin/.

I just tried 'pip3 install .', and that didn't help, but 'pip3 install . --upgrade' did. Now I'm running again.

Thanks.

Martin Blais

unread,
Feb 5, 2017, 5:54:41 PM2/5/17
to Beancount
Great.
Please do report it if you encounter the problem again.
(I suspect you had installed while I had the extra option and then did not force the reinstall over the previously installed files.)

To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages