Skip to content
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

Fails :'you are runing in python mode and we did not find python file to execute' #1

Open
petrovs12 opened this issue Nov 10, 2021 · 1 comment

Comments

@petrovs12
Copy link

petrovs12 commented Nov 10, 2021

Hi, the v2 script fails with the bellow. Curiously, the scripts from the oplrunonwml repo works, so probably a small fix should suffice. It would be really helpful for my workflow.

{'input_data': [{'fields': ['TEXT'],
'id': 'diet.lp',
'values': [['XCBUaGlzIGZpbGUgaGFzIGJlZW4gZ2VuZXJhdGVkIGJ5IERPY3BsZXgKXCBFTkNPRElORz1JU08tODg1OS0xClxQcm9ibGVtIG5hbWU6IGRpZXQKCk1pbmltaXplCiBvYmo6IDAuODQwMDAwMDAwMDAwIFJvYXN0ZWRfQ2hpY2tlbiArIDAuNzgwMDAwMDAwMDAwIFNwYWdoZXR0aV9XX19TYXVjZQogICAgICArIDAuMjcwMDAwMDAwMDAwIFRvbWF0byxSZWQsUmlwZSxSYXcgKyAwLjI0MDAwMDAwMDAwMCBBcHBsZSxSYXcsV19Ta2luCiAgICAgICsgMC4zMjAwMDAwMDAwMDAgR3JhcGVzICsgMC4wMzAwMDAwMDAwMDAgQ2hvY29sYXRlX0NoaXBfQ29va2llcwogICAgICArIDAuMjMwMDAwMDAwMDAwIExvd2ZhdF9NaWxrICsgMC4zNDAwMDAwMDAwMDAgUmFpc2luX0JybgogICAgICArIDAuMzEwMDAwMDAwMDAwIEhvdGRvZwpTdWJqZWN0IFRvCiBjMTogMjc3LjQwMDAwMDAwMDAwMCBSb2FzdGVkX0NoaWNrZW4gKyAzNTguMjAwMDAwMDAwMDAwIFNwYWdoZXR0aV9XX19TYXVjZQogICAgICsgMjUuODAwMDAwMDAwMDAwIFRvbWF0byxSZWQsUmlwZSxSYXcgKyA4MS40MDAwMDAwMDAwMDAgQXBwbGUsUmF3LFd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5HXSBTdXBwb3J0IGZvciBQeXRob24gMy43IGlzIGRlcHJlY2F0ZWQgYnV0IHN0aWxsIHVzZWQgYXMgZGVmYXVsdCB3aXRoIHBhbmRhcyAwLjI0LjEgbGlicmFyaWVzLiBZb3Ugc2hvdWxkIG1pZ3JhdGUgeW91ciBtb2RlbCB0byBQeXRob24gMy44Lgo=',
'id': 'log.txt'}],
'output_data_references': [],
'solve_parameters': {'oaas.includeInputData': 'false',
'oaas.logAttachmentName': 'log.txt',
'oaas.logTailEnabled': 'true',
'oaas.resultsFormat': 'JSON'},
'solve_state': {'details': {'STAT.job.coresCount': '1',
'STAT.job.inputsReadMs': '1724',
'STAT.job.memoryPeakKB': '74252',
'STAT.job.outputsWriteMs': '8'},
'latest_engine_activity': ['[2021-11-10T10:37:27Z, WARNING] Support for CPLEX 12.10 is deprecated. You should migrate your model to latest CPLEX 20.1.',
'[2021-11-10T10:37:29Z, WARNING] Support for Python 3.7 is deprecated but still used as default with pandas 0.24.1 libraries. You should migrate your model to Python 3.8.'],
'solve_status': 'unknown'},
'status': {'completed_at': '2021-11-10T10:37:29.367Z',
'failure': {'trace': '3739a7a9054206180ee7495efd42579e',
'errors': [{'code': 'PROCESSING',
'message': "You are running in python mode and we did not find any python file to execute! You should have an entry point if name == 'main':"}]},
'running_at': '2021-11-10T10:37:27.415Z',
'state': 'failed'}}

@achabrier
Copy link
Collaborator

Hi, this is strange. It seems you are using a docplex python deployed model.
Ar eyou using the v2 script?
May be you already have a deployment with the same name "modelname_deployment" and it reuses it (for performance)
You could try to remove the deployement through the CPDaaS UI or chanigng a bit the code to force the model to be recreated and redeployed. (around line 95)

Another easy way to try is to change the name of our lp file to somethingelse.lp, then there will be no deployment with this name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants