# Failed to precompile Pkg because Quat not defined

**URL:** <https://discourse.julialang.org/t/failed-to-precompile-pkg-because-quat-not-defined/43897>\
**Category:** General Usage\
**Tags:** package\
**Created:** [July 29, 2020, 3:47pm UTC](https://discourse.julialang.org/t/failed-to-precompile-pkg-because-quat-not-defined/43897 "2020-07-29T15:47:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangyubin11](https://avatars.discourse-cdn.com/v4/letter/w/258eb7/32.png) [@wangyubin11](https://discourse.julialang.org/u/wangyubin11)\
**Post date:** [July 29, 2020, 3:47pm UTC](https://discourse.julialang.org/t/failed-to-precompile-pkg-because-quat-not-defined/43897/1 "2020-07-29T15:47:37Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/4/9/499398920b2c0c929a7528613e6e7d4e67165d7f.png)  
I try to use the branch of Pkg，but actually stuck in this trouble. It is a problem of the Pkg itself?  
I definitely guess that global variable causes the mistake .  
Any tips? Thank u ❤

---

<div class="post-metadata">

**Author:** ![SteffenPL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steffenpl/32/206270_2.png) [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Post date:** [July 30, 2020, 7:50am UTC](https://discourse.julialang.org/t/failed-to-precompile-pkg-because-quat-not-defined/43897/2 "2020-07-30T07:50:20Z")

</div>

I saw that you already reported an issue at TrajectoryOptimisation, that’s good.

A few things you could do:

1. What is the output of `import Pkg; Pkg.status()`. It seems like your TrajectoryOptimisation package is not up-to-date. At least \<= v0.2. Can you install a newer version?
2. JuliaPro has sometimes a bit outdated packages. You could try a normal Julia installation. (For getting a JuliaPro like enviroment you can follow these instructions: [Installation Instructions · Juno Documentation](http://docs.junolab.org/latest/man/installation/) )
3. If you cannot install a newer version, maybe you can install an older version of the package and hope that the bug was not present then.

I tried v0.3 of the package and it worked on my machine. I think the bug is already fixed in the new versions.

---

<div class="post-metadata">

**Author:** ![wangyubin11](https://avatars.discourse-cdn.com/v4/letter/w/258eb7/32.png) [@wangyubin11](https://discourse.julialang.org/u/wangyubin11)\
**Post date:** [July 30, 2020, 8:18am UTC](https://discourse.julialang.org/t/failed-to-precompile-pkg-because-quat-not-defined/43897/3 "2020-07-30T08:18:23Z")

</div>

yeap! I found that the version of Rotations causes the bug.An older version can avoid this issue with “Quats”.  
Thank u for reply!
