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

Support for Windows #1

Open
quinn-p-mchugh opened this issue May 19, 2023 · 1 comment
Open

Support for Windows #1

quinn-p-mchugh opened this issue May 19, 2023 · 1 comment

Comments

@quinn-p-mchugh
Copy link

quinn-p-mchugh commented May 19, 2023

Hi there,

Interesting tool! If Windows support were added, I would use it on the regular.

When I install via pip install slackclipper, I run into the following error. Based on the README, it seems like this is expected.

C:\Users\Quinn>pip install slackclipper
Collecting slackclipper
  Using cached slackclipper-0.3.0-py3-none-any.whl (19 kB)
Collecting slacktokens (from slackclipper)
  Using cached slacktokens-0.2.3-py3-none-any.whl (16 kB)
Collecting requests==2.27.1 (from slackclipper)
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting pyperclip==1.8.2 (from slackclipper)
  Using cached pyperclip-1.8.2.tar.gz (20 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\quinn\appdata\local\programs\python\python311\lib\site-packages (from requests==2.27.1->slackclipper) (1.26.14)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\quinn\appdata\local\programs\python\python311\lib\site-packages (from requests==2.27.1->slackclipper) (2022.12.7)
Collecting charset-normalizer~=2.0.0 (from requests==2.27.1->slackclipper)
  Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Requirement already satisfied: idna<4,>=2.5 in c:\users\quinn\appdata\local\programs\python\python311\lib\site-packages (from requests==2.27.1->slackclipper) (3.4)
Collecting leveldb==0.201 (from slacktokens->slackclipper)
  Using cached leveldb-0.201.tar.gz (236 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      Don't know how to compile leveldb for Windows!
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
@hraftery
Copy link
Owner

Thanks for your interest. It certainly would make it accessible to more people.

Alas, as you point out, this is known shortcoming due to slacktokens' dependency on leveldb, which is not well supported on Windows.

So I see two paths to resolution:

  1. Remove the dependency and extract the Slack token some other way, or
  2. Improve leveldb. That appears to be a long on-going saga.

Since slacktokens was the giant whose shoulders gave slackclipper life, I'm not super motivated to explore alternatives. But it's certainly doable and I'd gratefully receive contributions!

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

2 participants