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

Bauh python 3.8 #40

Closed
rol216 opened this issue Dec 19, 2019 · 9 comments
Closed

Bauh python 3.8 #40

rol216 opened this issue Dec 19, 2019 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@rol216
Copy link

rol216 commented Dec 19, 2019

I have an issue with bauh after an update of Manjaro, that has updated Python from 3.7 to 3.8.
When I do an upgrade in bauh to update an AUR package, I have this message

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/bauh/view/util/translation.py", line 17, in __getitem__
    return self.current.__getitem__(item)
KeyError: 'arch.downloading.package'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/bauh/view/qt/thread.py", line 97, in run
    success = bool(self.manager.update(app.model, self.root_password, self))
  File "/usr/lib/python3.8/site-packages/bauh/view/core/controller.py", line 220, in update
    return man.update(app, root_password, handler)
  File "/usr/lib/python3.8/site-packages/bauh/gems/arch/controller.py", line 243, in update
    return self.install(pkg=pkg, root_password=root_password, watcher=watcher, skip_optdeps=True)
  File "/usr/lib/python3.8/site-packages/bauh/gems/arch/controller.py", line 663, in install
    res = self._install_from_aur(pkg.name, pkg.maintainer, root_password, ProcessHandler(watcher), dependency=False, skip_optdeps=skip_optdeps)
  File "/usr/lib/python3.8/site-packages/bauh/gems/arch/controller.py", line 636, in _install_from_aur
    handler.watcher.change_substatus('{} {}'.format(self.i18n['arch.downloading.package'], bold(file_name)))
  File "/usr/lib/python3.8/site-packages/bauh/view/util/translation.py", line 20, in __getitem__
    return self.default.__getitem__(item)
KeyError: 'arch.downloading.package'
Abandon (core dumped)

I don't know what to do…

@vinifmor
Copy link
Owner

What is your bauh version ?

@rol216
Copy link
Author

rol216 commented Dec 19, 2019

bauh 0.7.4
installed with manjaro package bauh 0.7.4-1

@vinifmor
Copy link
Owner

vinifmor commented Dec 19, 2019

Try reinstalling it and let me know if the error still happens. When the Python version was upgraded to 3.8, I had to reinstall it.

@rol216
Copy link
Author

rol216 commented Dec 19, 2019

same errors after I have reinstall it

@vinifmor
Copy link
Owner

Ok, let's do baby steps to try to figure out what is happening. What's your system's default language ? ( paste the result of the following command here -> python -c "import locale; print(locale.getdefaultlocale());" )

@rol216
Copy link
Author

rol216 commented Dec 19, 2019

python -c "import locale; print(locale.getdefaultlocale());"
('fr_FR', 'UTF-8')

@vinifmor vinifmor self-assigned this Dec 20, 2019
@vinifmor vinifmor added the bug Something isn't working label Dec 20, 2019
@vinifmor
Copy link
Owner

I could reproduce the issue and published a fix release to bauh-staging (AUR) for now. Could you install it and let me know if the issue has gone ? Thank you for your bug report.

@rol216
Copy link
Author

rol216 commented Dec 20, 2019

That works, issue has gone !
Thank you very much

@vinifmor
Copy link
Owner

Great. I will do some more testing here, and in the end of the day I will publish the official release

@vinifmor vinifmor mentioned this issue Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants