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

Issue with the "./run" #8

Open
T3Nat opened this issue Nov 9, 2023 · 7 comments
Open

Issue with the "./run" #8

T3Nat opened this issue Nov 9, 2023 · 7 comments

Comments

@T3Nat
Copy link

T3Nat commented Nov 9, 2023

Hi guys,

I have a problem when i launch the "run" file, here the issue :

Traceback (most recent call last):
  File "/home/rootmc/polymath/./run", line 2, in <module>
    from polymath import core
  File "polymath/core.py", line 1, in init polymath.core
    from config import TomlConfig
ImportError: cannot import name TomlConfig

I don't know how to solve this :/, i have been following the tutorial but i'm blocked right now :/

@PrevikYT
Copy link

same

@Gaegeumchi
Copy link

me too

@PaperXiang
Copy link

well i have this problem,too.How to fix it

@oOHiyoriOo
Copy link
Contributor

oOHiyoriOo commented Jan 24, 2024

@T3Nat @PrevikYT @Gaegeumchi @PaperXiang
Have you built it before running?
if you're not on Linux but have python installed, just take the command out of build.sh and run it.
on Linux, just do (inside the root folder of this repo):

  1. chmod +x build.sh
  2. ./build.sh or bash build.sh
  3. python run

Also, Requirements might be missing, so to install them just pip install -r requirements.txt

@Gaegeumchi
Copy link

@oOHiyoriOo
It works successfully thanks!

@T3Nat
Copy link
Author

T3Nat commented Jan 26, 2024

@T3Nat @PrevikYT @Gaegeumchi @PaperXiang Have you built it before running? if you're not on Linux but have python installed, just take the command out of build.sh and run it. on Linux, just do (inside the root folder of this repo):

  1. chmod +x build.sh
  2. ./build.sh or bash build.sh
  3. python run

Also, Requirements might be missing, so to install them just pip install -r requirements.txt

I tried it, i got the same error message.

I tried to change the run script with python3 but nothing change :

image

I also checked if tomlconfig was in the pip3 list and it was here :'(

image

Maybe there is a correct version ?

I chmod build.sh and executed it right before :/

Do you have any idea ?

( Sorry for my english, i'm french )

@oOHiyoriOo
Copy link
Contributor

Are you sure you're using the right python version? Use pip3 and python3 to be sure, or use something like venv / anaconda to prevent such things happening.

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

5 participants