-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during sampling #650
Comments
Can you run the code with 'show_console=True` and paste that output? Are you able to share your Stan code? |
11:59:00 - cmdstanpy - INFO - Chain [1] start processing Chain [2] Chain [1] Command and output files: |
Hi, @yingyuctw. Can you try running it without dropbox and with argument You can try looking in the temp directory specified to see if the output is actually there. It looks like it's failing at the end while manipulating files of draws so it may just be a write permission failure. |
3221225653 seems like it is sometimes used as the error code for device IO timeout, which certainly could be dropbox/permissions related. |
I don't know why it generate lnrm2_v2.exe in dropbox. I move the folder to different space. It still generates in dropbox. Anyway to reset it? Traceback (most recent call last): Command and output files: |
I upload the code I use to gist. |
I try to update the code.
It still generate error. I remove the folder from dropbox, It still show same error Command and output files: |
Can you share the code you run? Do you use any caching modules? |
@ahartikainen The code I am using. Dotstudy call adapt_SFT run cmdstanpy |
Maybe your code is still using the pickled model? Now there is a lot of going on. e.g. by default .exe is created to same folder as .stan I think I saw dropbox folder there. Then another script first checks if pickled model is found (in what folder, same as in python file, because that calls chdir?). Also, what is the purpose pickling? |
Now there is a lot of going on. e.g. by default .exe is created to same folder as .stan I think I saw dropbox folder there. @ahartikainen Can you tell me which line? I think I removed everything. |
Not sure Any case, can you create a minimal example where you have data as json and stan file etc in a same folder as your cmdstanpy script. Don't use chdir etc commands. |
@ahartikainen I change the path you mention. It still the same. |
Summary:
Please provide a short couple sentence summary.
I try to run cmdstanpy. But it keep showing error.
Description:
Describe the issue as clearly as possible.
I am using pycharm to run the code. I check error code on stackflow. In docker, it is issue about c++. So, I try to update the c++ version. It does not work.
Additional Information:
Provide any additional information here.
raise RuntimeError(msg)
`RuntimeError: Error during sampling:
Command and output files:
RunSet: chains=4, chain_ids=[1, 2, 3, 4], num_processes=4cmd (chain 1):
['D:\xxx\Dropbox\Fall2022\dotstudy-master\data\dotstudy\lnrm2_v2.exe', 'id=1', 'random', 'seed=98393', 'data','file=C:\\Users\\xxx\\AppData\\Local\\Temp\\tmp36qi7n31\\_mweuysg.json', 'init=C:\\Users\\lalor\\AppData\\Local\\Temp
\tmp36qi7n31\l4eb0hu8.json', 'output', 'file=C:\Users\lalor\AppData\Local\Temp\tmp36qi7n31\lnrm2_v2zw2ep36n\\lnrm2_v2-20230130162342_1.csv', 'method=sample', 'algorithm=hmc', 'adapt', 'engaged=1']
retcodes=[3221225781, 3221225781, 3221225781, 3221225781]
per-chain output files (showing chain 1 only):
csv_file:
C:\Users\xxx\AppData\Local\Temp\tmp36qi7n31\lnrm2_v2zw2ep36n\lnrm2_v2-20230130162342_1.csv
console_msgs (if any):
C:\Users\xxx\AppData\Local\Temp\tmp36qi7n31\lnrm2_v2zw2ep36n\lnrm2_v2-20230130162342_0-stdout.txt
Consider re-running with show_console=True if the above output is unclear!
Current Version:
Please include the output of
import cmdstanpy; cmdstanpy.show_versions()
, orat least the cmdstan and cmdstanpy versions used.
1.0.8
The text was updated successfully, but these errors were encountered: