Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work on python3 #5

Open
birnstiel opened this issue Jun 14, 2022 · 3 comments
Open

does not work on python3 #5

birnstiel opened this issue Jun 14, 2022 · 3 comments

Comments

@birnstiel
Copy link

Latest macOS comes with python3 by default but the scripts are python2 only. Needs updating of all the python scripts and the script filter.

@yifengwan
Copy link

Two workarounds:

  1. install python 2 and download the workflow version here
  2. You can use a simple shell command in terminal or via alfred:
# open the first doc under package geometry
texdoc geometry
# or first list all files and then select one
texdoc -l geometry

@egeerardyn
Copy link
Owner

At the moment I do not have a working Mac to test anything on; but from inspection of texdoc.py, that should already be Python 3 compatible. The workflow package that gets embedded, I did not check in detail, but will probably exist as a Python 3 compatible version (if it is not compatible already).

Changing the code for that will not be difficult, I estimate 30 minutes work (probably even less), but obviously requires a working Mac to test everything.

Enabling Python 2 again is a bad idea, in a similar amount of time it is better to test this on Python 3.

@kiryph
Copy link

kiryph commented Nov 23, 2022

As much as I would like to not install Python 2, but as long as there is no Python 3 release of https://github.com/deanishe/alfred-workflow (e.g. see efforts in this PR deanishe/alfred-workflow#184), the texdoc workflow will probably require Python 2 for a while as well.

In the meanwhile you can do following:

  1. Install Python 2 as described here: https://www.alfredapp.com/help/kb/install-dependencies/
  2. Use modified texdoc workflow from here: https://github.com/alfredapp/updated-third-party-python2-workflows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants