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

Arch linux last update "No module named 'vorta.views' #90

Closed
mygithubthrowaway opened this issue Dec 13, 2018 · 9 comments
Closed

Arch linux last update "No module named 'vorta.views' #90

mygithubthrowaway opened this issue Dec 13, 2018 · 9 comments

Comments

@mygithubthrowaway
Copy link

Traceback (most recent call last):
  File "/usr/bin/vorta", line 11, in <module>
    load_entry_point('vorta==0.6.0', 'gui_scripts', 'vorta')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/vorta/__main__.py", line 6, in <module>
    from vorta.application import VortaApp
  File "/usr/lib/python3.7/site-packages/vorta/application.py", line 12, in <module>
    from .views.main_window import MainWindow
ModuleNotFoundError: No module named 'vorta.views'
@mygithubthrowaway mygithubthrowaway changed the title Arch linux last update "No module named 'vorta.views'" Arch linux last update "No module named 'vorta.views' Dec 13, 2018
@m3nu
Copy link
Contributor

m3nu commented Dec 13, 2018

It correctly identifies the parent package from the relative import, then views, which is a folder containing all the UI is missing. Not sure how this would happen. Maybe some files are missing?

Since I didn't publish this to Arch, I can't say much about it. If there is anything I can do to fix this, let me know.

Until it's fixed, you can also install via pip3, as mentioned in the Readme.

@mygithubthrowaway
Copy link
Author

mygithubthrowaway commented Dec 13, 2018

the arch package simply download release from github and then install in the old pyhton fashion way:

python setup.py install

with this dependencies:

'borg' 
'python-appdirs' 
'python-apscheduler' 
'python-pyqt5' 
'python-peewee' 
'python-paramiko' 
'python-dateutil' 
'python-keyring' 
'python-sentry_sdk

[1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vorta

EDIT: i try with package maintainers, maybe it's not a vorta issue

@m3nu
Copy link
Contributor

m3nu commented Dec 14, 2018

Just tried this on a EC2 VM Release 2018.10.30. First I noticed that the Python package psutil is missing. It's used for some operations when mounting backups. Nothing critical, but won't start without it.

Next I hit the error you observed. The views folder was indeed missing. It seems I accidentally removed the __init__.py file to mark the folder as package. (Ooops) This would prevent setuptools from installing it.

I've already added it back and it will be in v0.6.1.

Very sorry for this mistake. And thanks for reporting.

@m3nu
Copy link
Contributor

m3nu commented Dec 14, 2018

Update with a fix is out. Marked the AUR package as outdated. So you should get the update soon.

@m3nu m3nu closed this as completed Dec 14, 2018
@m3nu
Copy link
Contributor

m3nu commented Dec 14, 2018

Actually this file was never there. So I'm surprised it worked before. It's still the closes explanation.

@mygithubthrowaway
Copy link
Author

Thanks so much!

@mygithubthrowaway
Copy link
Author

ps for testing purpuse you may use LXD for fast distro provisioning ;)

[1] (https://linuxcontainers.org/lxd/introduction/)

@bjo81
Copy link

bjo81 commented Dec 14, 2018

Update with a fix is out. Marked the AUR package as outdated. So you should get the update soon.

AUR package updated, includes now python-psutil-dependency.

@m3nu
Copy link
Contributor

m3nu commented Dec 14, 2018

Great. Hope it works now. If I can help with anything to smooth the process let me know.

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

3 participants