Spyder is working on Template but not on the VM

42 views
Skip to first unread message

Telkisir Hohenfels

unread,
Jul 18, 2018, 5:11:52 PM7/18/18
to qubes-users
Hello everyone,

I use Spyder as programming environment for python 3.5. Unfortunately, Spyder complains about missing dependencies (rope >= 0.9.4: NONE (NOK)). This problem is known for debian and I solved it by installing the needed dependencies.

What I do not understand is, that for VMs based on debian9.5 the problem still exists.

In Spyder:
Python 3.5.3
IPython 5.1.0 in the VM
IPython 6.4.0 in the Template

How can that be?

Sven Semmler

unread,
Jul 19, 2018, 10:31:36 AM7/19/18
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 07/18/2018 04:11 PM, 'Telkisir Hohenfels' via qubes-users wrote:
> IPython 5.1.0 in the VM IPython 6.4.0 in the Template
>
> How can that be?

Can you figure out in which path IPython is installed?

/Sven
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE18ry22WNibwI1qeq2m4We49UH7YFAltQoTEACgkQ2m4We49U
H7ZhXQ/8DAq6jYyvEDJRvE9OvAlBtz2MTjBMA07SRsJJftPmIqxx0W5M16o/nvOc
UMrjmu3Kms7FPLhvJH5IRNLe5Q5KqnIJxUCdDq2tv6qx4Lu5OIQFuRJpPAI7kzhG
c8x+/wShyJeqkgwRyaWkIGYauepW6A7Tt2FOqVgPI02vLLx9pb26+Ff+QOzm6zOC
jVBJn6WxABlPnFig+Wf+8xLtXEU4ORM+lNDh4SpWpUtm/mqyuROT5KtG83Dmfspj
LT1ekvKlVgax1Re10OzAkB6AmbruwVn4VMEmVB3xZ5DzbqOwh9Jke4/dljqx+YEt
h/kGTKsmLUmzjvHjeV3KKGingOIapp97BoXbKAO5npKYLeUWe4K9DQyeTMMMg7Hv
oyG3IacWzWH7thOWlBADrpErNOCKvWWtWg8CY9gEIxn+OUnT/+CWat56TScvnR34
v6S+fKSSELJ7/t+znxAB70G8Q8Y/DD6+Gv30pCo751CNIr26/bSHLLNq7U6Dn19H
5+AW3rQwUlpm/aePF5qIbWozRqKq4XbtWxS+o3Q6jnPcrEkfwFJkl+FQuqWOpV7i
Uow82Ze4DP+ySjBehaCCkmmMJqzJP6CWgr+7X676Wa8M2RxFCgpSk9tKuldP2asK
59358j44nGr1M5VBhhg4whqNKfiUQxZYWKkKeEylXN9TdOl8K8s=
=o/YE
-----END PGP SIGNATURE-----

Telkisir Hohenfels

unread,
Jul 23, 2018, 5:19:15 PM7/23/18
to qubes-users
Hi Sven,

thanks for the reply.

VM
/usr/lib/python3/dist-packages/IPython

Template
/usr/lib/python3/dist-packages/IPython
/rw/usrlocal/lib/python3.5/dist-packages/IPython

Am I right that the version of IPython 6.4.0 is in /rw/.. and the other in the /usr which is shared with the VM? Solution simply move the dist-packages to /usr ???

Sven Semmler

unread,
Jul 23, 2018, 7:56:09 PM7/23/18
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 07/23/2018 04:19 PM, 'Telkisir Hohenfels' via qubes-users wrote:
> Am I right that the version of IPython 6.4.0 is in /rw/.. and the
> other in the /usr which is shared with the VM? Solution simply
> move the dist-packages to /usr ???

I'm no Python user ... so I don't know if just moving them will do the
trick. But yes the stuff in /usr is part of the template that gets
used when the template is the basis for an AppVM. The stuff in /rw/ is
private to the VM instance.

In other words ... /rw/ is for the user and if you are installing
stuff in a template you want it to be global not user-specific.

Sorry, it's really simple but my brain can't find a simplier way of
explaining it at the moment.

