Comments (9)
What helped me as a temporary solution:
- Follow the guide to install python2: www.alfredapp.com
- Do
python --version
. Should be python 2.7 - Get the new path via
which python
. In my case it was/usr/local/bin/python
- Replace
/usr/bin/python
with the new path in the Alfred Workflow and inside the workflow folder. I needed to replace it inside ofworkflow/background.py
andgitlab.py
Use the Alfred Workflow Debugger in the Preferences for assistance.
And yes, a new workflow would definitely be needed, but I don't have currently time to port it to python3. It looks like there are not even Alfred helpers for python3? That's weird ...
from alfred-gitlab.
Fixed thanks to @TribuneX in 3.0.0 which you may need to manually install if you're already on 12.3.
from alfred-gitlab.
/usr/bin/python
was removed on macOS 12.3..
This leads to /bin/bash: python2: command not found
when running the workflow with debug console open in alfred.
A possible workaround (definitely not the right solution, but works and good enough if you use it daily as I do) is to locate each occurrence of /usr/bin/python
in the code and python
in the and replace them with the path to an installation of python2.7
that you will manage by yourself.
It would definitely be preferable to update this workflow to python3 instead, but if you just want it to work, here are full steps. This assumes you have conda
installed.
conda create -n alfred-gitlab python=2.7
conda activate alfred-gitlab
which python # this will give you the python path, mine gave me this:
# /Users/gableroux/miniconda/envs/alfred-gitlab/bin/python
Update these:
Example:
Open Alfred.alfredpreferences/workflows/user.workflow.D7406121-E5D3-438B-81D5-70FF7A9C58AC/
(path to the workflow files) and do a search and replace from /usr/bin/python
to the new python path.
Here you go, shiny workflow again (manually altered, but good enough until this gets a proper fix).
from alfred-gitlab.
I upgraded this workflow to be compatible with python3 (with some help of @meinjens):
https://github.com/TribuneX/alfred-gitlab
I upgraded to a python3 compatible alfred-workflow version and replaced the old web.py
with mureq. I'll see if I will open a PR here to get these changes included in this workflow.
from alfred-gitlab.
@TribuneX Awesome!
I've successfully used your fork to port alfred-gitea to Python3.
I was trying since a few days and struggling (as I am not a Python professional) but your forked got me going quickly.
🚀
from alfred-gitlab.
Thank you @TribuneX for updating and to @lukewaite for merging it in so quickly! This whole last week for me was gl foo… 🤦🏻
😆
from alfred-gitlab.
ths~
from alfred-gitlab.
See deanishe/alfred-workflow#97 and the patched fork at https://github.com/NorthIsUp/alfred-workflow-py3.
from alfred-gitlab.
if your main use case is searching for repos, i wrote a workflow that can be used until this excellent workflow is updated to support py3: https://github.com/mjhuber/alfred-gitlab
from alfred-gitlab.
Related Issues (20)
- Feature idea: automatically append '/api/v4/projects' to the URL if not present HOT 1
- Add a way to go directly to the categories of the project (Issues, Merge Request,...) HOT 2
- Opening a project with quick_open set to false fails on first time HOT 1
- projects don't get retrieved (openssl errors)
- Support gitlab issue board HOT 1
- Alfred v4 support HOT 9
- Does it support enterprise edition? HOT 1
- Not fetching any gitlab projects projects => update.py gives HTTP Error 308 permanent redirect HOT 1
- ModuleNotFoundError: No module named 'cPickle' HOT 5
- alfred-gitlab not working on macOS 12.3 after upgrade HOT 10
- There is no gl keyword HOT 2
- Why do I have no items when I configure token and URL prompt
- alfred-gitlab not working on macOS 13.0 after upgrade HOT 1
- why select gl error in workflow gitlab
- Thanks
- Repositories not getting refreshed
- use modifier key to replace environment variable
- Add some debugging options for 'when it doesn't work'
- glsetkey needed quotes around the token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-gitlab.