Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1718246 - python-tables fails to build with Python 3.8
Summary: python-tables fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-tables
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Thibault North
QA Contact: Fedora Extras Quality Assurance
URL: https://copr.fedorainfracloud.org/cop...
Whiteboard:
Depends On:
Blocks: PYTHON38 1705462
TreeView+ depends on / blocked
 
Reported: 2019-06-07 11:17 UTC by Miro Hrončok
Modified: 2023-09-12 01:48 UTC (History)
3 users (show)

Fixed In Version: python-tables-3.5.2-3.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-12 12:14:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github PyTables PyTables issues 744 0 None closed Python 3.8 ImportError: cannot import name 'clock' from 'time' 2021-01-10 13:54:36 UTC

Description Miro Hrončok 2019-06-07 11:17:21 UTC
python-tables fails to build with Python 3.8.0b1. See https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-tables/ for actual logs. This report is automated and not very verbose, but I'll get back here with details.

Comment 1 Miro Hrončok 2019-06-07 11:19:08 UTC
+ PYTHONPATH=/builddir/build/BUILDROOT/python-tables-3.5.2-1.fc31.x86_64/usr/lib64/python3.8/site-packages
+ /usr/bin/python3 bench/check_all.py
Traceback (most recent call last):
  File "bench/check_all.py", line 1, in <module>
    import sys, tables; sys.exit(tables.test(verbose=1))
  File "/builddir/build/BUILDROOT/python-tables-3.5.2-1.fc31.x86_64/usr/lib64/python3.8/site-packages/tables/__init__.py", line 131, in <module>
    from .file import File, open_file, copy_file
  File "/builddir/build/BUILDROOT/python-tables-3.5.2-1.fc31.x86_64/usr/lib64/python3.8/site-packages/tables/file.py", line 55, in <module>
    from .table import Table
  File "/builddir/build/BUILDROOT/python-tables-3.5.2-1.fc31.x86_64/usr/lib64/python3.8/site-packages/tables/table.py", line 44, in <module>
    from .index import (
  File "/builddir/build/BUILDROOT/python-tables-3.5.2-1.fc31.x86_64/usr/lib64/python3.8/site-packages/tables/index.py", line 26, in <module>
    from time import time, clock
ImportError: cannot import name 'clock' from 'time' (unknown location)
error: Bad exit status from /var/tmp/rpm-tmp.Q8DRnt (%check)


clock.time was deprecated and now it is removed.

$ python3.7 -c 'from time import clock; clock()'
-c:1: DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead



This issue is blocking the Python 3.8 rebuilds. If this package won't build with 3.8, it won't be installable, along with all its dependent packages, after the side tag is merged.
Furthermore, as it fails to install, its dependent packages will fail to install and/or build as well. The fix should be pushed on the master branch and no release bump is required.

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8: https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

This issue needs to be resolved by next week, if other rebuilds of Python 3.8 beta 1 go well. If this is unrealistic for you, let us know how much time you need.

If you don't have free cycles to dedicate fixing your package, notify us and we'll try to provide some pointers. Let us know if we can push a fix directly without a pull request, in the case we happen to have one before you do.

We recommend always consulting with upstream, chances are this is already fixed there.

Comment 2 Miro Hrončok 2019-07-10 14:41:24 UTC
Please respond.

Comment 3 Sergio Pascual 2019-07-11 07:50:29 UTC
Upstream is not aware. I have created an issue.

https://github.com/PyTables/PyTables/issues/744

A quick fix could be to change anywhere in the code

from time import clock

by 

from time import perf_counter as clock

Comment 4 Zbigniew Jędrzejewski-Szmek 2019-07-12 12:14:25 UTC
Build in rawhide and copr:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/build/968717/

Comment 5 Red Hat Bugzilla 2023-09-12 01:48:26 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.