amundsen icon indicating copy to clipboard operation
amundsen copied to clipboard

Python setup.py egg_info did not run successfully.

Open FelipeArruda opened this issue 2 years ago • 19 comments

I'm trying to install Amundsen on docker running on Windows 10. I'm getting an error while run a docker-compose using atlas.

Expected Behavior

Install success

Current Behavior

Getting erro when execute: docker-compose -f docker-amundsen-atlas.yml up

Steps to Reproduce

  1. Clone the repo
  2. Execute: docker-compose -f docker-amundsen-atlas.yml up (get an error in this step)
  • Error: error: subprocess-exited-with-error

    × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] /bin/sh: 1: npm: not found ERROR:root:npm must be available /bin/sh: 1: npm: not found /app/setup.py:30: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead logging.warn('Installation of npm dependencies failed') WARNING:root:Installation of npm dependencies failed /app/setup.py:31: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead logging.warn(str(e)) WARNING:root:Command '['npm install']' returned non-zero exit status 127. error in amundsen-frontend setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. [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. 1 error occurred: * Status: The command '/bin/sh -c pip3 install -e .' returned a non-zero code: 1, Code: 1

Screenshots (if appropriate)

Screenshot_7

Context

Your Environment

  • Amunsen version used: 6.7.4
  • Data warehouse stores: none yet
  • Deployment (k8s or native): native
  • Link to your fork or repository:

FelipeArruda avatar Mar 23 '22 20:03 FelipeArruda

Thanks for opening your first issue here!

boring-cyborg[bot] avatar Mar 23 '22 20:03 boring-cyborg[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Apr 07 '22 00:04 stale[bot]

Same issue on new Windows install "python setup.py egg_info did not run successfully"

nicoleprause avatar Apr 12 '22 15:04 nicoleprause

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Apr 30 '22 07:04 stale[bot]

Hi @FelipeArruda. What image are you using for run python? I get the same issue usgin python:3.10.2-alpine, but not for python:3.10.2-slim.

marcusdotenv avatar May 07 '22 03:05 marcusdotenv

3.10.2

Hi @mcavalcante28 its 3.10 python version.

FelipeArruda avatar May 08 '22 23:05 FelipeArruda

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar May 25 '22 21:05 stale[bot]

using Python 3.10.4 and getting this problem as well. Is there a fix?

micfun123 avatar Jun 06 '22 13:06 micfun123

having the same issue ? any fix ?

HridoyHazard avatar Jun 19 '22 14:06 HridoyHazard

@feng-tao Can you help?

FelipeArruda avatar Jun 22 '22 02:06 FelipeArruda

@FelipeArruda use a python version Lowe that 3.10 . I got it to work on 3.9

micfun123 avatar Jun 22 '22 02:06 micfun123

thanks mine got worked on 3.7

HridoyHazard avatar Jun 22 '22 05:06 HridoyHazard

@micfun123 and @HridoyHazard, Did you try with Neo4j Backend or Atlas?

I'm trying to run Atlas and getting the same erro with python 3.6

FelipeArruda avatar Jun 22 '22 13:06 FelipeArruda

no I just installed normal python package

HridoyHazard avatar Jun 22 '22 13:06 HridoyHazard

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jul 10 '22 06:07 stale[bot]

Try updating the setuptools package using pip install --upgrade setuptools

Parvat-R avatar Jul 17 '22 07:07 Parvat-R

I'm also having this issue any help

Jiboku-Oluwatunmise avatar Jul 24 '22 08:07 Jiboku-Oluwatunmise

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Aug 11 '22 16:08 stale[bot]

I'm trying to install Amundsen on docker running on Windows 10. I'm getting an error while run a docker-compose using atlas.

Expected Behavior

Install success

Current Behavior

Getting erro when execute: docker-compose -f docker-amundsen-atlas.yml up

Steps to Reproduce

  1. Clone the repo
  2. Execute: docker-compose -f docker-amundsen-atlas.yml up (get an error in this step)
  • Error: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] /bin/sh: 1: npm: not found ERROR:root:npm must be available /bin/sh: 1: npm: not found /app/setup.py:30: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead logging.warn('Installation of npm dependencies failed') WARNING:root:Installation of npm dependencies failed /app/setup.py:31: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead logging.warn(str(e)) WARNING:root:Command '['npm install']' returned non-zero exit status 127. error in amundsen-frontend setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. [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. 1 error occurred: * Status: The command '/bin/sh -c pip3 install -e .' returned a non-zero code: 1, Code: 1

Screenshots (if appropriate)

Screenshot_7

Context

Your Environment

  • Amunsen version used: 6.7.4
  • Data warehouse stores: none yet
  • Deployment (k8s or native): native
  • Link to your fork or repository:

try myway ,it work for me. https://blog.csdn.net/drunk_soul/article/details/126336272

drunksoul2021 avatar Aug 14 '22 13:08 drunksoul2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Sep 24 '22 05:09 stale[bot]

upon deploying django on vercel server i was unable to use sqlite so i decided to use mysql but i got this error

Preparing metadata (setup.py): finished with status 'error'

15:12:04.162 | error: subprocess-exited-with-error 15:12:04.162 |   15:12:04.162 | × python setup.py egg_info did not run successfully. 15:12:04.163 | │ exit code: 1 15:12:04.163 | ╰─> [16 lines of output] 15:12:04.163 | /bin/sh: mysql_config: command not found 15:12:04.163 | /bin/sh: mariadb_config: command not found 15:12:04.163 | /bin/sh: mysql_config: command not found 15:12:04.164 | Traceback (most recent call last): 15:12:04.164 | File "", line 2, in 15:12:04.164 | File "", line 34, in 15:12:04.164 | File "/tmp/pip-install-8irz5g1t/mysqlclient_c5f7aa23355741f3ba46173c81f54328/setup.py", line 15, in 15:12:04.165 | metadata, options = get_config() 15:12:04.165 | File "/tmp/pip-install-8irz5g1t/mysqlclient_c5f7aa23355741f3ba46173c81f54328/setup_posix.py", line 70, in get_config 15:12:04.165 | libs = mysql_config("libs") 15:12:04.165 | File "/tmp/pip-install-8irz5g1t/mysqlclient_c5f7aa23355741f3ba46173c81f54328/setup_posix.py", line 31, in mysql_config 15:12:04.166 | raise OSError("{} not found".format(_mysql_config_path)) 15:12:04.166 | OSError: mysql_config not found 15:12:04.166 | mysql_config --version 15:12:04.166 | mariadb_config --version 15:12:04.166 | mysql_config --libs 15:12:04.166 | [end of output] 15:12:04.166 |   15:12:04.167 | note: This error originates from a subprocess, and is likely not a problem with pip. 15:12:04.167 | error: metadata-generation-failed 15:12:04.167 |   15:12:04.167 | × Encountered error while generating package metadata. 15:12:04.167 | ╰─> See above for output. 15:12:04.168 |   15:12:04.168 | note: This is an issue with the package mentioned above, not pip. 15:12:04.168 | hint: See above for details. 15:12:04.437 | Traceback (most recent call last): 15:12:04.438 | File "/vercel/path0/manage.py", line 11, in main 15:12:04.438 | from django.core.management import execute_from_command_line 15:12:04.438 | ModuleNotFoundError: No module named 'django' 15:12:04.438 |   15:12:04.439 | The above exception was the direct cause of the following exception: 15:12:04.439 |   15:12:04.439 | Traceback (most recent call last): 15:12:04.439 | File "/vercel/path0/manage.py", line 22, in 15:12:04.439 | main() 15:12:04.439 | File "/vercel/path0/manage.py", line 13, in main 15:12:04.439 | raise ImportError( 15:12:04.440 | ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? 15:12:04.453 | Traceback (most recent call last): 15:12:04.453 | File "/vercel/path0/manage.py", line 11, in main 15:12:04.454 | from django.core.management import execute_from_command_line 15:12:04.454 | ModuleNotFoundError: No module named 'django' 15:12:04.454 |   15:12:04.454 | The above exception was the direct cause of the following exception: 15:12:04.454 |   15:12:04.454 | Traceback (most recent call last): 15:12:04.455 | main() 15:12:04.455 | File "/vercel/path0/manage.py", line 13, in main 15:12:04.455 | raise ImportError( 15:12:04.455 | ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? 15:12:04.470 | Traceback (most recent call last): 15:12:04.470 | File "/vercel/path0/manage.py", line 11, in main 15:12:04.470 | from django.core.management import execute_from_command_line 15:12:04.471 | ModuleNotFoundError: No module named 'django' 15:12:04.471 |   15:12:04.471 | The above exception was the direct cause of the following exception: 15:12:04.471 |   15:12:04.471 | Traceback (most recent call last): 15:12:04.472 | File "/vercel/path0/manage.py", line 22, in 15:12:04.472 | main() 15:12:04.472 | File "/vercel/path0/manage.py", line 13, in main 15:12:04.472 | raise ImportError( 15:12:04.472 | ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? 15:12:04.488 | Error: Command "./build_files.sh" exited with 1

PetrJoe avatar Oct 07 '22 14:10 PetrJoe

I also met the same problem on my Centos7 linux server, is there any solution available now? Thanks.

fireragnarous avatar Oct 14 '22 14:10 fireragnarous

I have tried to solve this problem I mentioned above on linux using the following changed dockfile, I hope it can be helpful to you. I tried to install amundsen in China so part of the code is added to use a mirror source.

Changed Dockerfile.fronted.local

ARG METADATASERVICE_BASE ARG SEARCHSERVICE_BASE

FROM node:12-slim as node-stage WORKDIR /app/amundsen_application/static

COPY ./frontend/amundsen_application/static/package.json /app/amundsen_application/static/package.json COPY ./frontend/amundsen_application/static/package-lock.json /app/amundsen_application/static/package-lock.json RUN npm config set registry https://registry.npm.taobao.org #RUN npm install -g cnpm --registry http://mirrors.cloud.tencent.com/npm/ RUN npm install -g cnpm --registry https://registry.npm.taobao.org RUN npm install

COPY ./frontend/amundsen_application/static/ /app/amundsen_application/static/ RUN cnpm rebuild node-sass RUN cnpm run dev-build

COPY ./frontend /app

FROM python:3.7-slim WORKDIR /app

COPY ./frontend /app COPY requirements-dev.txt /app/requirements-dev.txt COPY requirements-common.txt /app/requirements-common.txt RUN pip3 install -r requirements-dev.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com RUN pip3 install -r requirements-common.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com RUN pip3 install --upgrade setuptools COPY --from=node-stage /app /app

RUN pip install --upgrade pip #RUN pip3 install -e .

COPY requirements-dev.txt /app/requirements-dev.txt COPY requirements-common.txt /app/requirements-common.txt

RUN python3 setup.py install

ENTRYPOINT [ "python3" ] CMD [ "amundsen_application/wsgi.py" ]

fireragnarous avatar Oct 15 '22 09:10 fireragnarous

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Oct 30 '22 14:10 stale[bot]

This issue has been automatically closed for inactivity. If you still wish to make these changes, please open a new pull request or reopen this one.

stale[bot] avatar Nov 22 '22 18:11 stale[bot]

lijm1206 avatar Mar 16 '23 06:03 lijm1206

Same issue with Python3.8

Downloading faiss-gpu-1.6.4.tar.gz (3.4 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [7 lines of output] running egg_info creating C:\Users\szcze\AppData\Local\Temp\pip-pip-egg-info-ujcl0pjz\faiss_cpu.egg-info writing C:\Users\szcze\AppData\Local\Temp\pip-pip-egg-info-ujcl0pjz\faiss_cpu.egg-info\PKG-INFO writing dependency_links to C:\Users\szcze\AppData\Local\Temp\pip-pip-egg-info-ujcl0pjz\faiss_cpu.egg-info\dependency_links.txt writing top-level names to C:\Users\szcze\AppData\Local\Temp\pip-pip-egg-info-ujcl0pjz\faiss_cpu.egg-info\top_level.txt writing manifest file 'C:\Users\szcze\AppData\Local\Temp\pip-pip-egg-info-ujcl0pjz\faiss_cpu.egg-info\SOURCES.txt' error: package directory 'C:\Users\szcze\AppData\Local\Temp\pip-install-13u5zqbl\faiss-gpu_e01c6d75b86e4efabb69c05a927aabcc\faiss\faiss\python' does not exist [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. WARNING: Ignoring invalid distribution -rotobuf (c:\server\htdocs\ml2\env\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (c:\server\htdocs\ml2\env\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (c:\server\htdocs\ml2\env\lib\site-packages)

[notice] A new release of pip is available: 23.0.1 -> 23.1.2

dazzafact avatar May 22 '23 06:05 dazzafact

on the same deployment problem

kallonbundu avatar Feb 09 '24 12:02 kallonbundu