# Couple of issues - Cuda/easyOCR & SD card backup

**URL:** <https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804>\
**Category:** Jetson Nano\
**Tags:** opencv, cuda\
**Created:** [November 21, 2021, 5:38pm UTC](https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804 "2021-11-21T17:38:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![user57084](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user57084](https://forums.developer.nvidia.com/u/user57084)\
**Post date:** [November 21, 2021, 5:38pm UTC](https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804/1 "2021-11-21T17:38:58Z")

</div>

Hi all,  
I am trying to use easyOCR and I keep getting the following error:  
“CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.”

> **[jtop screenshot](https://tinypix.top/i/jtop-screenshot.v3YrJ)**
>
> Image jtop screenshot hosted in Tiny PiX

I am running OpenCV version 4.1.1 and it says compiled CUDA: NO  
I am struggling to find what version OpenCV I should be running to make it compatible.

The second long-standing issue is how to clone the image to an SD card. I tried following JetsonHacks’s tutorial but it throws an error after 2 hours of waiting.

Thanks for visiting.

---

<div class="post-metadata">

**Author:** ![user57084](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user57084](https://forums.developer.nvidia.com/u/user57084)\
**Post date:** [November 21, 2021, 9:39pm UTC](https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804/2 "2021-11-21T21:39:46Z")

</div>

So I found out that torch.cuda.is\_available() was returning false. Google search said I need to add environment path. As I opened a new terminal, I was getting error :  
~bash: /home/jn/.bash\_profile:Permission denied  
I know I didn’t login as super user. So I decided to reboot. After rebooting I can’t get in anymore. The login screen looks different. I have no idea what has happened! Please find pictures attached.

 ![jetsonNanoCrash2](https://global.discourse-cdn.com/nvidia/original/3X/6/d/6dde20811fcc7f0c2b745e012a1bdd6000ecc092.jpeg)  
 ![jetsonNanoCrash1](https://global.discourse-cdn.com/nvidia/original/3X/a/f/af678e1af941c9fd0f6069482beb8c6f374a8d18.jpeg)

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 22, 2021, 3:19am UTC](https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804/4 "2021-11-22T03:19:00Z")

</div>

Hi,

How do you install the PyTorch package.  
You can find a package that built with GPU support in the below link:

> [@PyTorch for Jetson](https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048):
>
> Below are pre-built PyTorch pip wheel installers for Jetson Nano, TX1/TX2, Xavier, and Orin with JetPack 4.2 and newer. Download one of the PyTorch binaries from below for your version of JetPack, and see the installation instructions to run on your Jetson. These pip wheels are built for ARM aarch64 architecture, so run these commands on your Jetson (not on a host PC). You can also use the pre-built [l4t-pytorch](https://ngc.nvidia.com/catalog/containers/nvidia:l4t-pytorch) and [l4t-ml](https://ngc.nvidia.com/catalog/containers/nvidia:l4t-ml) container images and [Dockerfiles](https://github.com/dusty-nv/jetson-containers). PyTorch pip wheels JetPack 5 
> 
> > **PyTo…**
> >

Thanks.

---

<div class="post-metadata">

**Author:** ![user57084](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user57084](https://forums.developer.nvidia.com/u/user57084)\
**Post date:** [November 22, 2021, 10:35pm UTC](https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804/5 "2021-11-22T22:35:17Z")

</div>

Thanks for getting back AastaLLL. I was in a bit of a pickle trying to get easyOCR up and running. As I mentioned I am unable to get in GUI for some reason and I was also unable to transfer my code across to any device. Primarily because I couldn’t clone SD card. I managed to ssh using putty and initially I was getting the following error:

> -bash: cd: username/: Permission denied

I couldn’t access any files from Document folder (cd /home//Document…etc). I found out this error

> chown missing operand after#  
> chown: changing owernshio of '/home/jn/…etc. : Operation not permitted

I think I rectified this by using the following command and luckily managed to transfer data across using WinSCP

```auto
chown -R root:users dir

```

Apparently, PyTorch wasn’t installed and I am still unable to install it for some reason. I am going to flash microSD card and start again. I will make sure PyTorch is installed correctly this time. It doesn’t help much because I cannot enter my credentials to log in to GUI to debug it. Unfortunately, I m not an expert in terminal lol. Maybe I will try creating a virtual environment this time and see if it makes any difference. I am putting some screenshots for future reference. I really appreciate your help. Many thanks.

 ![image](https://global.discourse-cdn.com/nvidia/original/3X/f/b/fbfb413c0fb94cedad988c1940073dc33508a2a5.png)

 ![image](https://global.discourse-cdn.com/nvidia/original/3X/1/e/1ef4c9596ce240408e443d1cf21a1e4734a22515.png)

![image](https://global.discourse-cdn.com/nvidia/original/3X/e/2/e256613356971fc044916b637676404c4f9ff81c.png)

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 2, 2021, 8:24am UTC](https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804/6 "2021-12-02T08:24:03Z")

</div>

Hi,

It seems that the installation requires root authority.  
Could you try it with `sudo` to see if it works?

More, you will need a package built with the same JetPack version.

For example, JetPack 4.6.

```auto
$ wget https://nvidia.box.com/shared/static/p57jwntv436lfrd78inwl7iml6p13fzh.whl -O torch-1.10.0-cp36-cp36m-linux_aarch64.whl
$ sudo apt-get install python3-pip libopenblas-base libopenmpi-dev 
$ pip3 install Cython
$ pip3 install numpy torch-1.10.0-cp36-cp36m-linux_aarch64.whl

```

You can find all the details in the below topic:

> [@PyTorch for Jetson](https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048):
>
> Below are pre-built PyTorch pip wheel installers for Jetson Nano, TX1/TX2, Xavier, and Orin with JetPack 4.2 and newer. Download one of the PyTorch binaries from below for your version of JetPack, and see the installation instructions to run on your Jetson. These pip wheels are built for ARM aarch64 architecture, so run these commands on your Jetson (not on a host PC). You can also use the pre-built [l4t-pytorch](https://ngc.nvidia.com/catalog/containers/nvidia:l4t-pytorch) and [l4t-ml](https://ngc.nvidia.com/catalog/containers/nvidia:l4t-ml) container images and [Dockerfiles](https://github.com/dusty-nv/jetson-containers). PyTorch pip wheels JetPack 5 
> 
> > **PyTo…**
> >

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [December 22, 2021, 5:50am UTC](https://forums.developer.nvidia.com/t/couple-of-issues-cuda-easyocr-sd-card-backup/195804/8 "2021-12-22T05:50:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
