GithubHelp home page GithubHelp logo

Comments (8)

guillaumebrg avatar guillaumebrg commented on June 1, 2024

Thanks for reporting!

I can't seem to be able to reproduce the issue with my environment.

If you need the whole log to help with debugging, please let me know :)

Yes please, the whole log might help

from sense.

M-Davies avatar M-Davies commented on June 1, 2024

I'm using pyenv to test the various versions (and python -m pip install <package> to install the dependencies):

conda activate and pip install (note I need to use sudo to create and non-sudo to activate. Maybe that's related?):

(base) ➜  20bn-realtimenet-master git:(main) βœ— sudo conda create -y -n realtimenet python=3.6
Password:
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/morgan/opt/miniconda3/envs/realtimenet

  added / updated specs:
    - python=3.6


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2020.10.14-0
  certifi            pkgs/main/osx-64::certifi-2020.11.8-py36hecd8cb5_0
  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1
  libedit            pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  openssl            pkgs/main/osx-64::openssl-1.1.1h-haf1e3a3_0
  pip                pkgs/main/osx-64::pip-20.2.4-py36hecd8cb5_0
  python             pkgs/main/osx-64::python-3.6.12-h26836e1_2
  readline           pkgs/main/osx-64::readline-8.0-h1de35cc_0
  setuptools         pkgs/main/osx-64::setuptools-50.3.1-py36hecd8cb5_1
  sqlite             pkgs/main/osx-64::sqlite-3.33.0-hffcf06c_0
  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  wheel              pkgs/main/noarch::wheel-0.35.1-pyhd3eb1b0_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3


Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate realtimenet
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) ➜  20bn-realtimenet-master git:(main) βœ— sudo conda activate realtimenet 

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.


