Skip to content

can not build env  #19

@huangshaoxin

Description

@huangshaoxin

when I installed you env ,the pycharm return the bug:
Pip subprocess error:
ERROR: Command errored out with exit status 1:
command: 'C:\Anaconda3\envs\nilm-thresholding\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\shaoxin\PycharmProjects\nilm-thresholding-master\setup.py'"'"'; file='"'"'C:\Users\shaoxin\PycharmProjects\nilm-thresholding-master\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\shaoxin\AppData\Local\Temp\pip-pip-egg-info-3i7zgyhr'
cwd: C:\Users\shaoxin\PycharmProjects\nilm-thresholding-master
Complete output (37 lines):
C:\Anaconda3\envs\nilm-thresholding\lib\site-packages\setuptools_init_.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\shaoxin\PycharmProjects\nilm-thresholding-master\setup.py", line 38, in <module>
    "typer==0.3.2",
  File "C:\Anaconda3\envs\nilm-thresholding\lib\site-packages\setuptools\__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
  File "C:\Anaconda3\envs\nilm-thresholding\lib\site-packages\setuptools\_distutils\core.py", line 147, in setup
    _setup_distribution = dist = klass(attrs)
  File "C:\Anaconda3\envs\nilm-thresholding\lib\site-packages\setuptools\dist.py", line 303, in __init__
    _Distribution.__init__(self, dist_attrs)
  File "C:\Anaconda3\envs\nilm-thresholding\lib\site-packages\setuptools\_distutils\dist.py", line 283, in __init__
    self.finalize_options()
  File "C:\Anaconda3\envs\nilm-thresholding\lib\site-packages\setuptools\dist.py", line 654, in finalize_options
    ep(self)
  File "C:\Anaconda3\envs\nilm-thresholding\lib\site-packages\setuptools\dist.py", line 674, in _finalize_setup_keywords
    ep.load()(self, ep.name, value)
  File "c:\users\shaoxin\pycharmprojects\nilm-thresholding-master\.eggs\setuptools_scm-7.1.0-py3.7.egg\setuptools_scm\integration.py", line 91, in version_keyword
    _assign_version(dist, config)
  File "c:\users\shaoxin\pycharmprojects\nilm-thresholding-master\.eggs\setuptools_scm-7.1.0-py3.7.egg\setuptools_scm\integration.py", line 63, in _assign_version
    _version_missing(config)
  File "c:\users\shaoxin\pycharmprojects\nilm-thresholding-master\.eggs\setuptools_scm-7.1.0-py3.7.egg\setuptools_scm\__init__.py", line 109, in _version_missing
    f"setuptools-scm was unable to detect version for {config.absolute_root}.\n\n"
LookupError: setuptools-scm was unable to detect version for C:\Users\shaoxin\PycharmProjects\nilm-thresholding-master.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
----------------------------------------

WARNING: Discarding file:///C:/Users/shaoxin/PycharmProjects/nilm-thresholding-master. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions