Skip to content

Python ModuleNotFoundError: No module named 'math' #1109

@thosoo

Description

@thosoo
  • I confirm that this is an issue rather than a question.

Bug report

I have compiled hyperion from sources on a fresh fedora server image in a VM to fix a libcec bug. On start of hyperion I receive the following error log:

[thaison@localhost build]$ hyperiond
2020-12-06T19:02:51.517 hyperiond QTGRABBER    : <ERROR> No displays found to capture from!
2020-12-06T19:02:51.645 hyperiond EFFECTENGINE : <ERROR> ###### PYTHON EXCEPTION ######
2020-12-06T19:02:51.647 hyperiond EFFECTENGINE : <ERROR> ## In effect 'Rainbow swirl fast'
2020-12-06T19:02:51.650 hyperiond EFFECTENGINE : <ERROR> ## ModuleNotFoundError: No module named 'math'
2020-12-06T19:02:51.740 hyperiond EFFECTENGINE : <ERROR> ## Traceback (most recent call last):
2020-12-06T19:02:51.743 hyperiond EFFECTENGINE : <ERROR> ## File "<string>", line 1, in <module>
2020-12-06T19:02:51.745 hyperiond EFFECTENGINE : <ERROR> ## File "/usr/local/share/hyperion/lib/python/random.py", line 49, in <module>
    from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
2020-12-06T19:02:51.746 hyperiond EFFECTENGINE : <ERROR> ## ModuleNotFoundError: No module named 'math'
2020-12-06T19:02:51.747 hyperiond EFFECTENGINE : <ERROR> ###### EXCEPTION END ######
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/share/hyperion/lib/python/random.py", line 49, in <module>
    from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ModuleNotFoundError: No module named 'math'

Steps to reproduce

Compile and install on fedora server.

What is expected?

No error messages

What is actually happening?

Error messages

System

  • Fedora 33 server
  • Virtual Box VM

Hyperion Server:

  • Build: master (root-d65453ba/2b34b793-1607260462)
  • Build time: Dec 6 2020 18:54:16
  • Git Remote: https://github.com/thosoo/hyperion.ng
  • Version: 2.0.0-alpha.9
  • UI Lang: auto (BrowserLang: de)
  • UI Access: default
  • Avail Capt: v4l2,framebuffer,x11,xcb,qt
  • Database: read/write

Hyperion Server OS:

  • Distribution: Fedora 33 (Server Edition)
  • Architecture: x86_64
  • CPU Model: Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
  • CPU Type: 69
  • Kernel: linux (5.9.11-200.fc33.x86_64 (WS: 64))
  • Qt Version: 5.15.2
  • Python Version: 3.9.0
  • Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:83.0) Gecko/20100101 Firefox/83.0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions