Navigation Menu

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

Error message tries to use attribute 'path_with_namespace' that does not exist #307

Closed
tibs opened this issue Jun 22, 2018 · 0 comments · Fixed by #329
Closed

Error message tries to use attribute 'path_with_namespace' that does not exist #307

tibs opened this issue Jun 22, 2018 · 0 comments · Fixed by #329

Comments

@tibs
Copy link

tibs commented Jun 22, 2018

Using pyup (version 1.01 within pipenv, using Python 3.6, running on Mac OS/X 10.13.4 High Sierra) I ran a command of the form:

$ pyup --repo=$REPO --user-token=$TOKEN --initial

which reported updating various packages and then fell over with a traceback:

    Traceback (most recent call last):
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/bin/pyup", line 11, in <module>
        sys.exit(main())
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/click/core.py", line 722, in __call__
        return self.main(*args, **kwargs)
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/click/core.py", line 697, in main
        rv = self.invoke(ctx)
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/click/core.py", line 895, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/click/core.py", line 535, in invoke
        return callback(*args, **kwargs)
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/pyup/cli.py", line 45, in main
        bot.update(branch=branch, initial=initial)
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/pyup/bot.py", line 125, in update
        scheduled=kwargs.get("scheduled", False)
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/pyup/bot.py", line 202, in apply_updates
        updates=updates,
      File "/Users/tonibb01/.local/share/virtualenvs/pyup-55eKFErJ/lib/python3.6/site-packages/pyup/bot.py", line 433, in commit_and_pull
        repo=self.user_repo.path_with_namespace, title=title)
    AttributeError: 'Repository' object has no attribute 'path_with_namespace'

This appears to be triggered by the code:

                    logger.error("Empty commit at {repo}, unable to update {title}.".format(
                        repo=self.user_repo.path_with_namespace, title=title)

...that is, it was trying to report a useful error code, but path_with_namespace does not exist.

The provider for the repository was github, and pip freeze reports:

certifi==2018.4.16
chardet==3.0.4
click==6.7
dparse==0.4.1
idna==2.7
Jinja2==2.10
MarkupSafe==1.0
packaging==17.1
pipenv==2018.5.18
PyGithub==1.39
PyJWT==1.6.4
pyparsing==2.2.0
python-gitlab==1.4.0
pyupio==1.0.1
PyYAML==3.12
requests==2.19.1
safety==1.8.1
six==1.11.0
tqdm==4.23.4
urllib3==1.23
virtualenv==16.0.0
virtualenv-clone==0.3.0
joshowen pushed a commit to joshowen/pyup that referenced this issue Nov 20, 2018
joshowen pushed a commit to joshowen/pyup that referenced this issue Nov 20, 2018
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

Successfully merging a pull request may close this issue.

1 participant