haskellcamargo/sclack

No module named 'sclack'

joeg1484 opened this issue · 6 comments

I followed the build instrucitons and used the pip3 install, but when I launch app.py, I get this

$ ./app.py
Traceback (most recent call last):
  File "./app.py", line 14, in <module>
    from sclack.components import Attachment, Channel, ChannelHeader, ChatBox, Dm
ModuleNotFoundError: No module named 'sclack'

Here is the output from the install:

$ pip3 install -r requirements.txt
Requirement already satisfied: asyncio in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied: urwid==2.0.1 in /usr/local/lib64/python3.6/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied: pyperclip==1.6.2 in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied: requests in /usr/lib/python3.6/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied: slackclient==1.2.1 in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 5))
Requirement already satisfied: urwid_readline in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 6))
Requirement already satisfied: websocket-client==0.47.0 in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 7))
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests->-r requirements.txt (line 4))
Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python3.6/site-packages (from requests->-r requirements.txt (line 4))
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests->-r requirements.txt (line 4))
Requirement already satisfied: six<2.0a0,>=1.10 in /usr/lib/python3.6/site-packages (from slackclient==1.2.1->-r requirements.txt (line 5))

Im running this on Centos 8 fully updated

Any ideas?

Thanks!
Joe

I also tried installing the requirements in my home dir

Requirement already satisfied: asyncio in /home/USERNAME/.local/lib/python3.6/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied: urwid==2.0.1 in /home/USERNAME/.local/lib/python3.6/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied: pyperclip==1.6.2 in /home/USERNAME/.local/lib/python3.6/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied: requests in /home/USERNAME/.local/lib/python3.6/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied: slackclient==1.2.1 in /home/USERNAME/.local/lib/python3.6/site-packages (from -r requirements.txt (line 5))
Requirement already satisfied: urwid_readline in /home/USERNAME/.local/lib/python3.6/site-packages (from -r requirements.txt (line 6))
Requirement already satisfied: websocket-client==0.47.0 in /home/USERNAME/.local/lib/python3.6/site-packages (from -r requirements.txt (line 7))
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests->-r requirements.txt (line 4))
Requirement already satisfied: charset-normalizer~=2.0.0; python_version >= "3" in /home/USERNAME/.local/lib/python3.6/site-packages (from requests->-r requirements.txt (line 4))
Requirement already satisfied: certifi>=2017.4.17 in /home/USERNAME/.local/lib/python3.6/site-packages (from requests->-r requirements.txt (line 4))
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /usr/lib/python3.6/site-packages (from requests->-r requirements.txt (line 4))
Requirement already satisfied: six<2.0a0,>=1.10 in /usr/lib/python3.6/site-packages (from slackclient==1.2.1->-r requirements.txt (line 5))

Still same error

mrhn commented

I'm sitting here with the same issue, on newest version of the app.

mrhn commented

Had success rolling back 1 commit, but my app is crashing on python3.8

Same issue, had to revert da75272 to work again

Not sure why this is defective, but a workaround is to export PYTHONPATH=., then run sclack/app.py from the top-level directory.

However, I'm getting a variety of fun errors that look like sclack isn't keeping up with the slack API, so...

@edanaher It's actually related to the session tokens from slack not being supported anymore wee-slack/wee-slack#844 (comment)