Giter VIP home page Giter VIP logo

Comments (6)

wizguin avatar wizguin commented on August 29, 2024 1

Check out https://github.com/solero

from slippers.

wizguin avatar wizguin commented on August 29, 2024

Install this for python 3: pip install --upgrade mysql-connector-python

from slippers.

DreamDevourer avatar DreamDevourer commented on August 29, 2024

Oh I was able to start the World.py after stopping all 3 XAMPP's services and running "sudo python3 World.py 1", but when the script is running, it can't read mysql database due to not permit root, but the script needs root to run... And another problem is that when the script is running, Apache Server Cannot start, because the script is already using 127.0.0.1 with port 80, The opposite also happens, if the apache server is running and the World.py script is opened, it returns:

[dreamdevourer@unixKernel htdocs]$ sudo python3 World.py 1
[World] Starting world 1
[Database] Could not connect to MySQL database
(mysql.connector.errors.ProgrammingError) 1698 (28000): Access denied for user 'root'@'localhost'
(Background on this error at: http://sqlalche.me/e/f405)
[PluginManager] 9 plugins loaded
Traceback (most recent call last):
  File "World.py", line 32, in <module>
    main()
  File "World.py", line 28, in main
    World(sys.argv[1], config)
  File "World.py", line 22, in __init__
    super(World, self).__init__(config, world_id, self.users, self.db, self.handler)
  File "/opt/lampp/htdocs/Server.py", line 16, in __init__
    self.server = self.loop.run_until_complete(self.coro)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
    raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('127.0.0.1', 80): address already in use

The screenshot I put here shows what is happening.

from slippers.

wizguin avatar wizguin commented on August 29, 2024

First make sure you have a password setup/are using the correct password for your database. Python shouldn't be using port 80 either, change it to something else.

from slippers.

DreamDevourer avatar DreamDevourer commented on August 29, 2024

It seems that I missed the step of config.json, a very important part, putting the door and the exact password were the errors. Everything worked now, Thanks! Did you know where to find newer versions of CP on a CDN?

from slippers.

DreamDevourer avatar DreamDevourer commented on August 29, 2024

Thanks for the help.

from slippers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.