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

Trouble installing Python module #18

Open
jurgispods opened this issue Dec 21, 2016 · 2 comments
Open

Trouble installing Python module #18

jurgispods opened this issue Dec 21, 2016 · 2 comments

Comments

@jurgispods
Copy link

Hi,

I'm having trouble installing the contents of the python-hadoop subfolder as a Python module. Here is what I tried:

  • Clone the repository
  • Add the python-hadoop folder to my PYTHONPATH
  • In a script executed under Python 3.5.2, import hadoop.io

I get the following error:

<my_working_dir>/Hadoop/python-hadoop/hadoop/__init__.py in <module>()
     18
     19 import io
---> 20 import util
     21

ImportError: No module named 'util'

I have tried various other import statements like

  • import hadoop
  • from hadoop import io
    but none of those work, either. This seems to be another issue with Python submodules and relative imports in the __init__.py files. But I don't quite know how to fix this. Any ideas?
@ganzinotti
Copy link

I get the same error

@weason-will
Copy link

i get the same error in python3.6

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

No branches or pull requests

3 participants