Disaster with pip install module... -> upgraded my whole installation to 3.8 without confirmation

42 views
Skip to first unread message

Ossi Viljakainen

unread,
Dec 5, 2015, 10:30:22 AM12/5/15
to tryton
Hi guys, 

I made a disaster with pip install when I treid to install a new module...

I was stupid and I did not take backup, taking it for granted that I have the backup from last night. So I went ahead, and did pip install <modulename>. I did not realize I have to be careful and specify the version when installing a package. As soon as it was running, I realized that hell got loose  – without asking for confirmation pip upgraded the whole thing to 3.8 and started uninstalling the whole system:

 Found existing installation: trytond-sale 3.0.0
    Uninstalling trytond-sale:
      Successfully uninstalled trytond-sale
  Running setup.py install for trytond-sale
    
  Found existing installation: trytond-currency 3.0.0
    Uninstalling trytond-currency:
      Successfully uninstalled trytond-currency
  Running setup.py install for trytond-currency
  

As soon as I realized, I tried downgraded it back by doing "sudo pip install trytond==3.0.0" 
But after downgrading back to 3.0, I can't get trytond started. I think it completely f*ed up my installation. So now when I try to start tryrond I'm getting: 

Traceback (most recent call last): 
  File "/usr/local/bin/trytond", line 13, in <module> 
    import trytond 
ImportError: No module named trytond 

So then went to my backup disk, to realize that last backup had run couple of months back, due to error in script.
Anyhow, I hope the DB is intact, and I have all the files backed up since there was the last change few months back.

So this piece is here just for me to vent out my shock & frustration, and for all you as a yet another reminder to ensure you have the backups before messing up with anything.

Cédric Krier

unread,
Dec 5, 2015, 11:00:08 AM12/5/15
to tryton
On 2015-12-05 07:30, Ossi Viljakainen wrote:
> I made a disaster with pip install when I treid to install a new module...

It was discussed here:
http://www.tryton.org/~irclog/2015-12-05.log.html#t2015-12-05%2014:10

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages