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

ModuleNotFoundError: No module named 'cPickle' #26

Open
azlekov opened this issue Apr 18, 2021 · 5 comments
Open

ModuleNotFoundError: No module named 'cPickle' #26

azlekov opened this issue Apr 18, 2021 · 5 comments

Comments

@azlekov
Copy link

azlekov commented Apr 18, 2021

Using Python 3

[17:09:09.776] Logging Started...
[17:09:13.443] GitLab[Script Filter] Queuing argument ''
[17:09:13.986] GitLab[Script Filter] Script with argv '(null)' finished
[17:09:13.989] ERROR: GitLab[Script Filter] Code 1: Traceback (most recent call last):
  File "/Users/azlekov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F068382A-1211-470D-8CBB-55029DDDF7E5/gitlab.py", line 4, in <module>
    from workflow import Workflow3, ICON_WEB, ICON_WARNING, ICON_INFO, web, PasswordNotFound
  File "/Users/azlekov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F068382A-1211-470D-8CBB-55029DDDF7E5/workflow/__init__.py", line 16, in <module>
    from .workflow import Workflow, manager
  File "/Users/azlekov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F068382A-1211-470D-8CBB-55029DDDF7E5/workflow/workflow.py", line 27, in <module>
    import cPickle
ModuleNotFoundError: No module named 'cPickle'
@azlekov
Copy link
Author

azlekov commented Apr 18, 2021

Workaround: I have edit the workflow scripts to execute python2 instead of just python

@jessedobbelaere
Copy link

macOS 12.3, which just came out, removes python2 so that workaround doesn't work here anymore 😅

@lukewaite
Copy link
Owner

I'll upgrade to 12.3 tonight and take a look in the AM.

@lukewaite
Copy link
Owner

FYI to any watching, this is a known issue in the upstream alfred-workflow package:
deanishe/alfred-workflow#151

There is talk of a rewrite for a version 2 which will support python 3 - but little info available as to whether that's in progress.
https://www.deanishe.net/alfred-workflow/supported-versions.html#python-versions

This is part of my day to day workflow, so I'm looking at options, but have nothing immediate to share.

@azlekov
Copy link
Author

azlekov commented Mar 15, 2022

This is an old one issue, which I overcome by just creating a brand new Alfred GitLab workflow. The configuration is very similar to this one, but I have extended the functionality.

It supports:

  • Epics
  • Issues
  • Boards
  • MRs
  • TODOs

actually I have mapped the repo/group side menu.

You can check it @lukewaite. I'm also using GitLab EE day to day, unfortunately cannot put nice video or screenshots because of NDA 😞

Recently I switched to https://www.raycast.com which already give nice and up-to-date GitLab extension. That's why my repo is not quite active.

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

3 participants