Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install from PyPi is failing #32

Open
satyatejachikatla opened this issue Dec 31, 2021 · 0 comments
Open

Install from PyPi is failing #32

satyatejachikatla opened this issue Dec 31, 2021 · 0 comments

Comments

@satyatejachikatla
Copy link

Following is the error log during install from pip

root@158b838dff06:/app# pip3 install pypreprocessor==0.7.7
Collecting pypreprocessor==0.7.7
  Downloading pypreprocessor-0.7.7.tar.gz (10 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ale4jtbc/pypreprocessor/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ale4jtbc/pypreprocessor/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-ale4jtbc/pypreprocessor/pip-egg-info
         cwd: /tmp/pip-install-ale4jtbc/pypreprocessor/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-ale4jtbc/pypreprocessor/setup.py", line 16, in <module>
        from tests import RunTests
      File "/tmp/pip-install-ale4jtbc/pypreprocessor/tests/__init__.py", line 11, in <module>
        from tests import maintest
    ImportError: cannot import name 'maintest' from partially initialized module 'tests' (most likely due to a circular import) (/tmp/pip-install-ale4jtbc/pypreprocessor/tests/__init__.py)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
root@158b838dff06:/app# python3 --version
Python 3.8.10

Manual install is passing though

root@158b838dff06:/app# wget https://github.com/interpreters/pypreprocessor/archive/refs/tags/0.7.7.tar.gz
--2021-12-31 03:17:52--  https://github.com/interpreters/pypreprocessor/archive/refs/tags/0.7.7.tar.gz
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/interpreters/pypreprocessor/tar.gz/refs/tags/0.7.7 [following]
--2021-12-31 03:17:53--  https://codeload.github.com/interpreters/pypreprocessor/tar.gz/refs/tags/0.7.7
Resolving codeload.github.com (codeload.github.com)... 13.233.43.20
Connecting to codeload.github.com (codeload.github.com)|13.233.43.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: '0.7.7.tar.gz'

0.7.7.tar.gz                                                             [ <=>                                                                                                                                                                 ]  10.00K  --.-KB/s    in 0.001s  

2021-12-31 03:17:53 (8.81 MB/s) - '0.7.7.tar.gz' saved [10236]

root@158b838dff06:/app# tar -xvf 0.7.7.tar.gz 
pypreprocessor-0.7.7/
pypreprocessor-0.7.7/.DS_Store
pypreprocessor-0.7.7/.gitignore
pypreprocessor-0.7.7/Examples/
pypreprocessor-0.7.7/Examples/debug.py
pypreprocessor-0.7.7/Examples/debug2production.py
pypreprocessor-0.7.7/Examples/py2and3.py
pypreprocessor-0.7.7/INSTALL.md
pypreprocessor-0.7.7/LICENSE
pypreprocessor-0.7.7/MANIFEST.in
pypreprocessor-0.7.7/README.md
pypreprocessor-0.7.7/pypreprocessor/
pypreprocessor-0.7.7/pypreprocessor/__init__.py
pypreprocessor-0.7.7/setup.py
pypreprocessor-0.7.7/tests/
pypreprocessor-0.7.7/tests/.isolated/
pypreprocessor-0.7.7/tests/.isolated/directivetest.py
pypreprocessor-0.7.7/tests/__init__.py
pypreprocessor-0.7.7/tests/deprecationtest.py
pypreprocessor-0.7.7/tests/maintest.py
pypreprocessor-0.7.7/tests/parsetarget.py
root@158b838dff06:/app# cd pypreprocessor-0.7.7/
root@158b838dff06:/app/pypreprocessor-0.7.7# python3 setup.py install
Pypandoc not installed, skipping README.rst creation
running install
running bdist_egg
running egg_info
creating pypreprocessor.egg-info
writing pypreprocessor.egg-info/PKG-INFO
writing dependency_links to pypreprocessor.egg-info/dependency_links.txt
writing top-level names to pypreprocessor.egg-info/top_level.txt
writing manifest file 'pypreprocessor.egg-info/SOURCES.txt'
file pypreprocessor.py (for module pypreprocessor) not found
reading manifest file 'pypreprocessor.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pypreprocessor.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
file pypreprocessor.py (for module pypreprocessor) not found
creating build
creating build/lib
creating build/lib/pypreprocessor
copying pypreprocessor/__init__.py -> build/lib/pypreprocessor
file pypreprocessor.py (for module pypreprocessor) not found
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pypreprocessor
copying build/lib/pypreprocessor/__init__.py -> build/bdist.linux-x86_64/egg/pypreprocessor
byte-compiling build/bdist.linux-x86_64/egg/pypreprocessor/__init__.py to __init__.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying pypreprocessor.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pypreprocessor.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pypreprocessor.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pypreprocessor.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/pypreprocessor-0.7.7-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing pypreprocessor-0.7.7-py3.8.egg
Copying pypreprocessor-0.7.7-py3.8.egg to /usr/local/lib/python3.8/dist-packages
Adding pypreprocessor 0.7.7 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/pypreprocessor-0.7.7-py3.8.egg
Processing dependencies for pypreprocessor==0.7.7
Finished processing dependencies for pypreprocessor==0.7.7
root@158b838dff06:/app/pypreprocessor-0.7.7# pip3 list
Package        Version
-------------- -------
pip            20.0.2 
pypreprocessor 0.7.7  
setuptools     45.2.0 
wheel          0.34.2 

Can anyone fix this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant