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

Ubuntu on Windows 10 doesn't recognize sh commend. #6

Open
Moe38 opened this issue Aug 26, 2020 · 2 comments
Open

Ubuntu on Windows 10 doesn't recognize sh commend. #6

Moe38 opened this issue Aug 26, 2020 · 2 comments
Labels
question Further information is requested

Comments

@Moe38
Copy link

Moe38 commented Aug 26, 2020

Please bear with me, cause I am new to ESP32, GitHub, Ubuntu and everything. The error I got when I tried to extract the google_key.json file is as follow...

: not found.sh: 2: extract_key.sh:
cat: ../google_key.json: No such file or directory
extract_key.sh: 3: extract_key.sh: jq: not found
Can't open key.pem for reading, No such file or directory
139761816768960:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('key.pem','r')
139761816768960:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
unable to load Private Key
Traceback (most recent call last):
  File "extract_key.py", line 3, in <module>
    from rsa import PrivateKey
ModuleNotFoundError: No module named 'rsa'
: not found.sh: 6: extract_key.sh:
extract_key.sh: 8: extract_key.sh: Syntax error: Bad fd number```
@artem-smotrakov
Copy link
Owner

Hi @Moe38

There seems to be several problems. I assume that you run the scripts as described here

https://github.com/artem-smotrakov/esp32-weather-google-sheets#preparing-a-service-account-in-google-iam

cd scripts
sh extract_key.sh ../google_key.json ../key.json

First, looks like you don't have google_key.json file in the root of the repository. That's why you see cat: ../google_key.json: No such file or directory error.

Then, looks like you need to install jq. That's why you see extract_key.sh: 3: extract_key.sh: jq: not found.

https://stedolan.github.io/jq/

Next, looks like you don't have the rsa Python module installed on you system. That causes ModuleNotFoundError: No module named 'rsa'.

https://pypi.org/project/rsa/

Once you install the required software and put google_key.json file to the root of your repository, they problems should go away. Good luck!

@Moe38
Copy link
Author

Moe38 commented Jul 16, 2021

Thank you so much.

@artem-smotrakov artem-smotrakov added the question Further information is requested label Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants