kaiwk / leetcode.el

An Emacs LeetCode client.
GNU General Public License v3.0
396 stars 70 forks source link

Failed to invoke the problems list on win10 of emacs 27.1 #72

Closed AbstProcDo closed 3 years ago

AbstProcDo commented 3 years ago

Run M-x leetcode but did not return problem list with the logging:


Requirement already satisfied: my_cookies in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (0.1.1)
Requirement already satisfied: browser-cookie3 in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (from my_cookies) (0.11.2)
Requirement already satisfied: pyaes in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (from browser-cookie3->my_cookies) (1.6.1)
Requirement already satisfied: pbkdf2 in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (from browser-cookie3->my_cookies) (1.3)
Requirement already satisfied: keyring in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (from browser-cookie3->my_cookies) (21.4.0)
Requirement already satisfied: lz4 in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (from browser-cookie3->my_cookies) (3.1.0)
Requirement already satisfied: pycryptodome in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (from browser-cookie3->my_cookies) (3.9.8)
Requirement already satisfied: pywin32-ctypes!=0.1.0,!=0.1.1; sys_platform == "win32" in c:\users\gaowei\scoop\apps\python\3.8.5\lib\site-packages (from keyring->browser-cookie3->my_cookies) (0.2.0)
kaiwk commented 3 years ago

Sorry for the late reply, make sure you can invoke my_cookies in eshell and get your leetcode session, otherwise you need to check your emacs environment variables. I'm not test on Windows though.

Screen Shot 2020-12-12 at 1 22 34 PM
chuxubank commented 3 years ago

That because executable-find doesn't take my_cookies as executable file. A simple workaround could be ln -s /mingw64/bin/my_cookies /mingw64/bin/my_cookies.exe.

AbstProcDo commented 3 years ago

ty,

dmitrym0 commented 2 years ago

Had to add (add-to-list 'exec-path "/opt/homebrew/bin") on my Mac.