Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Cannot import yahoo after installing with pip. #4

Open
@chrislawlor

Description

@chrislawlor

I used pip to install yos-social-python into a virtualenv on Linux Mint 10. Subsequently, attempting to import the 'yahoo' module caused an ImportError - No module named yahoo.

I installed the package with:
pip install -e git+https://github.com/yahoo/yos-social-python.git#egg=yos-social-python

I found that my easy-install.pth file had the following entry:
/home/clawlor/.virtualenvs/my_env/src/yos-social-python

When the yahoo package was actually located at:
/home/clawlor/.virtualenvs/my_env/src/yos-social-python/src

This seems to be caused by listing the packages improperly in the setup.py script. According to http://docs.python.org/distutils/setupscript.html#listing-whole-packages, you'd need to have an__init__.py file in the src directory if you wanted to list the packages the way they currently are listed:

package_dir={'yahoo': 'src/yahoo', (etc...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions