Author

Topic: Does offline install work? (Read 149 times)

newbie
Activity: 3
Merit: 0
December 21, 2017, 07:29:13 AM
#6
Ok solved my own problem, easy when you suss it, using this as source
http://www.webupd8.org/2009/11/get-list-of-packages-and-dependencies.html

On the offline machine in terminal

sudo apt-get --print-uris --yes install python3-pyqt5 | grep ^\' | cut -d\' -f2 >mydownload.txt

this creates a list of package urls required for python3-pyqt5 into a "mydownload.txt" file

copy mydownload.txt file to a folder on an online linux machine, open folder in terminal and use wget to download packages

wget --input-file mydownload.txt

now copy this folder with the downloaded packages (6) back to the offline machine and open folder in terminal and run

sudo dpkg -i *.deb

bingo, all packages required by electrum 3.0.3 installed without having to put the machine online
newbie
Activity: 3
Merit: 0
December 16, 2017, 04:00:42 PM
#5
Thanks for the replies  Smiley
Short update

Just tried a new install of Manjaro on offline machine, same error as with Mint, guessing your machine must have done an apt-get at some time!

Off to try the other suggestions, just wish 3.0.3 would simply work like 2.9.3 did!
hero member
Activity: 616
Merit: 603
December 16, 2017, 01:13:20 PM
#4
I'm currently facing similar problem, running Mint 18.3 from live USB and I haven't figured how to install pyqt offline, but even worse, I have to run
Code:
sudo apt-get install python3-pyqt5
each time I restart this system, because it doesn't get saved. So, if anyone knows how to install pyqt on live USB once and for all, I would be very grateful!

As for offline installation of pyqt, I have found this guide - https://gist.github.com/jacoblyles/80898d6388880334f3e5a78785702ccc but it seems too complex for me. If someone knows an easier way, I would like to hear it too.

There's a way to install PyQT5 using pip when you're offline, after you've downloaded the .whl file for PyQT5 from https://pypi.python.org/pypi/PyQt5/5.9.2

1) You'll need to ensure pip is already installed (probably also Python3-setuptools). Once that's done, donwload PyQT's .whl (wheel) file from https://pypi.python.org/pypi/PyQt5/5.9.2 and save it to a directory locally.

2) Open up terminal, navigate to the directory created in step 1 and run 'pip3 install /path/to/PyQT5.whl' or 'pip install /path/to/PyQT5.whl'.

This should probably have PyQT5 now installed for you without having to access the internet. Let me know if this worked for you or if you need any help.

Edit: Btw I'm not so sure about the LiveUSB run. Is your live USB installation amnesic? As in something like TAILS where after a reboot all data and installations are removed? If that's the case you could keep this .whl file too in the same USB drive, and build a script to run it after booting.
legendary
Activity: 3038
Merit: 2162
December 16, 2017, 12:34:07 PM
#3
I'm currently facing similar problem, running Mint 18.3 from live USB and I haven't figured how to install pyqt offline, but even worse, I have to run
Code:
sudo apt-get install python3-pyqt5
each time I restart this system, because it doesn't get saved. So, if anyone knows how to install pyqt on live USB once and for all, I would be very grateful!

As for offline installation of pyqt, I have found this guide - https://gist.github.com/jacoblyles/80898d6388880334f3e5a78785702ccc but it seems too complex for me. If someone knows an easier way, I would like to hear it too.
hero member
Activity: 616
Merit: 603
December 16, 2017, 11:36:21 AM
#2
I was able to download and run electrum in offline mode. The steps I followed on manjaro (Arch linux):

1) Download electrum-3.0.3.tar.gz (Source) from electrum.org
2) Extract it anywhere on your system and just double click 'electrum' within that folder or open up a terminal within this folder and type in 'python3 electrum' or 'python electrum' (depending on how you have python3 installed).

This should have electrum running, and it should read your wallet.dat file if it's already there, and show you transactions until where you had previously synchronized it and would be in 'Not Connected' mode. This will run electrum as like you've said the packages folder contains all the dependencies to have electrum running and functioning.

3) Then to install electrum perform - sudo python3 setup.py install.
newbie
Activity: 3
Merit: 0
December 16, 2017, 08:31:48 AM
#1
I have an air gapped machine running Mint 18.1, Electrum 2.9.3 runs fine.

No 3.0.* version of Electrum will run (./electrum or python3 electrum), all throw up this: Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5'

I obviously do NOT want to connect, the Electrum readme says:

If you downloaded the official package (tar.gz), you can run
Electrum from its root directory, without installing it on your
system; all the python dependencies are included in the 'packages'
directory. To run Electrum from its root directory, just do::  ./electrum

Has anyone managed to do a standalone non connected install, if so, how?

Cheers
Jump to: