Dear IPMCers,
I am trying to compile the ipmc-project gitlab repo files, and the script does not seem to complete :
(py2) mbenoit@pc-office-mb:~/projects/IPMC/ipmc-project$ python compile.py
CERN Username: mbenoit
CERN Password:
--> Clone ipmc-dev git repository
--> Git clone successfully finished
--> Configure IPMC source code
.Traceback (most recent call last):
File "compile.py", line 296, in <module>
main(USERNAME, PASSWORD)
File "compile.py", line 264, in main
link = CERNSSORequestInstance.post_stream(URL, data = values, files = files)
File "compile.py", line 120, in post_stream
for chunk in r.iter_content(chunk_size=1):
File "/home/mbenoit/anaconda3/envs/py2/lib/python2.7/site-packages/requests/models.py", line 756, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
same in python3 :
(py3) mbenoit@pc-office-mb:~/projects/IPMC/ipmc-project$ python compile.py
CERN Username: mbenoit
CERN Password:
--> Clone ipmc-dev git repository
--> Git clone successfully finished
--> Configure IPMC source code
.Traceback (most recent call last):
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/urllib3/response.py", line 697, in _update_chunk_length
self.chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/urllib3/response.py", line 438, in _error_catcher
yield
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/urllib3/response.py", line 764, in read_chunked
self._update_chunk_length()
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/urllib3/response.py", line 701, in _update_chunk_length
raise InvalidChunkLength(self, line)
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/requests/models.py", line 760, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/urllib3/response.py", line 572, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/urllib3/response.py", line 793, in read_chunked
self._original_response.close()
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/contextlib.py", line 137, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/urllib3/response.py", line 455, in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mbenoit/projects/IPMC/ipmc-project/compile.py", line 296, in <module>
main(USERNAME, PASSWORD)
File "/home/mbenoit/projects/IPMC/ipmc-project/compile.py", line 264, in main
link = CERNSSORequestInstance.post_stream(URL, data = values, files = files)
File "/home/mbenoit/projects/IPMC/ipmc-project/compile.py", line 120, in post_stream
for chunk in r.iter_content(chunk_size=1):
File "/home/mbenoit/anaconda3/envs/py3/lib/python3.9/site-packages/requests/models.py", line 763, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
My undestanding of the script is that is sends some zip file away from compilation, but does not get the proper file back.
Any idea what is going on ?
Thanks in advance,
Mathieu Benoit