(base) ➜  20bn-realtimenet-master git:(main) βœ— conda activate realtimenet
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— python -m pip install -r requirements.txt
Requirement already satisfied: torch==1.5.1 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (1.5.1)
Requirement already satisfied: numpy==1.16.2 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 3)) (1.16.2)
Requirement already satisfied: opencv-python==3.4.3.18 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 4)) (3.4.3.18)
Requirement already satisfied: queuelib==1.5.0 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 5)) (1.5.0)
Requirement already satisfied: docopt==0.6.2 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 6)) (0.6.2)
Requirement already satisfied: tensorflow==1.14.0 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 9)) (1.14.0)
Requirement already satisfied: keras==2.2.4 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 10)) (2.2.4)
Requirement already satisfied: coremltools==3.3 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 11)) (3.3)
Requirement already satisfied: h5py==2.10.0 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 12)) (2.10.0)
Requirement already satisfied: future in /Users/morgan/.local/lib/python3.6/site-packages (from torch==1.5.1->-r requirements.txt (line 2)) (0.18.2)
Requirement already satisfied: tensorflow-estimator<1.15.0rc0,>=1.14.0rc0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.14.0)
Requirement already satisfied: wheel>=0.26 in /Users/morgan/.pyenv/versions/3.6.12/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.35.1)
Requirement already satisfied: termcolor>=1.1.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.1.0)
Requirement already satisfied: astor>=0.6.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.8.1)
Requirement already satisfied: wrapt>=1.11.1 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.12.1)
Requirement already satisfied: absl-py>=0.7.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.11.0)
Requirement already satisfied: gast>=0.2.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.4.0)
Requirement already satisfied: google-pasta>=0.1.6 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.2.0)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.1.2)
Requirement already satisfied: six>=1.10.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.15.0)
Requirement already satisfied: tensorboard<1.15.0,>=1.14.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.14.0)
Requirement already satisfied: protobuf>=3.6.1 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (3.14.0)
Requirement already satisfied: grpcio>=1.8.6 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.33.2)
Requirement already satisfied: keras-applications>=1.0.6 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.0.8)
Requirement already satisfied: pyyaml in /Users/morgan/.local/lib/python3.6/site-packages (from keras==2.2.4->-r requirements.txt (line 10)) (5.3.1)
Requirement already satisfied: scipy>=0.14 in /Users/morgan/.local/lib/python3.6/site-packages (from keras==2.2.4->-r requirements.txt (line 10)) (1.5.4)
Requirement already satisfied: werkzeug>=0.11.15 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (1.0.1)
Requirement already satisfied: markdown>=2.6.8 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (3.3.3)
Requirement already satisfied: setuptools>=41.0.0 in /Users/morgan/.pyenv/versions/3.6.12/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (50.3.2)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in /Users/morgan/.local/lib/python3.6/site-packages (from markdown>=2.6.8->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (3.1.0)
Requirement already satisfied: zipp>=0.5 in /Users/morgan/.local/lib/python3.6/site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (3.4.0)

Resources in right folder:

(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— ls resources/backbone 
strided_inflated_efficientnet.ckpt strided_inflated_mobilenet.ckpt

Execution of gesture recognition file (using PYTHONPATH=./ python -v scripts/run_gesture_recognition.py):
output.txt
Line 1514 is the line that crashes out without an error message as mentioned above

from sense.

guillaumebrg avatar guillaumebrg commented on June 1, 2024

note I need to use sudo to create and non-sudo to activate. Maybe that's related?

Maybe... Do you know why you need sudo to create the environment? That sounds weird to me.

After you've run conda activate realtimenet, can you check the output of which python? It should point to the python of your environment. That's what I get:

(realtimenet) guillaume@agent-smith:~/code/20bn-realtimenet$ which python
/home/guillaume/install/anaconda/envs/realtimenet/bin/python

from sense.

M-Davies avatar M-Davies commented on June 1, 2024

Maybe... Do you know why you need sudo to create the environment? That sounds weird to me.

I don't know. It's weird as only conda create requires sudo, conda activate needs to run without sudo otherwise it fails. I would have thought it was because of the way I installed conda if it wasn't for the latter

(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— which python 
/Users/morgan/.pyenv/shims/python

That's likely pyenv. I tried placing the anaconda path first and that produced the same error

(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— python --version 
Python 3.6.12 :: Anaconda, Inc.
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— which python    
/Users/morgan/opt/miniconda3/envs/realtimenet/bin/python
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— python -m pip install -r requirements.txt 
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: torch==1.5.1 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (1.5.1)
Requirement already satisfied: numpy==1.16.2 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 3)) (1.16.2)
Requirement already satisfied: opencv-python==3.4.3.18 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 4)) (3.4.3.18)
Requirement already satisfied: queuelib==1.5.0 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 5)) (1.5.0)
Requirement already satisfied: docopt==0.6.2 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 6)) (0.6.2)
Requirement already satisfied: tensorflow==1.14.0 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 9)) (1.14.0)
Requirement already satisfied: keras==2.2.4 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 10)) (2.2.4)
Requirement already satisfied: coremltools==3.3 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 11)) (3.3)
Requirement already satisfied: h5py==2.10.0 in /Users/morgan/.local/lib/python3.6/site-packages (from -r requirements.txt (line 12)) (2.10.0)
Requirement already satisfied: future in /Users/morgan/.local/lib/python3.6/site-packages (from torch==1.5.1->-r requirements.txt (line 2)) (0.18.2)
Requirement already satisfied: google-pasta>=0.1.6 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.2.0)
Requirement already satisfied: termcolor>=1.1.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.1.0)
Requirement already satisfied: tensorboard<1.15.0,>=1.14.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.14.0)
Requirement already satisfied: protobuf>=3.6.1 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (3.14.0)
Requirement already satisfied: astor>=0.6.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.8.1)
Requirement already satisfied: six>=1.10.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.15.0)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.1.2)
Requirement already satisfied: absl-py>=0.7.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.11.0)
Requirement already satisfied: grpcio>=1.8.6 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.33.2)
Requirement already satisfied: keras-applications>=1.0.6 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.0.8)
Requirement already satisfied: gast>=0.2.0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.4.0)
Requirement already satisfied: wrapt>=1.11.1 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.12.1)
Requirement already satisfied: tensorflow-estimator<1.15.0rc0,>=1.14.0rc0 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (1.14.0)
Requirement already satisfied: wheel>=0.26 in /Users/morgan/opt/miniconda3/envs/realtimenet/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.35.1)
Requirement already satisfied: pyyaml in /Users/morgan/.local/lib/python3.6/site-packages (from keras==2.2.4->-r requirements.txt (line 10)) (5.3.1)
Requirement already satisfied: scipy>=0.14 in /Users/morgan/.local/lib/python3.6/site-packages (from keras==2.2.4->-r requirements.txt (line 10)) (1.5.4)
Requirement already satisfied: werkzeug>=0.11.15 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (1.0.1)
Requirement already satisfied: setuptools>=41.0.0 in /Users/morgan/opt/miniconda3/envs/realtimenet/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (50.3.1.post20201107)
Requirement already satisfied: markdown>=2.6.8 in /Users/morgan/.local/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (3.3.3)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in /Users/morgan/.local/lib/python3.6/site-packages (from markdown>=2.6.8->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (3.1.0)
Requirement already satisfied: zipp>=0.5 in /Users/morgan/.local/lib/python3.6/site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (3.4.0)

I also tried running pip install as sudo -H, which installed some new packages but also produced the same error:

(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— sudo -H python -m pip install -r requirements.txt
Collecting torch==1.5.1
  Downloading torch-1.5.1-cp36-none-macosx_10_9_x86_64.whl (80.5 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80.5 MB 3.6 MB/s 
Collecting numpy==1.16.2
  Downloading numpy-1.16.2-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (13.9 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 13.9 MB 3.0 MB/s 
Collecting opencv-python==3.4.3.18
  Downloading opencv_python-3.4.3.18-cp36-cp36m-macosx_10_6_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (42.3 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 42.3 MB 158 kB/s 
Collecting queuelib==1.5.0
  Downloading queuelib-1.5.0-py2.py3-none-any.whl (13 kB)
Collecting docopt==0.6.2
  Downloading docopt-0.6.2.tar.gz (25 kB)
Collecting tensorflow==1.14.0
  Downloading tensorflow-1.14.0-cp36-cp36m-macosx_10_11_x86_64.whl (105.8 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 105.8 MB 3.5 MB/s 
Collecting keras==2.2.4
  Using cached Keras-2.2.4-py2.py3-none-any.whl (312 kB)
Collecting coremltools==3.3
  Downloading coremltools-3.3-cp36-none-macosx_10_15_intel.whl (3.5 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3.5 MB 4.0 MB/s 
Collecting h5py==2.10.0
  Downloading h5py-2.10.0-cp36-cp36m-macosx_10_6_intel.whl (3.0 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3.0 MB 4.1 MB/s 
Collecting future
  Downloading future-0.18.2.tar.gz (829 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 829 kB 2.1 MB/s 
Collecting grpcio>=1.8.6
  Downloading grpcio-1.33.2-cp36-cp36m-macosx_10_9_x86_64.whl (3.4 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3.4 MB 1.6 MB/s 
Requirement already satisfied: wheel>=0.26 in /Users/morgan/opt/miniconda3/envs/realtimenet/lib/python3.6/site-packages (from tensorflow==1.14.0->-r requirements.txt (line 9)) (0.35.1)
Collecting wrapt>=1.11.1
  Downloading wrapt-1.12.1.tar.gz (27 kB)
Collecting gast>=0.2.0
  Downloading gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting tensorboard<1.15.0,>=1.14.0
  Downloading tensorboard-1.14.0-py3-none-any.whl (3.1 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3.1 MB 3.2 MB/s 
Collecting absl-py>=0.7.0
  Downloading absl_py-0.11.0-py3-none-any.whl (127 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 127 kB 4.0 MB/s 
Collecting astor>=0.6.0
  Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting protobuf>=3.6.1
  Downloading protobuf-3.14.0-cp36-cp36m-macosx_10_9_x86_64.whl (1.0 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.0 MB 4.0 MB/s 
Collecting keras-preprocessing>=1.0.5
  Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 42 kB 2.2 MB/s 
Collecting tensorflow-estimator<1.15.0rc0,>=1.14.0rc0
  Downloading tensorflow_estimator-1.14.0-py2.py3-none-any.whl (488 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 488 kB 3.8 MB/s 
Collecting six>=1.10.0
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting termcolor>=1.1.0
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Collecting keras-applications>=1.0.6
  Downloading Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 50 kB 4.5 MB/s 
Collecting google-pasta>=0.1.6
  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 57 kB 835 kB/s 
Collecting pyyaml
  Downloading PyYAML-5.3.1.tar.gz (269 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 269 kB 4.1 MB/s 
Collecting scipy>=0.14
  Downloading scipy-1.5.4-cp36-cp36m-macosx_10_9_x86_64.whl (28.8 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 28.8 MB 1.6 MB/s 
Requirement already satisfied: setuptools>=41.0.0 in /Users/morgan/opt/miniconda3/envs/realtimenet/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0->-r requirements.txt (line 9)) (50.3.1.post20201107)
Collecting werkzeug>=0.11.15
  Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 298 kB 2.7 MB/s 
Collecting markdown>=2.6.8
  Downloading Markdown-3.3.3-py3-none-any.whl (96 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 96 kB 2.6 MB/s 
Collecting importlib-metadata; python_version < "3.8"
  Downloading importlib_metadata-3.1.0-py2.py3-none-any.whl (9.3 kB)
Collecting zipp>=0.5
  Downloading zipp-3.4.0-py3-none-any.whl (5.2 kB)
Building wheels for collected packages: docopt, future, wrapt, termcolor, pyyaml
  Building wheel for docopt (setup.py) ... done
  Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13704 sha256=072a6dcafaba6ad32d7f8037cdd432d01ff20a26e5a42e43ba03c74fe721ddad
  Stored in directory: /private/var/root/Library/Caches/pip/wheels/3f/2a/fa/4d7a888e69774d5e6e855d190a8a51b357d77cc05eb1c097c9
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=de598de82a852449bad08f2c3fc36eb8679b9e6d1c76f0144daf7eda4bc59f46
  Stored in directory: /private/var/root/Library/Caches/pip/wheels/6e/9c/ed/4499c9865ac1002697793e0ae05ba6be33553d098f3347fb94
  Building wheel for wrapt (setup.py) ... done
  Created wheel for wrapt: filename=wrapt-1.12.1-cp36-cp36m-macosx_10_9_x86_64.whl size=32370 sha256=f320603e22ee45ebb65a2d049bd2c64fd2bf1b049cb002506535108ac3910448
  Stored in directory: /private/var/root/Library/Caches/pip/wheels/32/42/7f/23cae9ff6ef66798d00dc5d659088e57dbba01566f6c60db63
  Building wheel for termcolor (setup.py) ... done
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4830 sha256=77ccd33524ea26b0310c3dd314ed07bdb3c6c01a11ddfc58e485917b7bc84cc4
  Stored in directory: /private/var/root/Library/Caches/pip/wheels/93/2a/eb/e58dbcbc963549ee4f065ff80a59f274cc7210b6eab962acdc
  Building wheel for pyyaml (setup.py) ... done
  Created wheel for pyyaml: filename=PyYAML-5.3.1-cp36-cp36m-macosx_10_9_x86_64.whl size=150168 sha256=502f6d12c42b3f5bf6f93289604a463adcc488691b99b7c71b4b20df9eb8a738
  Stored in directory: /private/var/root/Library/Caches/pip/wheels/e5/9d/ad/2ee53cf262cba1ffd8afe1487eef788ea3f260b7e6232a80fc
Successfully built docopt future wrapt termcolor pyyaml
Installing collected packages: numpy, future, torch, opencv-python, queuelib, docopt, six, grpcio, wrapt, gast, protobuf, absl-py, werkzeug, zipp, importlib-metadata, markdown, tensorboard, astor, keras-preprocessing, tensorflow-estimator, termcolor, h5py, keras-applications, google-pasta, tensorflow, pyyaml, scipy, keras, coremltools
Successfully installed absl-py-0.11.0 astor-0.8.1 coremltools-3.3 docopt-0.6.2 future-0.18.2 gast-0.4.0 google-pasta-0.2.0 grpcio-1.33.2 h5py-2.10.0 importlib-metadata-3.1.0 keras-2.2.4 keras-applications-1.0.8 keras-preprocessing-1.1.2 markdown-3.3.3 numpy-1.16.2 opencv-python-3.4.3.18 protobuf-3.14.0 pyyaml-5.3.1 queuelib-1.5.0 scipy-1.5.4 six-1.15.0 tensorboard-1.14.0 tensorflow-1.14.0 tensorflow-estimator-1.14.0 termcolor-1.1.0 torch-1.5.1 werkzeug-1.0.1 wrapt-1.12.1 zipp-3.4.0
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— PYTHONPATH=./ python scripts/run_gesture_recognition.py             
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— rm output.txt 
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— PYTHONPATH=./ python scripts/run_gesture_recognition.py 
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— PYTHONPATH=./ sudo python scripts/run_gesture_recognition.py
Traceback (most recent call last):
  File "scripts/run_gesture_recognition.py", line 20, in <module>
    import realtimenet.display
ModuleNotFoundError: No module named 'realtimenet'
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— PYTHONPATH=sudo ./ python scripts/run_gesture_recognition.py
zsh: permission denied: ./
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— sudo PYTHONPATH=./ python scripts/run_gesture_recognition.py
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— 

Any ideas?

from sense.

M-Davies avatar M-Davies commented on June 1, 2024

In the meantime, I'll try re-installing anaconda and see if I can boost it's perms during install so I don't have to use sudo

from sense.

M-Davies avatar M-Davies commented on June 1, 2024

Ok so I got conda to run without sudo by changing the environments files perms

(base) ➜  20bn-realtimenet-master git:(main) βœ— sudo chmod 775 /Users/morgan/.conda/environments.txt 
(base) ➜  20bn-realtimenet-master git:(main) βœ— conda create -y -n realtimenet python=3.8           

Collecting package metadata (current_repodata.json): / failed

CondaError: KeyboardInterrupt

(base) ➜  20bn-realtimenet-master git:(main) βœ— conda create -y -n realtimenet python=3.6

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/morgan/miniconda3/envs/realtimenet

  added / updated specs:
    - python=3.6


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2020.10.14-0
  certifi            pkgs/main/osx-64::certifi-2020.11.8-py36hecd8cb5_0
  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1
  libedit            pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  openssl            pkgs/main/osx-64::openssl-1.1.1h-haf1e3a3_0
  pip                pkgs/main/osx-64::pip-20.2.4-py36hecd8cb5_0
  python             pkgs/main/osx-64::python-3.6.12-h26836e1_2
  readline           pkgs/main/osx-64::readline-8.0-h1de35cc_0
  setuptools         pkgs/main/osx-64::setuptools-50.3.1-py36hecd8cb5_1
  sqlite             pkgs/main/osx-64::sqlite-3.33.0-hffcf06c_0
  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  wheel              pkgs/main/noarch::wheel-0.35.1-pyhd3eb1b0_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3


Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate realtimenet
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) ➜  20bn-realtimenet-master git:(main) βœ— conda activate realtimenet 
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— which python 
/Users/morgan/miniconda3/envs/realtimenet/bin/python
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— python --version 
Python 3.6.12 :: Anaconda, Inc.
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— vim ~/.zshrc                             
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— PYTHONPATH=./ python scripts/run_gesture_recognition.py
(realtimenet) ➜  20bn-realtimenet-master git:(main) βœ— 

I still have the same issue but I have a lead now. Zoom and Discord also can't pick up my camera so maybe it's my computer issue? I'll try updating to the latest mac version and try again

from sense.

M-Davies avatar M-Davies commented on June 1, 2024

Ok so it's working now after updating from Catalina to Big Sur which, in turn, fixed my camera. So it was my computer that was the issue, not your program. Apologies for messing you around πŸ˜…

from sense.

guillaumebrg avatar guillaumebrg commented on June 1, 2024

πŸ‘

from sense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.