/Sven
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE18ry22WNibwI1qeq2m4We49UH7YFAltWa30ACgkQ2m4We49U
H7YiWRAAtYW1THi6uHv7hRr4oQwXHabxX58SK2sIu9c3mbuwxsW7l8z74rG+xE2t
BjdtCmp92HL59BO27pN4kPHVQMIp416SfydMuiQiPqqpSUyy4wpxErheqKp6zuFm
3boyVRRmvS5ST7odGjj9voINdTeG99GhOL2wuJyNtE8ULiKQIUzay/urnwgvR6WP
FKeO44tpQELC5nmJgjf6KcevtXp8/53RaiALtRUWMQMiLVB3GFIw1BGQLzLh5VbZ
W2S7jzQuWTdiwWd0h2sBtvlY3l0I3qN5M3f6zRlmE+WFzywaVq7xBWI3T0DvVb4m
ed/L1Z3pN3JH5dkXSMvLi5rPzFXVH54+ATRVz+ua4vcNxLtaDtsPRRFblRRgC7lS
CEYlYeNlSTU1ZNZxEcPByGa1LpfA2KiN6/eK5JUqeWrErvApPz1hIy9fMI1KboLL
NxDIoQuCJLdIpeIAYRKalEPdVo0GCGJ2M8JrJ+hq3FMvffT+p4DRDIGlvvjiq1rJ
DVxzB/bakPdK9w/11JdHSO5BGy2acAwOWGLL0xDBsU8ehK2TSZbCUARpCql/d/EO
c8jMgRavEhnMCpJNmbmFbBSNGvLl+RhEN0zT3Amk9lmnYlgN+uzIfOzJ6w8FJpOr
Pdbnb5S3GsarPbF4W8ZNEP4D+ieHo2GAUQC/X7cmVYRI7pa2kjI=
=h7ic
-----END PGP SIGNATURE-----

Telkisir Hohenfels

unread,
Jul 24, 2018, 4:18:13 PM7/24/18
to qubes-users
I understand it, thanks

I am not used to linux yet but the best way seems to purge my template and install the programms in the /usr/ folder. How can I do that?

Sven Semmler

unread,
Jul 24, 2018, 4:52:20 PM7/24/18
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 07/24/2018 03:18 PM, 'Telkisir Hohenfels' via qubes-users wrote:
> I am not used to linux yet but the best way seems to purge my
> template and install the programms in the /usr/ folder. How can I
> do that?

I assume you haven't cloned the original template that came with
Qubes, but you modified it / installed your stuff in it. I'd recommend
the following steps:

1) clone the template you have right now
2) change the preferences of all vm's that use this template to use
the clone instead
3) uninstall / remove the template
4) reinstall clean template
5) clone the clean template and then do your install/modification to
that clone
6) when it all works, change the preferences of the VMs to use the new
clone

It is a good idea to leave the original template in it's virgin form
and do all modifications on clones.

Here are links to what you need:

https://www.qubes-os.org/doc/templates/#how-to-install-uninstall-and-rei
nstall

https://www.qubes-os.org/doc/tools/3.2/dom0/qvm-clone/

https://www.qubes-os.org/doc/tools/3.2/dom0/qvm-prefs/

and qvm-ls to see your current config. Many of these things can also
be done in the Qubes Manager using the GUI.

/Sven
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE18ry22WNibwI1qeq2m4We49UH7YFAltXkegACgkQ2m4We49U
H7aPihAAsr3blnavt/b8my+drH7DiAhSXpMrWZ5xVF57IvSDhSeLhAYahQunC+Qq
HAKnlLw9/8rTWe6Raechznm9F9ipA6wy9qQ2Pc/ePCnBjXv4qDeFDgOVNpRmXirk
b8h08ivNqdu5PexTEx8GuVtOQE5b5kElzCklkwjTIPNj3hIosKpqQYjPbrwscrTw
ZvXeaSog5xi5EdywNur1F/c0s+s26aOB+ETW4VgmHfUAKCNd4fZQRQOn/jXiriz4
l5lt1uknwvLPOcEpXJU/w5ikqKJtZcydpq07DVdpQCjF/JaNEZig3Iw3ycZUDgL+
edB1w5tZZuxenkRUv9U2/en2ClbUSO9wQmX4RZAD1PGsG5CHBXVh1qsuXGDGRUd1
MfSNaGP9OC4Mrxf0FHdG51fa83zioqDhf48e6KilTa0igG/X26LsQsoTtdBiIvb+
WB434MN4envoJccBjjTgmxPzzHGjjQJaewsA18/sxDNlmEjuimyRkj3wzWCu9ZXf
rEFlgYCilYDsg+ULGvKCj3I8O7lgbG/PdueDXOIEJwcoc5o9Ha0BUOxz+k5udZqt
wMX6wO/7O4fRgmSz6SWe2yz/ul7DiZiSa3azcteJnTJXHx1mX9gWM/55JwUB+n3A
I1gs9p7uAYhJwSxiKpEq3EhY3NcJ6kEIReFQYTj3URsk/MRZ7j4=
=Z9BL
-----END PGP SIGNATURE-----

Telkisir Hohenfels

unread,
Jul 25, 2018, 6:22:15 PM7/25/18
to qubes-users
Dear Sven,

Thanks for the checklist and the help. Actually, I use clones but the problem is that the installation of IPython is in the /rw folder. How do I change that? Simply go to usr/ and write install-cmd there or how can I achieved it? Otherwise the problem will still be there, isn't?

Update:
Problem was not IPython but version of rope by using
pip3 install rope_py3k

Suggested Solution:
After the fact that it is still in the root folder - even when using a new template from scratch as you described.

Solution: Install it on the VM manually.
It is the quick and dirty solution but since I do not know how to change installation folder it is also my only.

Reply all
Reply to author
Forward
0 new messages