Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

fix(docs): Install the client using pip #1324

Closed
wants to merge 1 commit into from

Conversation

johanneswuerbach
Copy link
Contributor

The previous install method was failing on my mac (python installed using homebrew) with the following error.

Traceback (most recent call last):
  File "/usr/local/bin/deis", line 8, in <module>
    load_entry_point('deis==0.10.0', 'console_scripts', 'deis')()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2221, in load_entry_point
    return ep.load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Users/johannes/Documents/Web/deis/client/deis.py", line 8, in <module>
    load_entry_point('deis==0.10.0', 'console_scripts', 'deis')()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2221, in load_entry_point
    return ep.load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1959, in load
    raise ImportError("%r has no %r attribute" % (entry,attr))
ImportError: <module 'deis' from '/Users/johannes/Documents/Web/deis/client/deis.py'> has no 'main' attribute

Install the deis client using pip
@deis-bot
Copy link

Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it.

@johanneswuerbach
Copy link
Contributor Author

Sorry, this is also not working, but pip install deis=='0.9.0' works as expected. Is there anything special required for building the client locally?

Error when running deis:

Traceback (most recent call last):
  File "/usr/local/bin/deis", line 9, in <module>
    load_entry_point('deis==0.10.0', 'console_scripts', 'deis')()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2439, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2155, in load
    ['__name__'])
  File "/usr/local/lib/python2.7/site-packages/deis.py", line 8, in <module>
    load_entry_point('deis==0.10.0', 'console_scripts', 'deis')()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2439, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2160, in load
    raise ImportError("%r has no %r attribute" % (entry, attr))
ImportError: <module 'deis' from '/usr/local/lib/python2.7/site-packages/deis.pyc'> has no 'main' attribute

@bacongobbler
Copy link
Member

From all of my google knowledge on this issue, it looks like there might be a circular dependency hiding somewhere in the client code. You mention that you're trying to install v0.9.0, but how come in your stack trace it shows v0.10.0? Could be something to do with that (not blaming you at all, just wondering if there's something loading a circular dependency here)

@johanneswuerbach
Copy link
Contributor Author

I was trying to install 0.10 from source, which doesn't work. Installing 0.9 from pypi works fine.

@bacongobbler
Copy link
Member

I have a hunch that it's due to this line

@johanneswuerbach
Copy link
Contributor Author

Arg, I symlinked the deis client previously and then installed 0.9 using pip, which changed the deis.py in my local repository 😇. After deleting the symlink and reseting my local checkout, everything installed fine.

@bacongobbler
Copy link
Member

glad to hear that you were able to resolve this issue. let us know if it pops up again and we'll look into it further. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants