Game2Text on Linux (Help!)

I’m trying to get Game2Text installed on Linux, I already installed tesseract-ocr, and the Game2Text github says it can be installed on linux, you just need to build from source. I’ve never built anything from source before and need some help getting this running. Thanks!

1 Like

The github repo basically has instructions, but marked as “Development”: GitHub - mathewthe2/Game2Text: Complete toolbox for gamifying language learning

Quickly gave it a try, and it seems to be working fine

3 Likes

I’m getting an error for the

virtualenv venv --python=python3.7.4

part.

Error:

RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.7.4'
1 Like

You need python 3.7.4 installed for this basically

5 Likes

Did that, and now I got this…

~/Game2Text-0-4.9$ virtualenv venv --python=python3.7.4
created virtual environment CPython3.7.4.final.0-64 in 393ms
  creator CPython3Posix(dest=/home/staffmemberj/Game2Text-0-4.9/venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/staffmemberj/.local/share/virtualenv)
    added seed packages: pip==22.0.2, setuptools==59.6.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
staffmemberj@mintOS:~/Game2Text-0-4.9$ source venv/bin/activate
(venv) staffmemberj@mintOS:~/Game2Text-0-4.9$ pip install -r requirements.txt
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/altgraph/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/altgraph/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/altgraph/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/altgraph/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/altgraph/
Could not fetch URL https://pypi.org/simple/altgraph/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/altgraph/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement altgraph==0.17 (from versions: none)
ERROR: No matching distribution found for altgraph==0.17

1 Like

Looks like you need to install the python SSL module so it can download those https URLs.

3 Likes

I’ve tried so many thing x____X

it’s not worth it.

What Linux distro are you on?

Do you have openssl installed?

I’m on Mint. Which I found online some issues with debian based distros. So I guess I’m SOL.

It appears I do.

I know it’s a good habit to get into, but do you actually need to run it in a venv? It seems like that’s the primary source of the problem here, and I only ever use a virtual environment when I’m coding.

I ran it in a non venv and still had issues. I think it is a more a compatibility problem than it is a preference thing.

If you manage to find the correct setup could you please post here? I tried to set it up on a macOS (Unix) system with no avail and gave up :expressionless:

Edit: I was getting the same errors as you

What is the output if you run the following command?

python --version

I’m curious whether it’s running the highest version installed or a lower version of Python when you use the python command.

I am on 3.10.X

I’m assuming that’s the latest.

Is that the version that runs when you run python?

I ask because, for example, on my system when I run python it doesn’t run the latest version:

chris@mercurius:~> python --version
Python 2.7.18

My installed versions are versions 2.7.18, 3.6.15, and 3.10.11.

(Eventually I’ll get around to looking up how to change the default version that runs when I type python.)

It doesn’t run if I type python. It only runs if I put python3

Edit. I’m out of town. So I’ll let you know in a few days.

How about using pyenv, so that a supported python version can be used?

Also you put alias python=python3 in ~/.bashrc.

3 Likes

Finally, I no longer have to type python3.10 all the time. I’ve been too lazy to look up the solution, but knew it would be simple.

On my system, ~/.bashrc loads ~/.alias, so I added alias python=python3.10 (since I also have 3.6 installed) to the latter file. Likewise for pip, just in case.

I haven’t even been able to get the Game2Text installation past the requirements installation step, so I don’t yet know if I can produce the main error of this thread.