the-anylogic-company / AnyLogic-Pypeline

A custom AnyLogic library for running Python inside an AnyLogic model (Java)
https://github.com/the-anylogic-company/AnyLogic-Pypeline/wiki
MIT License
107 stars 27 forks source link

Error #4

Closed rsalaza4 closed 4 years ago

rsalaza4 commented 4 years ago

Hello.

While following your tutorial on installing Pypeline, I got the following error:

java.io.FileNotFoundException: C:\Program Files\AnyLogic 8.6 Professional\pypeline.properties (Access is denied)

Do you know how to get access? In addition, how where can I get the pypeline.properties file?

Thanks in advance for your help.

Regards, Roberto

t-wolfeadam commented 4 years ago

Hi Roberto, The properties file is automatically generated next to where you put the pypeline library jar file, which is [poorly] assumed to have write-access (with no extra permissions needed, which the Program Files directory does). I'll push an update shortly with a fix to handle the error.

If you want to use the properties feature though, you'll need to put the library jar in a folder with write-access (e.g., somewhere in your user folder) or enable write access in that folder -- I recommend the former

t-wolfeadam commented 4 years ago

The error is now handled and instead prints out a warning to the console (instead of a full stacktrace). I'll include this in the next official release, but for now you can download it directly here: Pypeline.jar - download button is in the middle right.

Closing for now, but let me know if you have other issues about this and I'll re-open it.