matpow2 / cuwo

Open server and utilities for Cube World
GNU General Public License v3.0
170 stars 49 forks source link

Error when building cuwo on Debian: "No module named 'numpy'" #198

Closed SinusStudios closed 6 years ago

SinusStudios commented 6 years ago

Followed this guide, method 2 because 1 is not working for me: https://github.com/matpow2/cuwo/wiki/BuildSource

No errors up until building cuwo using "python3.6 setup-py build-ext --inplace", output: Traceback (most recent call last): File "setup.py", line 21, in <module> import numpy ModuleNotFoundError: No module named 'numpy' (Run as normal user inside /home//cuwo/cuwo-master/)

matpow2 commented 6 years ago

Why didn't method 2 work for you? You can simply install numpy for python3.6, but I'd like to fix method 2 if possible.

SinusStudios commented 6 years ago

(I think you accidentially mixed up Methods 1 and 2, i attempted Method 1 (automated, bootstrap.sh) but it failed and then i tried Method 2 (manual) which resulted in the error above.) Okay so here's what i get when running curl -L http://cuwo.org/bootstrap.php | bash in the third step of Method 1 (bootstrap.sh): % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 106 100 106 0 0 106 0 0:00:01 --:--:-- 0:00:01 1341 : No such file or directory bash: line 2: syntax error near unexpected token"Location: https://raw.githubusercontent.com/matpow2/cuwo/master/bootstrap.sh"' 'ash: line 2: header("Location: https://raw.githubusercontent.com/matpow2/cuwo/master/bootstrap.sh"); Installation of the packages was successful and i'm running the command as a normal user inside an empty directory /cuwo/. Prefixing sudo doesn't change the output.

Edit: I attached a screenshot because the output contains format changing characters, just for better orientation. screenshot_3

Edit 2: For method 2 i already installed numpy via sudo pip3 install numpy successfully but it won't change the outcome.

yakuu commented 6 years ago

Method 1.5 (clone + bootstrap manual)

  1. First, install the prerequisites for Python 3.6 and git.
    • Ubuntu/Debian: sudo apt-get install -y git build-essential libsqlite3-dev libssl-dev libbz2-dev libreadline-dev
  2. Create a new directory (e.g. ~/cuwo) and cd into it.
  3. Run sudo git clone https://github.com/matpow2/cuwo.git && cd cuwo
  4. Remove line 1-5 from bootstrap.sh and Run it ./bootstrap.sh
  5. Upload data files or login (6.) to download it.
  6. Run sh run_server.sh

this works for me 👍 ^.^

SinusStudios commented 6 years ago

my bootstrap.sh after removing lines 1-5: https://pastebin.com/3AHcA4d5 Running either sudo ./bootstrap.sh or ./bootstrap.sh results in: https://pastebin.com/CcXiyaWt Also i don't understand what you mean with Step 5 Thanks for your efforts on helping so far =)

matpow2 commented 6 years ago

Can you check method 1 again? https://cuwo.org/bootstrap.sh isn't working right now, so I updated the URL.