polymath icon indicating copy to clipboard operation
polymath copied to clipboard

Issue with the "./run"

Open T3Nat opened this issue 2 years ago • 7 comments

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 :/

T3Nat avatar Nov 09 '23 22:11 T3Nat

same

PrevikYT avatar Dec 26 '23 10:12 PrevikYT

me too

Gaegeumchi avatar Jan 13 '24 05:01 Gaegeumchi

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

PaperXiang avatar Jan 24 '24 13:01 PaperXiang

@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

oOHiyoriOo avatar Jan 24 '24 14:01 oOHiyoriOo

@oOHiyoriOo It works successfully thanks!

Gaegeumchi avatar Jan 24 '24 14:01 Gaegeumchi

@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 )

T3Nat avatar Jan 26 '24 16:01 T3Nat

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.

oOHiyoriOo avatar Jan 29 '24 17:01 oOHiyoriOo