georkara / Chargym-Charging-Station

Chargym simulates the operation of an electric vehicle charging station (EVCS) considering random EV arrivals and departures within a day. This is a generalised environment for charging/discharging EVs under various disturbances (weather conditions, pricing models, stochastic arrival-departure EV times and stochastic Battery State of Charge (BOC) at arrival). This is an open source OpenAI Gym environment for the implementation of Reinforcement Learning (RL), Rule-based approaches (RB) and Intelligent Control (IC).
94 stars 22 forks source link

Issue with installation #4

Open melek2 opened 1 year ago

melek2 commented 1 year ago

Dear authors, thank you for your tremendous efforts in this project, I really am looking forward to using it in my research. I have been struggling to install this environment on my computer. I am currently running Python 3.7.16 and was successful in installing all the required libraries in [requirements.txt]. However, when I try to install to run the pip install -e . command, I get the following error:

Obtaining file:///Users/melek/Chargym-Charging-Station Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [14 lines of output] error: Multiple top-level packages discovered in a flat-layout: ['Solvers', 'Chargym_Charging_Station'].

  To avoid accidental inclusion of unwanted files or directories,
  setuptools will not proceed with this build.

  If you are trying to create a single distribution with multiple packages
  on purpose, you should not rely on automatic discovery.
  Instead, consider the following options:

  1. set up custom discovery (`find` directive with `include` or `exclude`)
  2. use a `src-layout`
  3. explicitly set `py_modules` or `packages` with a list of names

  To find more information, look for "package discovery" on setuptools docs.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Thank you in advance for your help!

georkara commented 1 year ago

Dear melek2, I want to help you but to be honest I have no idea what is the problem in this case. I could guess that may you try to run "pip install -e ." under the wrong directory. Please use "cd Chargym-Charging-Station-main" before that. If you find out what was the problem please report it here so if anyone in the future has a similar problem to have a perception of it.

sufiah59 commented 1 month ago

Dear authors, thank you for your tremendous efforts in this project, I really am looking forward to using it in my research. I have been struggling to install this environment on my computer. I am currently running Python 3.7.16 and was successful in installing all the required libraries in [requirements.txt]. However, when I try to install to run the pip install -e . command, I get the following error:

Obtaining file:///Users/melek/Chargym-Charging-Station Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [14 lines of output] error: Multiple top-level packages discovered in a flat-layout: ['Solvers', 'Chargym_Charging_Station'].

  To avoid accidental inclusion of unwanted files or directories,
  setuptools will not proceed with this build.

  If you are trying to create a single distribution with multiple packages
  on purpose, you should not rely on automatic discovery.
  Instead, consider the following options:

  1. set up custom discovery (`find` directive with `include` or `exclude`)
  2. use a `src-layout`
  3. explicitly set `py_modules` or `packages` with a list of names

  To find more information, look for "package discovery" on setuptools docs.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Thank you in advance for your help!

Hi Melek2, have you solved the problem? I am having the same error too.