Bug 1640890

Summary: sagemath notebook() throw "No module named 'sagenb'
Product: [Fedora] Fedora Reporter: Klaus Pedersen <projectu>
Component: sagemathAssignee: Paulo Andrade <paulo.cesar.pereira.de.andrade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 29CC: paulo.cesar.pereira.de.andrade
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: sagemath-8.3-2.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-28 03:44:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Klaus Pedersen 2018-10-19 05:46:56 UTC
Description of problem:
Executing 'notebook()' at sage shell commandline throw an exception:
[...]
  File "sage_notebook.sagenb/twistedconf.tac", line 6, in <module>
    import sagenb.notebook.misc
builtins.ModuleNotFoundError: No module named 'sagenb'


Failed to load application: No module named 'sagenb'



Version-Release number of selected component (if applicable):

python2-notebook-5.6.0-2.fc29.noarch.rpm
sagemath-8.3-1.fc29
sagemath-notebook-8.3-1.fc29

How reproducible:
Everytime

Steps to Reproduce:
1.sage
2.notebook() # at sage commandline
3.

Actual results:
... long exception dump "no module sagenb"...

Expected results:
Tab in browser open with my sagemath nootbooks

Additional info:

Sage notebook seem to be available:
/usr/lib64/python2.7/site-packages/sagenb/notebook/...

Creating a file with:
----
import sagenb.notebook.misc
----

$ python2 a.py

This execute until the point where is need SAGE environment variables...

Ahh, sagemath is still 2.7... and twisted is now python 3.7:

  File "/usr/lib64/python3.7/site-packages/twisted/persisted/sob.py", line 177, in loadValueFromFile
    eval(codeObj, d, d)
  File "sage_notebook.sagenb/twistedconf.tac", line 6, in <module>
    import sagenb.notebook.misc
builtins.ModuleNotFoundError: No module named 'sagenb'


$ python3 a.py

  File "a.py", line 1, in <module>
    import sagenb.notebook.misc
ModuleNotFoundError: No module named 'sagenb'

Comment 1 Klaus Pedersen 2018-11-15 10:40:59 UTC
The problem persist on released Fedora 29.

Either I am the only person with this problem or ... only person with Fedora 29 that use Sage...

List of packages:
 python2-notebook.noarch            5.6.0-2.fc29
 python3-notebook                   5.6.0-2.fc29
 sagemath-notebook.x86_64           8.3-1.fc29
 sagemath-notebook-export           8.3-1.fc29
 sagemath.x86_64                    8.3-1.fc29
 sagemath-notebook.x86_64           8.3-1.fc29

(didn't change since 29 beta)

Comment 2 Klaus Pedersen 2019-01-03 10:01:18 UTC
Ping!?

@Paulo Andrade: Is it possible to use the sagemath classic notebook on Fedora 29? What is the trick?

"sage -n export" isn't working either...

Comment 3 Fedora Update System 2019-01-19 21:23:48 UTC
sagemath-8.3-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f51ce43c89

Comment 4 Fedora Update System 2019-01-20 02:34:01 UTC
sagemath-8.3-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f51ce43c89

Comment 5 Fedora Update System 2019-01-28 03:44:33 UTC
sagemath-8.3-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.