https://pantsbuild.org/ logo
#general
Title
# general
f

freezing-area-97131

03/29/2022, 12:45 AM
Hi, I was trying to run pants in github action and got this when running
./pants --level=debug binary ...
What does this mean and how to fix it?
Copy code
00:24:57 [DEBUG] urllib3.connectionpool:pid=2668: <https://files.pythonhosted.org:443> "GET /packages/64/de/7e79ee9dd4fad3750f3fd6a1b4f2c7dcece54c486e765747e1593f8df029/googleads-15.0.1.tar.gz HTTP/1.1" 200 53290
00:24:57 [DEBUG] pants.process.lock:pid=2668: releasing lock: <pants.process.lock.OwnerPrintingInterProcessFileLock object at 0x7cf0925dd310>
                     Dumping requirement: PythonRequirement(jenkinsapi==0.3.9)
               Waiting for background workers to finish.
00:24:58 00:17   [complete]

timestamp: 2022-03-29T00:24:58.083088
Exception caught: (pex.archiver.UnpackError) (backtrace omitted)
Exception message: Could not extract /tmp/tmpObxfk2/myproject.common-1.0.tar.gz


               FAILURE
Error: Process completed with exit code 1.
h

hundreds-father-404

03/29/2022, 12:46 AM
Huh. Nothing else to the error message? I'm not sure - is it determistic if you restart CI?
f

freezing-area-97131

03/29/2022, 12:57 AM
I ran it again and it’s basically the same.
Copy code
00:49:34 [DEBUG] urllib3.connectionpool:pid=2678: <https://files.pythonhosted.org:443> "GET /packages/64/de/7e79ee9dd4fad3750f3fd6a1b4f2c7dcece54c486e765747e1593f8df029/googleads-15.0.1.tar.gz HTTP/1.1" 200 53290
00:49:34 [DEBUG] pants.process.lock:pid=2678: releasing lock: <pants.process.lock.OwnerPrintingInterProcessFileLock object at 0x7fb64486a250>
                     Dumping requirement: PythonRequirement(jenkinsapi==0.3.9)
               Waiting for background workers to finish.
00:49:34 00:20   [complete]

timestamp: 2022-03-29T00:49:34.760470
Exception caught: (pex.archiver.UnpackError) (backtrace omitted)
Exception message: Could not extract /tmp/tmpAnxxzt/myproject.common-1.0.tar.gz


               FAILURE
Error: Process completed with exit code 1.
h

hundreds-father-404

03/29/2022, 1:00 AM
Huh. Did something change recently when this started happening, like this is on a new PR?
f

freezing-area-97131

03/29/2022, 1:02 AM
hmm. This is a new github action for me. I am just testing if this will work. Previously it did not exist in my project.
h

hundreds-father-404

03/29/2022, 1:06 AM
Hm okay. I'm honestly not sure what the issue is nor how to debug it. My first guess would be to make sure that the environment has program like
unzip
on it..but I don't think Pex would be subprocessing out to
unzip
- probably would be using PYthon's
zip
module What's your GitHub environment? The standard runner, for example?
f

freezing-area-97131

03/29/2022, 1:08 AM
I think so. I didn’t set up a self-hosted one.
h

happy-kitchen-89482

03/29/2022, 1:12 AM
Which version of Pants is this?
f

freezing-area-97131

03/29/2022, 1:13 AM
It’s pants
1.17.0
and python
2.7
… I am working on the upgrade on the other hand…
h

happy-kitchen-89482

03/29/2022, 4:11 AM
Ah, that is a very very old Pants 🙂 Unfortunately I'm not sure we can debug that far back very easily.
It's probably easier if we help you upgrade to Pants 2.x 🙂
Where that problem will probably not happen
f

freezing-area-97131

03/29/2022, 6:22 AM
ok… Eventually, I need to face it. I will open another thread for this upgrading. I have already encountered some problems lol…
6 Views