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

Not working on Win10 & WSL2 #7

Open
whos-gabi opened this issue Feb 14, 2021 · 6 comments
Open

Not working on Win10 & WSL2 #7

whos-gabi opened this issue Feb 14, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@whos-gabi
Copy link

Describing the bug

Something seems not to be working in Windows.

To Reproduce

Steps to reproduce the behavior:

  1. I followed all the steps of installation from the readme.md
  2. After running run.ps1 seems to run and there is no error.
  3. Then I tried it on Pbinfo. What should I do for the script to run properly? (it literally does nothing)

Enviroment it was tested on.

  • OS: Win10
  • Browser: Chrome
  • Browser Version: 88.0.4324.150 (Official Build) (64-bit)
@cristicretu
Copy link
Owner

Thank you for this.

I focused a bit more on the linux version, and even tho I tried to make it work on windows it somehow doesn't properly install the dependencies for it. I will try to fix it in the following days.

@cristicretu cristicretu added the bug Something isn't working label Feb 16, 2021
@whos-gabi
Copy link
Author

I tried to run the script on Ubuntu WSL2

It seems to have some installation problems too.
Though it's clear that if it will work I won't be able to test the script's full functionality because I have no GUI installed in WSL.

Installation progress

first, I installed pip3
sudo apt install python3-pip
then I git clone into the repo using this command:
sudo git clone https://github.com/cristicretu/CP-Scraper
I changed dir
cd CP-Scraper/setup/unix
then I ran these 2 commands following the setup guide from the readme
sudo chmod +x install.sh
sudo ./install.sh
then I exited the dir
cd ../..
and I tried to run the script
sudo python3 main.py

after that, it gave me the following error:

image

Maybe I was doing something wrong but if not just letting you know it doesn't work in Ubuntu WSL.

@whos-gabi whos-gabi changed the title Not working on Win10 Not working on Win10 & WSL2 Feb 16, 2021
@cristicretu
Copy link
Owner

CP-Scraper uses the computer's clipboard to get the copied requested problem url - so the WSL handles that with powershell, which, of course, won't work.

Also, you forgot changing the path.txt - which would give No such file or directory error, when run on a computer different than mine. Also execute the script using python3.8, instead of python3, which is more precise and works everytime.

The Windows version is pretty unstable so I'm going to delete it with the next commit - until I can find a fix.

Meanwhile, if you want and can (it is up to you), you could do an windows installer, that should install on the host computer python3 and all it's dependencies (python3-tk, pymsgbox, pyperclip, requests and bs4).

@whos-gabi
Copy link
Author

I would like to help, or somehow to contribute to your project, the problem is I don't know python. 🤷🏻‍♂️
I could only test some of your future versions of CP-Scraper on Win10, probably Linux if I could find a Linux device because it's not working on my VM. 👍🏻

Until that I will try to install it properly, changing the path.txt and using python 3.8 😁

@cristicretu
Copy link
Owner

The Linux version works, I use it everyday.

I will try to fix it, but right now I don't have much time for personal projects.

If you want some help with your VM, I can help you :)

@whos-gabi
Copy link
Author

I would need some help with that.
How can I contact you for a private conversation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants