# Calibration files unable to be accessed

**URL:** https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222
**Category:** Software
**Created:** [October 29, 2020, 10:03pm UTC](https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222 "2020-10-29T22:03:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Nate\_Borders](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/nate_borders/32/268_2.png) [@Nate\_Borders](https://www.evolver.bio/u/Nate_Borders)
#### Post date: [October 29, 2020, 10:03pm UTC](https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222/1 "2020-10-29T22:03:46Z")

</div>

Hi,

I’m trying to run an experiment, but the script seems to be getting stuck on the calibration files

These are the errors I’m getting in the log file:  
2020-10-29 17:39:01 - eVOLVER - [WARNING] - Calibrations not received yet, requesting again  
2020-10-29 17:39:01 - eVOLVER - [WARNING] - calibration files still missing, skipping custom functions  
2020-10-29 17:39:22 - eVOLVER - [WARNING] - Calibrations not received yet, requesting again  
2020-10-29 17:39:22 - eVOLVER - [WARNING] - calibration files still missing, skipping custom functions  
…etc

When I try to run the command for listing the calibration files, to check if there are any I get this:

```
mydirectory\dpu> python calibration/calibrate.py -a 192.168.1.2 -g
Waiting for evolver connection...
Connected to eVOLVER as client
Getting calibration names...

```

But it never gets past ‘Getting calibration names…’  
I know there are calibration files on the eVOLVER base, but it seems like they aren’t being accessed?

When I look into [calibrate.py](https://github.com/FYNCH-BIO/dpu/blob/92f7ce074a58598ef3c2d21bfdc2291758443557/calibration/calibrate.py#L276), the command emitted to get the names does seem to run (I added a print statement after), but perhaps not properly because the code gets stuck at [this](https://github.com/FYNCH-BIO/dpu/blob/92f7ce074a58598ef3c2d21bfdc2291758443557/calibration/calibrate.py#L293)

Any help would be much appreciated,  
Nate

---

<div class="post-metadata">

### Author: ![bgwong](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/bgwong/32/262_2.png) [@bgwong](https://www.evolver.bio/u/bgwong)
#### Post date: [October 30, 2020, 8:03pm UTC](https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222/2 "2020-10-30T20:03:54Z")

</div>

Couple questions:

- You’re able to ping the evolver and control it via the GUI otherwise? You have the correct IP and are able to basic communication with the evolver?

- Can you screenshot what the Setup Page of the GUI looks like when you do actuate the pumps, etc. What calibration files are selected in the Setup Page.

- Also I am not sure what the default version of python you are using but make sure you are set it Python 3. To be sure, its probably better to ping the machine using `python3` instead of just `python`

---

<div class="post-metadata">

### Author: ![heinsz](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/heinsz/32/52_2.png) [@heinsz](https://www.evolver.bio/u/heinsz)
#### Post date: [October 30, 2020, 9:25pm UTC](https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222/3 "2020-10-30T21:25:45Z")

</div>

Also, on the RPi do you see a `calibrations.json` file at `~/evolver/evolver`?

---

<div class="post-metadata">

### Author: ![Nate\_Borders](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/nate_borders/32/268_2.png) [@Nate\_Borders](https://www.evolver.bio/u/Nate_Borders)
#### Post date: [November 21, 2020, 12:12am UTC](https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222/4 "2020-11-21T00:12:28Z")

</div>

Hi Guys,

Thanks for the troubleshooting suggestions.

- I am able to ping the evolver and I am able to ssh in to the evolver and look at the files.

- I can’t seem to set up the GUI on my windows machine here. If this is necessary I can look into troubleshooting it further. I installed yarn and ran it in the evolver-electron folder, but it errored out super hard. I might try doing a clean clone of the github and new yarn install and do it again.

- I only have python3 installed so that shouldn’t be the issue

\*Here is the calibration.json file on the rPi

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/evolver/original/1X/1b4f7d10bbd845554c1409b5f5785cdf95e43ec3.png)

Here are some photos I took of the rPi GUI:  
Calibration files in the setup:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/evolver/original/1X/bde14387caf3a7a16cf16cbf26969e31e7c49b73.jpeg)

Pump command:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/evolver/original/1X/0e4e608f7e1af8b7b3585b46a838670cbcee8429.jpeg)

Light command:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/evolver/original/1X/3550ce6406ab4c4079c338fa6369f22d6e9f9772.jpeg)

Thanks so much!

---

<div class="post-metadata">

### Author: ![heinsz](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/heinsz/32/52_2.png) [@heinsz](https://www.evolver.bio/u/heinsz)
#### Post date: [November 23, 2020, 3:36pm UTC](https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222/5 "2020-11-23T15:36:16Z")

</div>

Oh that isn’t the right file - very confusing, but there is a `calibrations.json` and a `calibration.json` that do different things. We will be phasing out the `calibration.json`, it doesn’t really do anything anymore. We updated the calibrations format at one point to make them more generalized, but this broke the old ones. There is a [calibrations update script](https://github.com/FYNCH-BIO/evolver/blob/master/utils/calibration_transformation.py) you can run to update the old ones. You just have to pass the directory of the old calibrations as a parameter, and then give a new filename for the transformed calibrations.

`python3 calibration_transformation.py -d calibrations -f calibrations.json`

---

<div class="post-metadata">

### Author: ![Nate\_Borders](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/nate_borders/32/268_2.png) [@Nate\_Borders](https://www.evolver.bio/u/Nate_Borders)
#### Post date: [November 30, 2020, 5:03pm UTC](https://www.evolver.bio/t/calibration-files-unable-to-be-accessed/222/6 "2020-11-30T17:03:18Z")

</div>

This worked! Thank you!

It seems like I’m getting almost all of the way there thanks to your guys’ help. I’m now just having some Arduino code [problems](https://www.evolver.bio/t/arduino-code-not-executing-command/232).
