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

Issue with azuredevops service #1006

Closed
fslef opened this issue Aug 29, 2023 · 6 comments
Closed

Issue with azuredevops service #1006

fslef opened this issue Aug 29, 2023 · 6 comments

Comments

@fslef
Copy link

fslef commented Aug 29, 2023

I have setup the following service in the bugwarriorrc

[general]
targets = ado_scope1

[ado_scope1]
service = azuredevops
ado.PAT = <MyPAT>
ado.project = <MyProject>
ado.organization = <MyOrg>

My personal access token has the following permissions :
image

but when executing the bugwarrior-pull I am getting this error message:

CRITICAL:bugwarrior.config:
*************************************************
* There was a problem with your bugwarriorrc    *
*   'azuredevops' in [ado_scope1] is not a valid service.
* Here's an example template to help:           *
*************************************************

Any ideas what can be the issue root cause ?

@ryneeverett
Copy link
Collaborator

First issue is that you're looking at the latest documentation and not the stable documentation, but you're using the stable release of bugwarrior. This is an easy pitfall which we're now looking to address in #1007.

I know this because the configuration validation errors are much more helpful in develop (#849) and the azuredevops service has not made it into a stable release yet even though it was added a couple years ago (#808).

The winds are starting to suggest we cut a new release fairly soon but I'm afraid I can't give you much of a timeline. A lot of folks use the develop branch and that might be the best choice right now if you need azuredevops support.

@fslef
Copy link
Author

fslef commented Aug 30, 2023

Thanks for your feedback @ryneeverett

The installed the current bugwarrior instance using the pip install command.
I naturally used a pip uninstall command to uninstall it, then I tried to reinstall the latest version using the code provided in the doc (excepting I am using a Python3 command)

wget https://github.com/ralphbean/bugwarrior/tarball/master -O bugwarrior-latest.tar.gz
tar -xzvf bugwarrior-latest.tar.gz
cd ralphbean-bugwarrior-*
python3 setup.py install

I have restarted my terminal but I am still running the same issue.

What can I do next ?

@ryneeverett
Copy link
Collaborator

The problem I see is that you downloaded the master branch, but our development occurs on the develop branch.

@fslef
Copy link
Author

fslef commented Aug 30, 2023

Indeed sorry for the confusion :)

@fslef
Copy link
Author

fslef commented Aug 30, 2023

That was a good try but I'm still getting an error:

Traceback (most recent call last):
  File "/opt/homebrew/bin/bugwarrior-pull", line 33, in <module>
    sys.exit(load_entry_point('bugwarrior==1.8.0', 'console_scripts', 'bugwarrior-pull')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/francoislefebvre/Library/Python/3.11/lib/python/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/francoislefebvre/Library/Python/3.11/lib/python/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/francoislefebvre/Library/Python/3.11/lib/python/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/francoislefebvre/Library/Python/3.11/lib/python/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/bugwarrior-1.7.0-py3.11.egg/bugwarrior/command.py", line 62, in pull
    config = _try_load_config(main_section, interactive)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/bugwarrior-1.7.0-py3.11.egg/bugwarrior/command.py", line 35, in _try_load_config
    return load_config(main_section, interactive)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/bugwarrior-1.7.0-py3.11.egg/bugwarrior/config.py", line 238, in load_config
    validate_config(config, main_section)
  File "/opt/homebrew/lib/python3.11/site-packages/bugwarrior-1.7.0-py3.11.egg/bugwarrior/config.py", line 182, in validate_config
    if not get_service(service):
           ^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/bugwarrior-1.7.0-py3.11.egg/bugwarrior/services/__init__.py", line 41, in get_service
    return epoint.load()
           ^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2518, in load
    return self.resolve()
           ^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2524, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'bugwarrior.services.azuredevops'

I'm about to give up on using this tool.
Too bad, it had so much potential, and I was enthusiastic about it.

@ryneeverett
Copy link
Collaborator

I see now that downloading master was an error in our documentation. I'll get that fixed soon.

I'm afraid I can't offer much help as I haven't used ad hoc installation methods like these for a long time. I do recall that I encountered these kinds of issues with outdated entrypoints but I do not recall the solution. Maybe start a new shell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants