Opened 23 months ago

Last modified 13 months ago

#28838 closed defect

sage -sws2rst broken — at Initial Version

Reported by: tmonteil Owned by:
Priority: critical Milestone: sage-9.2
Component: python3 Keywords:
Cc: vbraun, dimpase, kcrisman, jhpalmieri Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

An important feature is to still be able to handle old .sws worksheets because a lot of pedagogical material was written on that format. With 9.0.beta8 (Python 3 by default), when i try:

sage -sws2rst worksheet.sws

i got:

ModuleNotFoundError: No module named 'sagenb'

Fair enough, i can still install sagenb. But then, the same command leads to:

ImportError: BeautifulSoup must be installed.

If try to install BeautifulSoup, which seems Python2 specific, i got:

"You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."

I can install beautifulsoup4, but it does not solve the issue since it is for Python 3.

Of course sagenb is written for Python 2, and migrating it to Python 3 would require too much work.

So, i guess the best solution would be to extract and translate the required material from sagenb to sage that would let sage -sws2rst work.

Change History (0)

Note: See TracTickets for help on using tickets.