-
Notifications
You must be signed in to change notification settings - Fork 26
Bug Report: Problems generating full list of scan dates for plotTimeSeries.py #96
Comments
@QuantumKittydynamics,
|
Additionally please include the commands, from the very beginning, and their outputs. |
|
If you connect to a certain PC over ssh in your macbook terminal and then run the code there - it is that PC of our interest. So as far as I can understand, a correct answer to the first question should be ''lxplus" |
Indeed I think this is why it's important to have the exact commands executed, and their output. The info above does not show this. Also I suspect the issue is stemming from the fact that after the rebase & merge of the packaging PR's the installation and setup statements of the https://github.com/cms-gem-daq-project/gem-plotting-tools/#setup @QuantumKittydynamics please provide exact commands, and their output. @BenjaminRS, @jsturdy and @mexanick is there an updated installation recipe's documented somewhere? |
I see, I didn't understand you wanted the commands from genesis. Input: Output: Input: Output:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory Input: (***) (Because this is the only place where I can even run the script, rather than getting the following error: python: can't open file 'plotTimeSeries.py': [Errno 2] No such file or directory) Output: Input: Output: Traceback (most recent call last): *** I rebuilt the three shell variables and resourced the paths as described here: https://github.com/cms-gem-daq-project/gem-plotting-tools/#setup Hence the new error. And, indeed, with cmsgemos on commit eda69b0c2f4f261958dc4d204943a649fc45b665 , I do not see anything called anautilities in $BUILD_HOME/cmsgemos/gempython/gemplotting/utils/anautilities |
ok I will leave it to @jsturdy to give the instructions as I will likely get it wrong. 2.5 weeks ago I had to install some updates with cp ~sturdy/public/cmsgemos_gempython-0.3.1.tar.gz .
pip install --no-deps cmsgemos_gempython-0.3.1.tar.gz But as I said, it is best to let Jared give the correct and up-to-date instructions, From my area on lxplus I get the following: $ python plotTimeSeries.py --listOfScanDatesOnly --startDate=2017.01.01
Options: vt1bump=vt1bump0, dataPath=/afs/cern.ch/user/b/benjamin/GEMDev, anaType=scurve
Traceback (most recent call last):
File "plotTimeSeries.py", line 63, in <module>
makeListOfScanDatesFile(chamber, anaType, options.startDate, options.endDate)
File "/afs/cern.ch/user/b/benjamin/GEMDev/venv/slc6/py27/lib/python2.7/site-packages/gempython/gemplotting/utils/anautilities.py", line 352, in makeListOfScanDatesFile
dirPath = getDirByAnaType(anaType, chamberName, ztrim)
File "/afs/cern.ch/user/b/benjamin/GEMDev/venv/slc6/py27/lib/python2.7/site-packages/gempython/gemplotting/utils/anautilities.py", line 57, in getDirByAnaType
from gempython.gemplotting.anaInfo import ana_config
ImportError: No module named anaInfo |
I will try to update with a minimal get-it-working set of instructions for a user (@QuantumKittydynamics, your current use case is as a user, rather than developing a feature, correct?) |
@jsturdy , yes, I'm not trying to develop anything right now, just a user. :) Thank you! |
Hi @QuantumKittydynamics, as a first go, can you try this I think this will be enough get you going, but I may have missed a step or two, in which case, report here the errors. Once this document is updated to a level that works, I'll work it into the |
Hi @jsturdy , sorry for the late reply, I got held up by another task. So, I was able to successfully get all three tarballs, but I fail when trying to set up the virtual environment. I checked my Python version using: Input: python -V Output: Python 2.7.11 So I inputted that into the instructions here: https://gist.github.com/jsturdy/a82a6b7b7d497ae8ef98ee736119c6b5 Input: [estarlin@lxplus027 CMS_GEM_DAQ]$ virtualenv -p 2.7.11 --system-site-packages /afs/cern.ch/user/e/estarlin/CMS_GEM/CMS_GEM_DAQ/venv /afs/cern.ch/user/e/estarlin/CMS_GEM/CMS_GEM_DAQ/venv/bin/activate Output: The executable 2.7.11 (from --python=2.7.11) does not exist I'm not sure I understand what's happening? Thanks for your help. |
Hi @QuantumKittydynamics,
I on my side haven't been able to find the third tarball. Is it in a "public" location somewhere? |
Benjamin posted the command for the third tarball, @lmoureaux : cp ~sturdy/public/cmsgemos_gempython-0.3.1.tar.gz . |
Thanks, Louis, that seemed to work. Input:
Output:
This makes my venv with folders: bin include lib lib64 slc6 But the second line of the instructions doesn't make sense: /path/to/your/venv/bin/activate I can't add it to the initial command, because I get the error "There must be only one argument: DEST_DIR" And I can't do anything with it on its own. Just entering it alone does nothing, as expected: Input:
Output:
I can't cd to it, because it doesn't exist. And replacing the DEST_DIR with /path/to/your/venv/bin/activate results in a giant mess:
|
Source it:
|
I can't source it...because it doesn't exist. Am I supposed to make it first? Input:
Output:
|
The error message doesn't say "No such file or directory" but "Not a directory". It believes that you're trying to access a directory. That's because of the trailing slash after |
Thank you so much for all the help, Louis. I am not super command line literate yet.. So the only one I can't successfully install now is the cmsgemos tarball. Using the option --nodeps gives "no such option: --nodeps". And not adding that option gives:
|
The correct option is |
Great, that worked. I went through everything else, it all worked...and then finally back to the original problem... Input:
Output:
|
This means that shell variable |
@lmoureaux did this fail at the virtualenv creation? Or when updating I just today was trying to work around the Also, on
A separate |
@jsturdy Thank you 👍. I'll take a look tomorrow. I hadn't refreshed your |
2.6To update
I uploaded the tarballs using
Note: The system
2.7
I get the same results even after |
OK, the system OK, on the source /cvmfs/sft.cern.ch/lcg/views/LCG_93/x86_64-slc6-gcc7-opt/setup.sh
python -m virtualenv -p python /tmp/${USER}/lcgvenv --system-site-packages
python -m pip list
python -m pip install -U importlib setuptools pip This worked, probably due to the way that the LCG bundle is packaged, and in general, it should always work, even if the |
For setting up a virtualenv on lxplus i think the example illustrated here: https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/develop/setup/createVirtualEnvPy27.sh Could be adapted, note there is one for py26 as well. Again I would suggest against trying to reinvent the wheel and try to adapt existing tools. |
That will only work if the One can also get a In addition, it's not clear that that method would work with the updates to the three packages (I'm pretty sure the same issues already encountered would be present), as a "standard" virtualenv setup is not a problem, it's a problem if there are some |
Indeed, but it seems lxplus nodes have
Does the subversion of python2.7 matter much here? I assume not, on cc7 the default is 2.7.5 whereas rh-python27 is 2.7.11 iirc.
I'll give it a try as well and report back. I'm trying the developer instructions so @lmoureaux can continue with the user instructions. |
Python 2.7On my
However,
...and the rest of the instructions work fine, though:exclamation:the We may want to use What's a good Python 2.7 distribution available at P5? |
What is the output of
What do you mean? |
Python 2.6Still on my
|
The
Instead of:
write:
which can be copy-pasted as-is, provided there's only one Python version installed in the I also think that the |
I think @jsturdy was using it simply to imply additional sub folders exist, and includes a Additionally in:
The number of python versions installed should not matter since you should be setting up a separate |
That's obviously the meaning of it, but I didn't understand it at first (there are two parts to replace). Just trying to avoid complaints about the instructions not working
My point is that
Even though I couldn't find one, maybe @jsturdy had a good reason not to use a wildcard here. |
I see, I envisioned a different use case in which
When using wildcards the following fails for me:
In general I would suggest
With some help from @jsturdy got the syntax working nicely. |
How does it fail? I just checked and for me it finds the file (not sure about executing it).
Wildcards are expanded when the variable is set, and AFAIK not when looking it up. So my command above |
@jsturdy this probably also covers |
I cannot repeat @lmoureaux's success story:
specifically:
When attempting to run
With the LCG version of Going to give up on the LCG view since this doesn't seem to be functional. Diverting back to the relying on the original strategy shown in createVirtualEnvPy27.sh |
At the time, the instructions stated:
|
@lmoureaux under which conditions was |
I definitely don't know what's being asked here... if a person is developing a feature that depends on some special version of some tool, I fully expect them to be able to set this up themselves (or follow a |
The ones documented here. It's maybe due to me having installed |
Fantastic, I will try everything when I get back home from my trip. Thank you so much to everyone. |
Following the new instructions in 29fb355 , I get the exact same initial error I reported in this bug report when attempting to generate the list of scan dates... |
Did you start from a clean directory? I can't reproduce. |
Types of issue
Expected Behavior
When I type the following command:
python plotTimeSeries.py --listOfScanDatesOnly --startDate=2017.01.01
for each detector defined in chamber_config.values() the listOfScanDAtes.txt file should be found at $DATA_PATH//scurve/
Current Behavior
Instead, it halts the process and outputs the following error:
Traceback (most recent call last):
File "plotTimeSeries.py", line 26, in
from gempython.utils.wrappers import envCheck
ImportError: No module named gempython.utils.wrappers
Steps to Reproduce (for bugs)
Possible Solution (for bugs)
Context (for feature requests)
I am trying to generate the full list of scan dates since 2017 installation for the various detectors to study the presence of burned VFAT inputs in time-series SCurve plots.
Your Environment
The text was updated successfully, but these errors were encountered: