Comments

Flat
ERROR: LoadError: UndefVarError: @windows not defined
User: birdieagle
Date: 10/29/2017 7:11 pm
Views: 3531
Rating: 0

Hello, i tried to do the tutorial, and i got this error.. Do you have any ideas to solve this problem? I'm using Windows 10, with developer command prompt VS17

ERROR: LoadError: UndefVarError: @windows not defined

Stacktrace:

 [1] include_from_node1 at .\loading.jl:576

 [2] include at .\sysimg.jl:14

 [3] process_options at .\client.jl:305

 [4] _start at .\client.jl:371

while loading C:\Users\vesalius\voxvorge\bin\mkdfa.jl, in expression starting on line 124

Thank you!

Re: ERROR: LoadError: UndefVarError: @windows not defined
User: kmaclean
Date: 10/30/2017 10:14 am
Views: 2
Rating: 0

>ERROR: LoadError: UndefVarError: @windows not defined

it seems like in version 0.5 of Julia they removed the @windows macro (which checks for which operating system you are using) and replaced it with "is_windows()"...

Since you are using Windows, just replace the following code in mkdfa.jl:

mkfa= @windows ? "mkfa.exe" : "mkfa
dfa_minimize= @windows ? "dfa_minimize.exe" : "dfa_minimize"

with

mkfa= "mkfa.exe"
dfa_minimize= "dfa_minimize.exe"
Re: ERROR: LoadError: UndefVarError: @windows not defined
User: birdieagle
Date: 10/30/2017 6:09 pm
Views: 1
Rating: 0

Thank you! It worked.. 

 

There is an error again that say mkfa.exe could not spawn:

sample.grammar has 3 rules

---

sample.voca has 6 categories and 23 words

generated: sample.term

---

ERROR: LoadError: could not spawn `mkfa.exe -e1 -fg 'C:\Users\vesalius\AppData\Local\Temp\jl_B329.tmp/g18684.grammar' -fv 'C:\Users\vesalius\AppData\Local\Temp\jl_B329.tmp/g18684.voca' -fo sample.dfa.tmp -fh 'C:\Users\vesalius\AppData\Local\Temp\jl_B329.tmp/g18684.h'`: no such file or directory (ENOENT)

Stacktrace:

 [1] _jl_spawn(::String, ::Array{String,1}, ::Ptr{Void}, ::Base.Process, ::RawFD, ::RawFD, ::RawFD) at .\process.jl:360

 [2] #376 at .\process.jl:512 [inlined]

 [3] setup_stdio(::Base.##376#377{Cmd}, ::Tuple{RawFD,RawFD,RawFD}) at .\process.jl:499

 [4] #spawn#375(::Nullable{Base.ProcessChain}, ::Function, ::Cmd, ::Tuple{RawFD,RawFD,RawFD}) at .\process.jl:511

 [5] run at .\process.jl:650 [inlined]

 [6] main() at C:\Users\vesalius\voxvorge\bin\mkdfa.jl:152

 [7] include_from_node1 at .\loading.jl:576

 [8] include at .\sysimg.jl:14

 [9] process_options at .\client.jl:305

 [10] _start at .\client.jl:371

while loading C:\Users\vesalius\voxvorge\bin\mkdfa.jl, in expression starting on line 164

 

I updated the path again and check it with echo %PATH%, Julia, Julius, and HTK is in the path but it still won't work.. Do you have any ideas how to solve this?

Re: ERROR: LoadError: UndefVarError: @windows not defined
User: kmaclean
Date: 10/31/2017 8:03 am
Views: 0
Rating: 0
Re: ERROR: LoadError: UndefVarError: @windows not defined
User: birdieagle
Date: 10/31/2017 8:17 am
Views: 2
Rating: 0

Yes, i already downloaded it... Although when I tested HTK and Julius, i have to be inside in the directory of bin.win32 and bin of HTK and Julius and the test went just fine. But it’s different from Julia, which i can use the software from any directory.. i don’t know if this problem relate with the current problem.. 

Re: ERROR: LoadError: UndefVarError: @windows not defined
User: kmaclean
Date: 10/31/2017 9:40 am
Views: 0
Rating: 0

> i don’t know if this problem relate with the current problem..

sounds like it might be...

did you update you Window path variable?

it should point to the Julius/HTK and Julia executables and they all should be accessible from any directory

Re: ERROR: LoadError: UndefVarError: @windows not defined
User: birdieagle
Date: 11/1/2017 3:53 am
Views: 3
Rating: 0

Yes, i already update the path to the directory with the exe file.. But still, i can't run the HVite and Julius from any directory.. 

PreviousNext