los-cocos / cocos-testcmp

0 stars 1 forks source link

problems trying to run in raspi3 #9

Closed ccanepa closed 3 years ago

ccanepa commented 3 years ago

raspi3 as a representative of unix-like, ie linux, macOs

And in anoter console, not en the environment

Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.version
<module 'numpy.version' from '/usr/lib/python3/dist-packages/numpy/version.py'>
>>> numpy.version.version
'1.16.2'

Running do_test again produces the same error

Now do_test goes farther, the error seem unrelated with numpy:

(py37_cmp) pi@raspberrypi:~/dev2/cocos-testcmp $ python do_test.py
gits.checkout - path: /home/pi/dev2/cocos-testcmp/work/pyglet
gits.checkout - path: /home/pi/dev2/cocos-testcmp/work/cocos
SnapshotSession.ensure_venv - py_cmd_venv: ['/home/pi/dev2/cocos-testcmp/work/pys/3.7.3/Scripts/python']
path logs: /home/pi/dev2/cocos-testcmp/work/pys/3.7.3/logs
Traceback (most recent call last):
  File "do_test.py", line 917, in <module>
    main(task, extra)
  File "do_test.py", line 864, in main
    compare(path_services)
  File "do_test.py", line 770, in compare
    diagnostic, cmp = ensure_cmp(path_services, db, tc.v_ref, tc.v_other)
  File "do_test.py", line 705, in ensure_cmp
    diagnostic, other_session = ensureSnapshotSession(path_services, db, conf_v_other)
  File "do_test.py", line 284, in ensureSnapshotSession
    diagnostic = snp_session.ensure_venv(path_services)
  File "do_test.py", line 489, in ensure_venv
    diagnostic = pip_dev_install_in_venv(py_cmd_venv, path_services.remembercases)
  File "do_test.py", line 204, in pip_dev_install_in_venv
    cm.cmd_run_ok(cmdline)
  File "/home/pi/dev2/cocos-testcmp/work/remembercases/remembercases/cmds.py", line 219, in cmd_run_ok
    encoding=encoding, timeout=timeout)
  File "/home/pi/dev2/cocos-testcmp/work/remembercases/remembercases/cmds.py", line 101, in cmd_run__py3
    cwd=cwd
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/dev2/cocos-testcmp/work/pys/3.7.3/Scripts/python': '/home/pi/dev2/cocos-testcmp/work/pys/3.7.3/Scripts/python'

looking into the venv, python's path is wrong, should be /home/pi/dev2/cocos-testcmp/work/pys/3.7.3/bin /bin, no /Scripts

fixed

ccanepa commented 3 years ago

fixed code problems, documented troubleshoting numpy install

commit f6d2a54077