-
Notifications
You must be signed in to change notification settings - Fork 2
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
NIMROD IBEX Script Console: Pylint Errror Loading Script [TIMEBOX: 4 Days] #7034
Comments
I can not replicate this on my own personal dev machine. When another test machine becomes available running IBEX 10.0.0 to try and duplicate this issue on, I will update this comment. |
Consider timeboxing this for initial investigation and fix (if there is one and it's not a bug in pylint!) |
Other things to note: -pylint from a
I don't know if we use a pylint.rc file in genie python for the script checking or not. EDIT: we do - https://github.com/ISISComputingGroup/genie_python/blob/master/Lib/site-packages/genie_python/.pylintrc |
apply-builtin doesn't appear to be on the list of valid features https://pylint.pycqa.org/en/latest/technical_reference/features.html but it is in https://pylint.pycqa.org/en/v2.10.2/technical_reference/features.html - so looks to be removed. |
My theory is we were using this version last time the instrument scientists loaded/checked any scripts and our pylint.rc has got out of date since - we should remove anything that is now not valid. |
I find it weird that no one else has called us about this... maybe an oddity on NIMROD with an old version of pylint perhaps? |
Just had the same issue on ZOOM, a script that has been used in the past and was fine but is now giving W1061 error as above |
Could you find out what script it was? perhaps there are some similarities between the two offending scripts |
It was a user script, so I'm a little loathe to put too much info here, but you can find a copy in teams if you search for ZOOM20220309 |
I can't be certain, but if memory serves me right, I think you can set an environment variable called |
I have just pinned pylint to 2.13.9 as 2.14.1 was causing jenkins test failures as per https://stackoverflow.com/questions/72486567/pylint-2-14-0-outputs-bad-option-value-for-no-self-use-no-space-check |
I've reproduced this issue locally by copying Between the old and the new version of IBEX, we updated our pylint dependency, which caused one of The description above is also true of ZOOM, the other instrument where we've seen this error. This also means that other libraries might be in an invalid state on these instruments due to similar stale files. I propose that the solution to this ticket is:
If this is found later on an instrument, it may be sufficient to simply delete Note: #6369 would be a more general solution and could allow scientists to keep manually-installed packages between ibex releases (which might be why we're not currently using |
TS2 instruments which have this issue:
To review the deployments to these instruments, verify that the following files no longer exist on the instruments above:
TS1 instruments will receive a new deploy before next running; so I have not patched these. I've put an example of a corrupt python installation in PRs: |
Where?
c:\scripts\calib_22_2_22.py
It was found that when loading a script such as
c:\scripts\calib_22_2_22.py
on NIMROD that pylint failed withw1601
How?
Occurred when an IS tried to load a script on NIMROD in the scripting console after successfully testing the camera homing routines #6934 . This may be a problem with Pylint as it looks like someone else has experienced the same problem HERE.
If not reproduceable, it may be a problem with IBEX on NIMROD meaning something may have become corrupt.
Reproducible?
[Yes/No]
To Reproduce
c:\scripts\calib_22_2_22.py
found on NIMROD into scripting console in IBEX on a Dev and Test machine.w1601
will be returned.Acceptance criteria
c:\scripts\calib_22_2_22.py
in the scripting window of IBEX.c:\scripts\calib_22_2_22.py
in the scripting window of IBEX.How to Test
c:\scripts\calib_22_2_22.py
in the scripting window of IBEX.The text was updated successfully, but these errors were encountered: