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

Get an exe install to work #72

Open
emlynjdavies opened this issue Dec 7, 2020 · 3 comments · May be fixed by #92
Open

Get an exe install to work #72

emlynjdavies opened this issue Dec 7, 2020 · 3 comments · May be fixed by #92
Assignees
Labels
enhancement New feature or request size: 3 estimate multi-day

Comments

@emlynjdavies
Copy link
Contributor

emlynjdavies commented Dec 7, 2020

  1. Have a look at this (and talk to Emma):
    https://github.com/SINTEF/PySilCam/blob/pyinstaller/windows_installer

  2. Get silcam-gui to run from a complied exe

  3. Test processing of data using complied exe GUI

  4. Get the GUI to acquire images from the camera hardware after running a complied exe

  5. Integrate exe building into github actions so the exe can be downloaded by users

@emlynjdavies emlynjdavies added the enhancement New feature or request label Dec 7, 2020
@emlynjdavies
Copy link
Contributor Author

Traceback (most recent call last):
File "pysilcam\silcamgui\silcamgui.py", line 22, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "c:\users\emlynd\anaconda3\envs\silcam\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.dict)
File "pysilcam\oilgas.py", line 21, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in load_unlocked
File "c:\users\emlynd\anaconda3\envs\silcam\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.dict)
File "cmocean_init
.py", line 11, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "c:\users\emlynd\anaconda3\envs\silcam\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.dict)
File "cmocean\cm.py", line 32, in
File "numpy\lib\npyio.py", line 926, in loadtxt
File "numpy\lib_datasource.py", line 262, in open
File "numpy\lib_datasource.py", line 618, in open
OSError: C:\Users\emlynd\AppData\Local\Temp_MEI140722\cmocean\rgb\thermal-rgb.txt not found.
[8648] Failed to execute script silcamgui

@emlynjdavies emlynjdavies self-assigned this Dec 17, 2020
@nepstad
Copy link
Contributor

nepstad commented Dec 17, 2020

Try:
import os
import cmocean
cmocean_data_path = os.path.join(cmocean.path, 'rbg')
datas=[os.path.join(cmocean_data_path, f) for f in os.listdir(cmocean_data_path)]

@emlynjdavies emlynjdavies linked a pull request Dec 22, 2020 that will close this issue
@emlynjdavies emlynjdavies added the size: 3 estimate multi-day label Mar 3, 2021
@emlynjdavies
Copy link
Contributor Author

regarding hardware dependency installs, see this for including apt-get type commands within setuptools:
https://stackoverflow.com/questions/20288711/post-install-script-with-python-setuptools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size: 3 estimate multi-day
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants