# ITensorInfiniteMPS not precompiling

**URL:** <https://itensor.discourse.group/t/itensorinfinitemps-not-precompiling/1588>\
**Category:** ITensor Julia Questions\
**Created:** [March 27, 2024, 3:20am UTC](https://itensor.discourse.group/t/itensorinfinitemps-not-precompiling/1588 "2024-03-27T03:20:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jake](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/jake/32/521_2.png) [@jake](https://itensor.discourse.group/u/jake)\
**Post date:** [March 27, 2024, 3:20am UTC](https://itensor.discourse.group/t/itensorinfinitemps-not-precompiling/1588/1 "2024-03-27T03:20:48Z")

</div>

Hi ITensor,

So I’m trying to utilize ITensorInfiniteMPS but when I try to run any of the examples provided it returns errors that read “LoadError: UndefVarError: `Unwrap` not defined”, and "LoadError: Failed to precompile ITensors [9136182c-28ba-11e9-034c-db9fb085ebd5] to “C:\Users\User\.julia\compiled\v1.10\ITensors\jl\_901C.tmp” and also includes "

The following 1 direct dependency failed to precompile:

ITensorInfiniteMPS [1dc1fb26-a137-4954-ae60-1bd4106e95ad]

Failed to precompile ITensorInfiniteMPS [1dc1fb26-a137-4954-ae60-1bd4106e95ad] to “C:\Users\User\.julia\compiled\v1.10\ITensorInfiniteMPS\jl\_8E4D.tmp”. Both of the files it is trying to precompile something to do not exist in my directory. I read that the package is not complete and may not be optimized, but it seems to be working fine for others. Any help would be appreciated. Thanks!

Best,  
Jake

---

<div class="post-metadata">

**Author:** ![mtfishman](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/mtfishman/32/11_2.png) [@mtfishman](https://itensor.discourse.group/u/mtfishman)\
**Post date:** [March 27, 2024, 11:30am UTC](https://itensor.discourse.group/t/itensorinfinitemps-not-precompiling/1588/2 "2024-03-27T11:30:59Z")

</div>

Please try updating all of your packages with `using Pkg; Pkg.update()`.

If that doesn’t work, please share the output of `using Pkg; Pkg.status()`.

---

<div class="post-metadata">

**Author:** ![jake](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/jake/32/521_2.png) [@jake](https://itensor.discourse.group/u/jake)\
**Post date:** [March 27, 2024, 5:11pm UTC](https://itensor.discourse.group/t/itensorinfinitemps-not-precompiling/1588/3 "2024-03-27T17:11:22Z")

</div>

Thanks for your quick reply and suggestion! I updated everything and went from ITensors 0.3.57 to 0.3.58, and no changes were made to ITensorInfinteMPS, and now it successfully precompiles and I have tested with a few examples.

---

<div class="post-metadata">

**Author:** ![mtfishman](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/mtfishman/32/11_2.png) [@mtfishman](https://itensor.discourse.group/u/mtfishman)\
**Post date:** [March 27, 2024, 5:15pm UTC](https://itensor.discourse.group/t/itensorinfinitemps-not-precompiling/1588/4 "2024-03-27T17:15:29Z")

</div>

Great, glad that worked.
