# ERROR: IOError: when generating exe file

**URL:** https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287
**Category:** General Usage
**Tags:** question
**Created:** [November 10, 2021, 8:49pm UTC](https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287 "2021-11-10T20:49:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)
#### Post date: [November 10, 2021, 8:49pm UTC](https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287/1 "2021-11-10T20:49:34Z")

</div>

@Gnimuc Could you please help in this?

I am trying to generate `exe` file for my codes (which organized as below):

 ![8](https://global.discourse-cdn.com/julialang/original/3X/6/e/6e2064cb22db307438c1eb0ac11beaa872979dd6.png)  
inside `/scr.folderpackage.jl`, I wrote the below

```julia
module folderpackage
Base.@ccallable function julia_main()::Cint
  try
    myfunction()
  catch
      Base.invokelatest(Base.display_error, Base.catch_stack())
      return 1
  end
  return 0
end

###
using # all packages
####
# List of functions called by myfunction()
####
function myfunction()
# body
end
end #module

```

however, after I run `create_app`, I have the below error:

 ![9](https://global.discourse-cdn.com/julialang/original/3X/1/f/1fb2a182df099f2b720ea726e77f9c4f314aaf3a.png)  
 ![2](https://global.discourse-cdn.com/julialang/original/3X/7/8/78dfd7f305497d56b3e7d4c8520fa748b870330c.png)

I have even tried to compile the below demo but I got the below error (given that I could not add PackageCompilerX.jl).

> <https://github.com/Gnimuc/Redux.jl/tree/master/examples/App>
>
> //github.com/Gnimuc/Redux.jl/tree/master/examples/App

 ![1](https://global.discourse-cdn.com/julialang/original/3X/8/2/82d455694b9e47402549f3753013119beca7172c.png)

---

<div class="post-metadata">

### Author: ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)
#### Post date: [November 11, 2021, 6:09am UTC](https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287/2 "2021-11-11T06:09:36Z")

</div>

summoning @kristoffer.carlsson

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [November 11, 2021, 6:13am UTC](https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287/3 "2021-11-11T06:13:50Z")

</div>

PackageCompilerX is not in the registry because it was abandoned in favour of PackageCompiler. If you want to use it (although you shouldn’t), you’d have to add it from URL.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [November 11, 2021, 10:45am UTC](https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287/4 "2021-11-11T10:45:39Z")

</div>

I haven’t seen that last error before. Perhaps try with Julia 1.6.3 instead of 1.6.2.
