DistanceDevelopment / distance-bugs

A place to keep bugs in Distance
http://distancesampling.org/Distance
1 stars 0 forks source link

Problem running CDS analysis engine: `C:\PROGRA~2\Distance` is not recognized as an internal or external command #185

Closed sergeysklyarenko closed 4 months ago

sergeysklyarenko commented 5 years ago

Trying to do data analyses for any sample data set, I got the log:

Initializing Making Data File Making Data Selection Queries Making Input File Engine started with the following command: C:\PROGRA~2\Distance 7\ec "C:\PROGRA~2\Distance 7\MCDS.exe 0, C:\Users\75B5~1\AppData\Local\Temp\dstCBA0.tmp \options 2>C:\Users\75B5~1\AppData\Local\Temp\dstCB9F.tmp" -- Start of Analyis Engine Log File -- -- End of Analyis Engine Log File -- Warning: Analysis engine wrote some output to the console error stream, reproduced below. -- Start of Console Error Stream -- "C:\PROGRA~2\Distance" ­Ґ пў«пҐвбп ў­гв७­Ґ© Ё«Ё ў­Ґи­Ґ© Є®¬ ­¤®©, ЁбЇ®«­пҐ¬®© Їа®Ја ¬¬®© Ё«Ё Ї ЄҐв­л¬ д ©«®¬.

-- End of Console Error Stream -- Analysis engine status 'OK' Reading Results Run finished

Not readable line in the log means (Russian) : "it is not an executable file or command". Change of name of temp directory does not help. Of course, no table of any results are obtained.

OS - Win 7 extended, 64-bit; R version 3.5.1 (2018-07-02)

Any ideas what to do?

erex commented 5 years ago

Sergey

Thank you for the note. The problem that Distance is reporting deals with the space " " between the "e" and the "7" in the path. The suggested fix to this problem is to install Distance into a non-default directory (the default directory inserts a space into the path to the executable).

At this point in the installation procedure image

Choose "Browse" and select a simple directory name, for example, "C:/distance" and have the programme installed to that directory. That should then avert the problem you describe. Let us know if that succeeds. @LHMarshall @lenthomas

lenthomas commented 5 years ago

I also have a test version of Distance that implements a fix to this that I'm keen to try out -- but I'm away from St Andrews now for a couple of weeks so that will have to wait until I get back. Please go ahead with the fix Eric suggested - but do let me know if you'd be willing to test out my test version in a couple of weeks. I'd like to try it on at least one machine that is experiencing the problem before bundling it into the next release of Distance. Thanks! Len

sergeysklyarenko commented 5 years ago

Hello Erex,

thank you for prompt answer. The solution works well - now everything is OK with the analysis module. I used proposed directory C:\Distance.

Best regards,

20.10.2018 21:26, erex пишет:

Sergey

Thank you for the note. The problem that Distance is reporting deals with the space " " between the "e" and the "7" in the path. The suggested fix to this problem is to install Distance into a non-default directory (the default directory inserts a space into the path to the executable).

At this point in the installation procedure image https://user-images.githubusercontent.com/330744/47257369-9f688980-d484-11e8-9775-d8178eeeda82.png

Choose "Browse" and select a simple directory name, for example, "C:/distance" and have the programme installed to that directory. That should then avert the problem you describe. Let us know if that succeeds. @LHMarshall https://github.com/LHMarshall @lenthomas https://github.com/lenthomas

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DistanceDevelopment/distance-bugs/issues/185#issuecomment-431590948, or mute the thread https://github.com/notifications/unsubscribe-auth/AqRJrCnijRnuXpTK28i4Pspuktq1y-6Fks5um0CZgaJpZM4Xx-fM.

-- Dr Sergey Sklyarenko

Science Director, Head of the Centre for Conservation Biology

Association for the Conservation of Biodiversity of Kazakhstan (ACBK)

of.205, Khodzhanov str. 67, Almaty, 050060, Kazakhstan phone/fax +7-727-2481409, mobile +7-701-2213315 sergey.sklyarenko@acbk.kz www.acbk.kz

ACBK is a non-governmental, non-profit organization, working for conservation and study of wildlife in Kazakhstan. ACBK is a Partner of BirdLife International.

erex commented 5 years ago

Very pleased to hear this Dr Sklyarenko. Best of luck with your work in Kazakhstan.

abrah15 commented 5 years ago

Hello Erex I have the same problem and I used the solution you pointed above but it didn't work. By the way, I'm new in Distance and I was taking the online course. Below is my error message;

Engine started with the following command: C:\Distance\Distance 7\ec "C:\Distance\Distance 7\MCDS.exe 0, C:\Users\AVC\AppData\Local\Temp\dst808.tmp \options 2>C:\Users\AVC\AppData\Local\Temp\dst807.tmp" -- Start of Analyis Engine Log File -- -- End of Analyis Engine Log File -- Warning: Analysis engine wrote some output to the console error stream, reproduced below. -- Start of Console Error Stream -- 'C:\Distance\Distance' is not recognized as an internal or external command, operable program or batch file.

-- End of Console Error Stream -- Analysis engine status 'OK' Reading Results Run finished

erex commented 5 years ago

@abrah15

Pleased to hear you are taking the online course, sorry the software is getting in the way of your work on the course.

Looking at the error message you provided, it does not appear that you installed Distance into a directory without spaces. I say this because of these two lines:

the command that the computer was attempting:

C:\Distance\Distance 7\ec "C:\Distance\Distance 7\MCDS.exe 0, C:\Users\AVC\AppData\Local

resulting in this message

'C:\Distance\Distance' is not recognized as an internal or external command,

Notice the message is trying to duplicate the command it was attempting; but the message stops when it encounters the first space: leaving off " 7\ec"

Please try to reinstall Distance again and do what Sergey did. Before beginning the installation, create a new directory on your computer called "C:\Distance7" (note I did not put a space between 'e' and '7')

when asked

Setup will install Distance 7.2 into the following folder
To install into a different folder, click Browse and select another folder

Use the "Select Destination Directory" window to select the folder "Distance7" on your C: drive.

Let me know your progress.

abrah15 commented 5 years ago

Hello Erex

Thank you very much for your help, the error is now solved.

Regards

erex commented 5 years ago

Very pleased to hear that. Good luck as you continue through the online course.

lenthomas commented 4 months ago

I have fixed this -- see #209