Error when trying to change the directory

571 views
Skip to first unread message

R Reddy

unread,
Jun 4, 2018, 8:23:34 PM6/4/18
to AMPL Modeling Language
I am trying to save a new mod file in a new directory and AMPL is not allowing me to do that. It gives me the following error - "Save Directory location is not valid" (see the attached pic).

Could you please provide a solution for this. thanks
Untitled.png

AMPL Google Group

unread,
Jun 4, 2018, 10:10:17 PM6/4/18
to Ampl Modeling Language
It seems that you don't have write permission in the directory. Please make sure you have a write permission in the directory that you intended to save.

--
Dr. Paras Tiwari
am...@googlegroups.com
{#HS:594801047-9376#}
On Tue, Jun 5, 2018 at 12:23 AM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I am trying to save a new mod file in a new directory and AMPL is not allowing me to do that. It gives me the following error - "Save Directory location is not valid" (see the attached pic).

Could you please provide a solution for this. thanks
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.



R Reddy

unread,
Jun 4, 2018, 10:46:51 PM6/4/18
to am...@googlegroups.com
I have checked for folder permissions and I do have write permission. It won't allow me to save. I even created c:\new_folder and tried to save in that folder, it would not allow me to do that. 

On Mon, Jun 4, 2018 at 9:10 PM, AMPL Google Group <am...@googlegroups.com> wrote:
It seems that you don't have write permission in the directory. Please make sure you have a write permission in the directory that you intended to save.

--
Dr. Paras Tiwari
am...@googlegroups.com
{#HS:594801047-9376#}
On Tue, Jun 5, 2018 at 12:23 AM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I am trying to save a new mod file in a new directory and AMPL is not allowing me to do that. It gives me the following error - "Save Directory location is not valid" (see the attached pic).

Could you please provide a solution for this. thanks
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+unsubscribe@googlegroups.com.

To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/y1a0mEGxLEI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+unsubscribe@googlegroups.com.

AMPL Google Group

unread,
Jun 5, 2018, 1:26:49 AM6/5/18
to Ampl Modeling Language
I got the exact same error message when I didn't have write permission. We haven't got the similar problems from other users. It could be very specific to your computer. I would recommend you to try restarting your IDE. Also, create a file inside the folder outside the IDE using Notepad and make sure you can save in the location. You could try downloading new version of AMPL IDE from https://ampl.com/products/ide/#Windows. If the problem persists, can you send us the version of your operating system?

Thanks,
Paras


--
Dr. Paras Tiwari
am...@googlegroups.com
{#HS:594801047-9376#}
On Tue, Jun 5, 2018 at 2:47 AM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I have checked for folder permissions and I do have write permission. It won't allow me to save. I even created c:\new_folder and tried to save in that folder, it would not allow me to do that.



On Tue, Jun 5, 2018 at 2:09 AM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
It seems that you don't have write permission in the directory. Please make sure you have a write permission in the directory that you intended to save.

--
Dr. Paras Tiwari
am...@googlegroups.com


On Tue, Jun 5, 2018 at 12:23 AM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I am trying to save a new mod file in a new directory and AMPL is not allowing me to do that. It gives me the following error - "Save Directory location is not valid" (see the attached pic).

Could you please provide a solution for this. thanks
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.

Andrzej Karbowski

unread,
Mar 22, 2019, 12:52:35 PM3/22/19
to AMPL Modeling Language
Hi,
I have the same problem as R Reddy with the latest version of AMPL IDE
No. 3.5.0.201802211250 under Windows 10 Pro ver. 1809 for x64.
Restarting IDE does not help. I checked: when I logged as administrator
or started AMPL IDE as administrator, I could save a new file from AMPL IDE. 
Of course, other editors, for example Notepad, work fine with files
in this directory, that is I may save the new ones.

Best regards,

Andrzej

Ansuman Swain

unread,
Mar 22, 2019, 1:01:32 PM3/22/19
to AMPL Modeling Language
Hi,

Are you trying to create files in root of  while starting IDE as normal mode.

Thanks,
Ansuman

Andrzej Karbowski

unread,
Mar 22, 2019, 1:20:09 PM3/22/19
to AMPL Modeling Language
No, it wasn't in the root directory of C.

Ansuman Swain

unread,
Mar 22, 2019, 1:29:20 PM3/22/19
to AMPL Modeling Language
Hi,

You mentioned you could save a new file while running AMPL IDE as administrator.

Is the same operation possible with notepad/other editors without Administrator mode ?

Ideally, if you are trying to create a new file in a location without write access, both IDE and other editors will throw error.

Thanks,
Ansuman

Andrzej Karbowski

unread,
Mar 22, 2019, 2:36:47 PM3/22/19
to AMPL Modeling Language
Yes, this operation is possible with notepad/other editors without Administrator mode.
I am trying to create a new file in a location WITH write access, The problem with AMPL IDE is that
it throws error, while other editors work well. Something wrong is with this functionality
of AMPL IDE for users without Administrator's rights.
The strange thing is that I can edit an existing file and save it as a normal
user, without Administrator mode.


Thanks,

Andrzej

Andrzej Karbowski

unread,
Mar 22, 2019, 2:58:51 PM3/22/19
to AMPL Modeling Language
Actually, the title of the thread "Error when trying to change the directory"
is a little misleading. It should be: "Error when trying to create a new file".

Andrzej

Ansuman Swain

unread,
Mar 22, 2019, 6:33:53 PM3/22/19
to AMPL Modeling Language
Hi,

Can you please post a screenshot here for the error message.

Thanks,
Ansuman

Andrzej Karbowski

unread,
Mar 22, 2019, 6:39:45 PM3/22/19
to AMPL Modeling Language
It is the same as in the first post of the thread sent by R Reddy.

Andrzej

Philippe

unread,
May 5, 2019, 10:39:40 AM5/5/19
to AMPL Modeling Language
Hello, I also have the exact same problem as described. First I don't have the directories shown and I can't create a new model. I get the same error. I ran the IDE as an admin but this does not change anything. 
I created a .mod file in the folder I can open it and save it but it won't be listed in the directory list.

See attached screenshots.

ampl_screenshot1.png

ampl_screenshot2.png

Thank you

ansu...@gmail.com

unread,
May 7, 2019, 8:49:23 AM5/7/19
to AMPL Modeling Language
Hi ,

Can you please try to run AMPLIDE in administrator mode. 
If you are on windows, right click on the amplide executable and select Run as administrator. Let me know if the issue persists after that.

Thanks,
Ansuman

Philippe Journé

unread,
May 7, 2019, 10:41:04 AM5/7/19
to am...@googlegroups.com
Hi,

I tried, unfortunately it does not change anything, the issue is still there.
Thank you
Philippe


--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/y1a0mEGxLEI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.

To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.

ansu...@gmail.com

unread,
May 7, 2019, 11:45:43 AM5/7/19
to AMPL Modeling Language
Hi,

This message comes up when i do not have write permission. 

Is it possible to restart your computer and create a file inside C:\Users\Philippe\Documents\AMPL\Models using software like notepad/textpad/notepad++

Alternatively you may try to run the IDE as administrator mode and create file in entirely different directory where you have write access  

Thanks,
Ansuman 

On Tuesday, May 7, 2019 at 3:41:04 PM UTC+1, Philippe Journé wrote:
Hi,

I tried, unfortunately it does not change anything, the issue is still there.
Thank you
Philippe


Le mar. 7 mai 2019 à 14:49, <ansu...@gmail.com> a écrit :
Hi ,

Can you please try to run AMPLIDE in administrator mode. 
If you are on windows, right click on the amplide executable and select Run as administrator. Let me know if the issue persists after that.

Thanks,
Ansuman

On Sunday, May 5, 2019 at 3:39:40 PM UTC+1, Philippe wrote:
Hello, I also have the exact same problem as described. First I don't have the directories shown and I can't create a new model. I get the same error. I ran the IDE as an admin but this does not change anything. 
I created a .mod file in the folder I can open it and save it but it won't be listed in the directory list.

See attached screenshots.

ampl_screenshot1.png

ampl_screenshot2.png

Thank you

Le mardi 5 juin 2018 02:23:34 UTC+2, R Reddy a écrit :
I am trying to save a new mod file in a new directory and AMPL is not allowing me to do that. It gives me the following error - "Save Directory location is not valid" (see the attached pic).

Could you please provide a solution for this. thanks

--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/y1a0mEGxLEI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to am...@googlegroups.com.

Philippe Journé

unread,
May 8, 2019, 9:17:34 AM5/8/19
to am...@googlegroups.com
Hi,

I created a file inside C:\Users\Philippe\Documents\AMPL\Models using notepad. It worked perfectly well. I change the extension to .mod and could open it in AMPL. The problem still persists though. I can't create a folder or file directly from AMPL and I don't have the list of folders, subfolders and files displayed in the left window. I still get the same error message when trying to create a file.
I also tried once more to run the IDE as an admin but it does not change anything.

It seems that AMPL does not have the list and write permissions. I went to the folder security settings and edited the rights for "all application packages" to full rights. No rights were selected before that.
Unfortunately this didn't work.

Thank you

To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.

To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.

Ansuman Swain

unread,
May 8, 2019, 1:42:48 PM5/8/19
to AMPL Modeling Language
Hi,

It seems this problem is very specific to users in this thread. I am unable to replicate this at my end.

You may try again with a fresh installation of amplide from https://ampl.com/dl/IDE/amplide.win64.zip 

Please see https://ampl.com/products/ide/  for detail instructions.

Thanks,
Ansuman

AMPL Google Group

unread,
May 8, 2019, 2:48:22 PM5/8/19
to Ampl Modeling Language
Unfortunately we have only very rare reports of these AMPL IDE problems, particularly the empty file list in the left-hand window. As a result we don't have much information to help us reproduce the problems on our computers; currently we have not been able to reproduce the problems, and as a result we have not been able to fix them yet.

Once the IDE has been set up, it saves settings files from one session to the next. It is possible that the original error corrupted the settings files and led to later problems. To test for this possibility, you should do a complete re-installation as follows:
  1. Find and delete the IDE settings folder, C:\Users\Philippe\AppData\Local\amplide.
  2. Look inside C:\Users\Philippe\Documents\AMPL and find the folder that contains amplide.exe (with black cat's-head icon); it will be named something like "amplide" or "amplide.win64". Delete the entire "amplide" or "amplide.win64" folder.
  3. Move your "AMPL" folder out of C:\Users\Philippe\Documents and onto your desktop. (The Documents folder is not a standard location for running applications.)
  4. Follow the directions at https://ampl.com/products/ide/#Windows to add a fresh copy of the AMPL IDE to your "AMPL" folder.
Then double-click amplide.exe to run the AMPL IDE again. You will know that the re-installation has been completed successfully if you see only the welcome.txt file open in the editor pane. Let us know whether the file listing pane is still empty, and whether you again encounter any other file or folder errors.

--
Robert Fourer
am...@googlegroups.com
{#HS:848256491-43194#}
On Wed, May 8, 2019 at 5:42 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
Hi,

It seems this problem is very specific to users in this thread. I am unable to replicate this at my end.

You may try again with a fresh installation of amplide from https://ampl.com/dl/IDE/amplide.win64.zip

Please see https://ampl.com/products/ide/ for detail instructions.

Thanks,
Ansuman


Philippe Journé

unread,
May 16, 2019, 4:21:42 AM5/16/19
to am...@googlegroups.com
Hi,

I followed step by step your instructions but unfortunately it did not solve the problems. I will continue to run AMPL on my older PC, I don't see any other way around.
Thank you for your feedback and support though.

Philippe
--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/y1a0mEGxLEI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.

To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
Reply all
Reply to author
Forward
0 new messages