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

AttributeError: 'NoneType' object has no attribute 'rfind' #2

Closed
andrewm4894 opened this issue Mar 16, 2017 · 3 comments
Closed

AttributeError: 'NoneType' object has no attribute 'rfind' #2

andrewm4894 opened this issue Mar 16, 2017 · 3 comments

Comments

@andrewm4894
Copy link

I'm trying to follow the steps here: https://github.com/alexvanboxel/airflow-gcp-examples

I cloned the master branch from https://github.com/apache/incubator-airflow.git

Then i tried to run:

python setup.py install

But got the below error:

    saved_exc.resume()
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 243, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 273, in run
    return func()
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 242, in runner
    _execfile(setup_script, ns)
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-ApY4bL/python-daemon-2.1.2/setup.py", line 86, in <module>
    assert tag == version, (tag, version)
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/tmp/easy_install-ApY4bL/python-daemon-2.1.2/version.py", line 640, in __init__
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 269, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 826, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1092, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1104, in obtain
    return installer(requirement)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 378, in fetch_build_egg
    cmd.ensure_finalized()
  File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 246, in finalize_options
    'dist_version': self.distribution.get_version(),
  File "/tmp/easy_install-ApY4bL/python-daemon-2.1.2/version.py", line 656, in get_version
  File "/tmp/easy_install-ApY4bL/python-daemon-2.1.2/version.py", line 651, in get_version_info
  File "/tmp/easy_install-ApY4bL/python-daemon-2.1.2/version.py", line 552, in get_changelog_path
  File "/usr/lib/python2.7/posixpath.py", line 122, in dirname
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Not sure what is going on here - this is a separate fresh machine on GCP but i'm getting the same error here as i was following along to the luigi examples.

I've attached the full stdout and stderr in a text file.

log.txt

@alexvanboxel
Copy link
Owner

Could you try to first do pip install python-daemon ? I think you need todo this as sudo (not sure)

https://pypi.python.org/pypi/python-daemon/

@andrewm4894
Copy link
Author

Thanks, that seems to have worked.

I also needed to do:

sudo apt-get install libxml2-dev libxslt1-dev

Going to start playing with the examples now - cheers.

@alexvanboxel
Copy link
Owner

alexvanboxel commented Mar 19, 2017 via email

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

2 participants