oraxen / polymath

A python server to host oraxen resource packs
23 stars 22 forks source link

Issue with the "./run" #8

Open T3Nat opened 1 year ago

T3Nat commented 1 year ago

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 commented 11 months ago

same

Gaegeumchi commented 10 months ago

me too

PaperXiang commented 10 months ago

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

oOHiyoriOo commented 10 months ago

@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 commented 10 months ago

@oOHiyoriOo It works successfully thanks!

T3Nat commented 10 months ago

@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 commented 10 months ago

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.