[New-bugs-announce] [issue33994] python build egg fails with error while compiling test cases

Saba Kauser report at bugs.python.org
Fri Jun 29 01:18:50 EDT 2018


New submission from Saba Kauser <skauseribmdb at gmail.com>:

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.

----------
components: Build
messages: 320700
nosy: sabakauser
priority: normal
severity: normal
status: open
title: python build egg fails with error while compiling test cases
type: compile error
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33994>
_______________________________________


More information about the New-bugs-announce mailing list