homu icon indicating copy to clipboard operation
homu copied to clipboard

TypeError: user() missing 1 required positional argument: 'username'

Open ticki opened this issue 9 years ago • 9 comments

I get following error, after trying to deploy Homu in a Python virtualenv:

Traceback (most recent call last):
  File "/usr/local/bin/homu", line 9, in <module>
    load_entry_point('homu==0.2.0', 'console_scripts', 'homu')()
  File "/usr/local/lib/python3.4/dist-packages/homu-0.2.0-py3.4.egg/homu/main.py", line 870, in main
    user = gh.user()
TypeError: user() missing 1 required positional argument: 'username'

ticki avatar Feb 21 '16 18:02 ticki

@Ticki what version of github3.py do you have installed? Also, how are you deploying Homu? (e.g., pip, setup.py install, something else)

sigmavirus24 avatar Feb 21 '16 18:02 sigmavirus24

what version of github3.py do you have installed?

That latest one. It was installed only a few hours ago.

Also, how are you deploying Homu? (e.g., pip, setup.py install, something else)

I use the development version through setup.py (python3).

ticki avatar Feb 21 '16 19:02 ticki

That latest one. It was installed only a few hours ago.

That is not an answer. What's the version string?

I use the development version through setup.py (python3).

As in python setup.py install or python setup.py develop. There's a difference between the two commands and the exact command is important.

sigmavirus24 avatar Feb 21 '16 19:02 sigmavirus24

Also, the version string for github3.py can be obtained by doing python -c 'import github3; print(github3.__version__)'

sigmavirus24 avatar Feb 21 '16 19:02 sigmavirus24

That is not an answer. What's the version string?

Sorry, I'm not very familiar with python:

~> python -c 'import github3; print(github3.__version__)'
0.9.5

As in python setup.py install or python setup.py develop. There's a difference between the two commands and the exact command is important.

I used python setup.py install.

ticki avatar Feb 21 '16 20:02 ticki

Hm. That's surprising. That exception is something I'd expect from github3.py 1.0.*

sigmavirus24 avatar Feb 23 '16 22:02 sigmavirus24

@Ticki If you installed from a source checkout (IE: git clone) can you also provide the hash? You can snag it with git rev-parse HEAD.

ashcrow avatar Mar 18 '16 18:03 ashcrow

2104e4b154d2fba15d515b478a5bd6105c1522f6

ticki avatar Mar 18 '16 19:03 ticki

I can reproduce this when using python 3 in the lastest HEAD.

ashcrow avatar Apr 02 '16 16:04 ashcrow