[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Failing autopkgtest for jupyter-notebook



Hi,

I decided to fix the jupyter-notebook packages ; on salsa I:

- updated to a more recent upstream (but still in the same series to
avoid breaking things) ;

- unbroke the build by hand ;

- unbroke the build in chroot.


So far, so good, but I didn't unbreak the autopkg tests. Here is the
relevant part of the log:

autopkgtest [11:58:56]: test pytest: [-----------------------
============================= test session starts
==============================
platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0+repack
rootdir: /tmp/autopkgtest.GZ5NTc/build.GPO/src
collected 330 items / 38 errors / 5 deselected / 325 selected

==================================== ERRORS
====================================
_ ERROR collecting debian/python3-notebook/usr/lib/python3/dist-
packages/notebook/auth/tests/test_login.py _
import file mismatch:
imported module 'notebook.auth.tests.test_login' has this __file__
attribute:
 
/tmp/autopkgtest.GZ5NTc/build.GPO/src/notebook/auth/tests/test_login.py
which is not the same as the test file we want to collect:
  /tmp/autopkgtest.GZ5NTc/build.GPO/src/debian/python3-
notebook/usr/lib/python3/dist-
packages/notebook/auth/tests/test_login.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for
your test file modules
_ ERROR collecting debian/python3-notebook/usr/lib/python3/dist-
packages/notebook/auth/tests/test_security.py _
import file mismatch:
imported module 'notebook.auth.tests.test_security' has this __file__
attribute:
 
/tmp/autopkgtest.GZ5NTc/build.GPO/src/notebook/auth/tests/test_security
.py
which is not the same as the test file we want to collect:
  /tmp/autopkgtest.GZ5NTc/build.GPO/src/debian/python3-
notebook/usr/lib/python3/dist-
packages/notebook/auth/tests/test_security.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for
your test file modules



I don't know how to do that -- the hints don't help me that much.

Cheers,

J.Puydt


Reply to: