Giter Club home page Giter Club logo

Comments (7)

Pilot1782 avatar Pilot1782 commented on June 28, 2024

The home directory of the setup file is in the .env file which can be viewed either by using the dircommand or by turning on show hidden files. In the meantime I will work on a fix for this.

from bad_copenheimer.

Pilot1782 avatar Pilot1782 commented on June 28, 2024

After looking into this issue, the problem is entirely my fault. Nowhere in the repo is a .env file and the setup doesn't create one. To fix this without recloning the repo, right click new text document, name it .env , do not have anything before the .

from bad_copenheimer.

Pilot1782 avatar Pilot1782 commented on June 28, 2024

This bug is caused when importing the timestamp function and tries to define a couple of local vars that have not been made and fails. This has been fixed in the new commit, you can download just the setup file or redownload.

from bad_copenheimer.

CaptainRexPL avatar CaptainRexPL commented on June 28, 2024

Error with .env file isn't there anymore, but at the end of downloading dependencies (pathlib for exact) everything crashes with this error:
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.

Package operations: 1 install, 0 updates, 0 removals

• Installing pathlib (1.0.1)

EnvCommandError

Command C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\Scripts\pip.exe install --no-deps file:///C:/Users/Kacper/AppData/Local/pypoetry/Cache/artifacts/72/1a/9b/1572941a27e8e9d368aaedf675fd453fc64445eda7734369c0611ed020/pathlib-1.0.1.tar.gz errored with the following return code 1, and output:
Processing c:\users\kacper\appdata\local\pypoetry\cache\artifacts\72\1a\9b\1572941a27e8e9d368aaedf675fd453fc64445eda7734369c0611ed020\pathlib-1.0.1.tar.gz
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[20 lines of output]
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "C:\Users\Kacper\AppData\Local\Temp\pip-req-build-fyqamli2\setup.py", line 6, in <module>
    setup(
  File "C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\lib\site-packages\setuptools\_distutils\core.py", line 109, in setup
    _setup_distribution = dist = klass(attrs)
  File "C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\lib\site-packages\setuptools\dist.py", line 460, in __init__
    for ep in metadata.entry_points(group='distutils.setup_keywords'):
  File "C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\lib\site-packages\setuptools\_vendor\importlib_metadata\__init__.py", line 999, in entry_points
    return SelectableGroups.load(eps).select(**params)
  File "C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\lib\site-packages\setuptools\_vendor\importlib_metadata\__init__.py", line 449, in load
    ordered = sorted(eps, key=by_group)
  File "C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\lib\site-packages\setuptools\_vendor\importlib_metadata\__init__.py", line 997, in <genexpr>
    dist.entry_points for dist in unique(distributions())
  File "C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\lib\site-packages\setuptools\_vendor\importlib_metadata\__init__.py", line 609, in entry_points
    return EntryPoints._from_text_for(self.read_text('entry_points.txt'), self)
  File "C:\Users\Kacper\AppData\Local\pypoetry\Cache\virtualenvs\badcopeheimer-aB1CqZSI-py3.9\lib\site-packages\setuptools\_vendor\importlib_metadata\__init__.py", line 917, in read_text
    return self._path.joinpath(filename).read_text(encoding='utf-8')
AttributeError: 'WindowsPath' object has no attribute 'read_text'
[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.

at ~\AppData\Local\Programs\Python\Python39\lib\site-packages\poetry\utils\env.py:1195 in run
1191│ output = subprocess.check_output(
1192│ cmd, stderr=subprocess.STDOUT, **kwargs
1193│ )
1194│ except CalledProcessError as e:
→ 1195│ raise EnvCommandError(e, input=input
)
1196│
1197│ return decode(output)
1198│
1199│ def execute(self, bin, *args, **kwargs):

Updating file paths...
Traceback (most recent call last):
File "C:\Users\Kacper\Downloads\bad_copenheimer-main\setup.py", line 120, in
fix_files()
File "C:\Users\Kacper\Downloads\bad_copenheimer-main\setup.py", line 80, in fix_files
replace_line(f"{inp}.env",1,r'PATH={}settings.json'.format(inp))
File "C:\Users\Kacper\Downloads\bad_copenheimer-main\setup.py", line 38, in replace_line
lines[line_num] = text
IndexError: list assignment index out of range

from bad_copenheimer.

CaptainRexPL avatar CaptainRexPL commented on June 28, 2024

When I try to use the newest files from the last commit I get error: Traceback (most recent call last):
File "C:\Users\Kacper\Downloads\bad_copenheimer-main (1)\bad_copenheimer-main\setup.py", line 3, in
from funcs import ptime, dprint
File "C:\Users\Kacper\Downloads\bad_copenheimer-main (1)\bad_copenheimer-main\funcs.py", line 10, in
with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
FileNotFoundError: [Errno 2] No such file or directory: (random directories)

The error is the same as it was at the start of this issue

from bad_copenheimer.

Pilot1782 avatar Pilot1782 commented on June 28, 2024

The fix was made on the dev-builds branch but has been merged into the main branch.

from bad_copenheimer.

W72702 avatar W72702 commented on June 28, 2024

The fix was made on the dev-builds branch but has been merged into the main branch.

Hey man im getting this same issue. Downloaded it today

from bad_copenheimer.

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.