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

No module named 'sclack' #146

Open
joeg1484 opened this issue Aug 12, 2021 · 6 comments
Open

No module named 'sclack' #146

joeg1484 opened this issue Aug 12, 2021 · 6 comments

Comments

@joeg1484
Copy link

joeg1484 commented Aug 12, 2021

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

@joeg1484
Copy link
Author

joeg1484 commented Aug 12, 2021

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
Copy link

mrhn commented Aug 19, 2021

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

@mrhn
Copy link

mrhn commented Aug 19, 2021

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

@portothree
Copy link

portothree commented Sep 7, 2021

Same issue, had to revert da75272 to work again

portothree referenced this issue Sep 7, 2021
Moved app and config within the sclack package
Co-authored-by: Steven McGrath <[email protected]>
Co-authored-by: Mario Rodas <[email protected]>
@edanaher
Copy link

edanaher commented Oct 4, 2021

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...

@portothree
Copy link

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

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