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

Installation fails under pipenv #16

Open
FedericoMassaioli opened this issue Feb 10, 2021 · 2 comments
Open

Installation fails under pipenv #16

FedericoMassaioli opened this issue Feb 10, 2021 · 2 comments

Comments

@FedericoMassaioli
Copy link

FedericoMassaioli commented Feb 10, 2021

Installation fais with pipenv over Python 3.8 and pip 20.3.1:

Installing utemplate...
Error:  An error occurred while installing utemplate!
Error text: Collecting utemplate
  Using cached utemplate-1.4.tar.gz (4.1 kB)

    ERROR: Command errored out with exit status 1:
     command: /Users/federico/.local/share/virtualenvs/notification-consumer-dispatcher-wU5PfN33/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/r3/2_zddds10zzdvx9sy_3p2stw0000gn/T/pip-install-2t38l5ez/utemplate_f50c993c62e84c119c9ab07e6441f709/setup.py'"'"'; __file__='"'"'/private/var/folders/r3/2_zddds10zzdvx9sy_3p2stw0000gn/T/pip-install-2t38l5ez/utemplate_f50c993c62e84c119c9ab07e6441f709/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 /private/var/folders/r3/2_zddds10zzdvx9sy_3p2stw0000gn/T/pip-pip-egg-info-dokffrvc
         cwd: /private/var/folders/r3/2_zddds10zzdvx9sy_3p2stw0000gn/T/pip-install-2t38l5ez/utemplate_f50c993c62e84c119c9ab07e6441f709/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tokenize.py", line 392, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/r3/2_zddds10zzdvx9sy_3p2stw0000gn/T/pip-install-2t38l5ez/utemplate_f50c993c62e84c119c9ab07e6441f709/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This is likely caused by a bug in utemplate. Report this to its maintainers.
✘ Installation Failed
@FedericoMassaioli FedericoMassaioli changed the title The setup.py file is missing from the 1.4 archive file Installation fails under pipenv Feb 10, 2021
@pfalcon
Copy link
Owner

pfalcon commented Feb 10, 2021

Thanks for the report. utemplate is primarily intended to be used with https://github.com/pfalcon/pycopy , and its packages don't require setup.py (and so it's not included, to minimize package size).

utemplate is also fully compatible with CPython, but the way I use it is to clone repository and copy manually as needed.

It would be nice to make PyPI packages installable on both Pycopy and CPython, but so far, I can't get to that, working on many other issues I have in queue...

@FedericoMassaioli
Copy link
Author

I understand.

Found a workaround installing with:

pipenv install -e git+https://github.com/pfalcon/utemplate.git#egg=utemplate

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

2 participants