Problem with youtokentome when i deploy my project to Heroku - python

I try to deploy my python project to heroku and have this problem:
Collecting youtokentome==1.0.6
remote: Downloading youtokentome-1.0.6.tar.gz (86 kB)
remote: ERROR: Command errored out with exit status 1:
remote: command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k3by6gof/youtokentome/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k3by6gof/youtokentome/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 /tmp/pip-pip-egg-info-hayjf3lo
remote: cwd: /tmp/pip-install-k3by6gof/youtokentome/
remote: Complete output (5 lines):
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/tmp/pip-install-k3by6gof/youtokentome/setup.py", line 5, in <module>
remote: from Cython.Build import cythonize
remote: ModuleNotFoundError: No module named 'Cython'
remote:
----------------------------------------
But i have: Cython==0.29.24 in my requirements.txt

Related

unable to install MYSQLDB

sudo pip install MySQL-python
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip (108 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4dq45q4u/MySQL-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4dq45q4u/MySQL-python/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 /tmp/pip-install-4dq45q4u/MySQL-python/pip-egg-info
cwd: /tmp/pip-install-4dq45q4u/MySQL-python/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-4dq45q4u/MySQL-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-install-4dq45q4u/MySQL-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
neosoft#neosoft:~$ ^C
Your problem is here:
No module named 'ConfigParser'
That module was renamed configparserin Python 3. So it appears you are trying to install the Python 2 version of mysql in a Python 3 environment.

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output, while pip install genetic algorithm

I am trying to install genetic algorithm in Anaconda by doing below with errors. Could you please advise the issue? Thanks
pip install genetic algorithm
then I got below error:
(tf_cpu) C:\Users\test>pip install genetic algorithm
Collecting algorithm
Downloading algorithm-1.2.0-py3-none-any.whl (10 kB)
Collecting genetic
Downloading genetic-0.1.dev3.tar.gz (5.5 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\yongn\miniconda3\envs\tf_cpu\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\yongn\\AppData\\Local\\Temp\\pip-install-qm3ds3_2\\genetic_0c5368225ac6428486c14ebef370f1c5\\setup.py'"'"'; __file__='"'"'C:\\Users\\yongn\\AppData\\Local\\Temp\\pip-install-qm3ds3_2\\genetic_0c5368225ac6428486c14ebef370f1c5\\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\yongn\AppData\Local\Temp\pip-pip-egg-info-yctesttu'
cwd: C:\Users\yongn\AppData\Local\Temp\pip-install-qm3ds3_2\genetic_0c5368225ac6428486c14ebef370f1c5\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\yongn\AppData\Local\Temp\pip-install-qm3ds3_2\genetic_0c5368225ac6428486c14ebef370f1c5\setup.py", line 39, in <module>
packages=find_packages("./"),
File "C:\Users\yongn\miniconda3\envs\tf_cpu\lib\site-packages\setuptools\__init__.py", line 64, in find
convert_path(where),
File "C:\Users\yongn\miniconda3\envs\tf_cpu\lib\distutils\util.py", line 124, in convert_path
raise ValueError("path '%s' cannot end with '/'" % pathname)
ValueError: path './' cannot end with '/'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
refer to this : https://pypi.org/project/geneticalgorithm/
pip install geneticalgorithm

Command errored out with exit status 1:

I have problem when i try to push my app on heroku,
so when i write git push heroku master this error is appear
remote: ERROR: Command errored out with exit status 1:
remote: command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-48na90v5/importlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-48na90v5/importlib/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 /tmp/pip-pip-egg-info-dccx97n0
remote: cwd: /tmp/pip-install-48na90v5/importlib/
remote: Complete output (11 lines):
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/app/.heroku/python/lib/python3.6/site-packages/setuptools/__init__.py", line 5, in <module>
remote: import distutils.core
remote: File "/app/.heroku/python/lib/python3.6/distutils/core.py", line 16, in <module>
remote: from distutils.dist import Distribution
remote: File "/app/.heroku/python/lib/python3.6/distutils/dist.py", line 19, in <module>
remote: from distutils.util import check_environ, strtobool, rfc822_escape
remote: File "/app/.heroku/python/lib/python3.6/distutils/util.py", line 9, in <module>
remote: import importlib.util
remote: ModuleNotFoundError: No module named 'importlib.util'
remote: ----------------------------------------
remote: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
Most probably it is the issue with libraries you are trying to install check for the versions as currently heroku uses latest version of python
or just change the python version specific to your project on heroku by using runtime.txt file in your root directory
I had also faced the exact same issue which I fixed by installing latest versions of the dependencies.
Try; definitely it will work.

Windows 10 Error Deploying to Heroku, Command errored out with exit status 1

Beginner here.
Trying to deploy my Python code to heroku when I encounter the error below
My machine runs on Windows 10.
I tried this solution but no progress.
Let me know what other info that you need!
ERROR: Command errored out with exit status 1:
remote: command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9bupgo_6/Rtree/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9bupgo_6/Rtree/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 /tmp/pip-install-9bupgo_6/Rtree/pip-egg-info
remote: cwd: /tmp/pip-install-9bupgo_6/Rtree/
remote: Complete output (15 lines):
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/tmp/pip-install-9bupgo_6/Rtree/setup.py", line 3, in <module>
remote: import rtree
remote: File "/tmp/pip-install-9bupgo_6/Rtree/rtree/__init__.py", line 1, in <module>
remote: from .index import Rtree
remote: File "/tmp/pip-install-9bupgo_6/Rtree/rtree/index.py", line 6, in <module>
remote: from . import core
remote: File "/tmp/pip-install-9bupgo_6/Rtree/rtree/core.py", line 145, in <module>
remote: rt.Error_GetLastErrorNum.restype = ctypes.c_int
remote: File "/app/.heroku/python/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
remote: func = self.__getitem__(name)
remote: File "/app/.heroku/python/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
remote: func = self._FuncPtr((name_or_ordinal, self))
remote: AttributeError: /app/.heroku/python/bin/python: undefined symbol: Error_GetLastErrorNum
remote: ----------------------------------------
remote: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command o

error installing flask_swagger_ui on ubuntu server

so im trying to do a pip3 install flask-swagger-ui but im getting the following error:
Defaulting to user installation because normal site-packages is not writeable
Collecting flask-swagger-ui
Using cached flask-swagger-ui-3.25.0.tar.gz (521 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/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 /tmp/pip-install-n64v6bxi/flask-swagger-ui/pip-egg-info
cwd: /tmp/pip-install-n64v6bxi/flask-swagger-ui/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'setuptools'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
please help

Categories

Resources