Issue 33994: python build egg fails with error while compiling test cases

Issue33994

Created on 2018-06-29 05:18 by sabakauser, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg320700 - (view) Author: Saba Kauser (sabakauser) Date: 2018-06-29 05:18
Hello,
Everything was working perfectly until recently, may be a week back, when I first started to see the error while generating egg for python ibm_db package.
Every time I execute the command : python setup.py bdsit_egg, 
my flow stops with below error:

byte-compiling build\bdist.win-amd64\egg\tests\test_131_PrepareExecuteSelectStatementParams.py to test_131_PrepareExecuteSelectStatementParams.cpython-36.pyc
error: [Errno 2] No such file or directory: 'build\\bdist.win-amd64\\egg\\tests\\__pycache__\\test_131_PrepareExecuteSelectStatementParams.cpython-36.pyc.1942660169328'
Please note that, every time I run, the file name is getting appended with a random number. e.g test_131_PrepareExecuteSelectStatementParams.cpython-36.pyc.1942660169328' when the file name placed under tests/__pycache__ should be test_131_PrepareExecuteSelectStatementParams.cpython-36.pyc.

There are however other test cases upto test_130* that are getting compiled correctly. 
e.g:
byte-compiling build\bdist.win-amd64\egg\tests\test_112_FieldNumDiffCaseColNames.py to test_112_FieldNumDiffCaseColNames.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_113_DateTest.py to test_113_DateTest.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_114_NumericTest_01.py to test_114_NumericTest_01.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_115_NumericTest_02.py to test_115_NumericTest_02.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_116_ConnActive.py to test_116_ConnActive.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_120_FieldName.py to test_120_FieldName.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_121_FieldNameAddCol.py to test_121_FieldNameAddCol.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_122_FieldNameDiffCaseColNames.py to test_122_FieldNameDiffCaseColNames.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_123_FieldNamePos_01.py to test_123_FieldNamePos_01.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_124_FieldNamePos_02.py to test_124_FieldNamePos_02.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_125_FieldNamePos_03.py to test_125_FieldNamePos_03.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\tests\test_130_PrepExecuteSelectStmt.py to test_130_PrepExecuteSelectStmt.cpython-36.pyc

Can you guide me on what is leading to this? What is making to have the file name appended with random number.

Appreciate your assitance!

Thank you,
Saba.
msg411154 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-21 17:24
3.6 is no longer maintained. Please create a new issue if you are seeing this on a current version (>= 3.9).
History
Date User Action Args
2022-04-11 14:59:02adminsetgithub: 78175
2022-01-21 17:24:03iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg411154

resolution: out of date
stage: resolved

2018-06-29 05:18:50sabakausercreate