Git Product home page Git Product logo

Comments (8)

guenp avatar guenp commented on May 18, 2024 1

@vxfield this shows up when trying to install the package from the tar.gz file directly:

$ pip install /mnt/c/Users/guenp/Downloads/azure-quantum-0.18.2106.148911.tar.gz
Processing /mnt/c/Users/guenp/Downloads/azure-quantum-0.18.2106.148911.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /home/guen/anaconda3/envs/azure-quantum/bin/python3.7 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-m142_vo7/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-m142_vo7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-am70m1w2
         cwd: /tmp/pip-req-build-m142_vo7/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-m142_vo7/setup.py", line 63, in <module>
        with open("./requirements.txt", "r") as fh:
    FileNotFoundError: [Errno 2] No such file or directory: './requirements.txt'
    ----------------------------------------
WARNING: Discarding file:///mnt/c/Users/guenp/Downloads/azure-quantum-0.18.2106.148911.tar.gz. 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.

from qdk-python.

AnudeepGunukula avatar AnudeepGunukula commented on May 18, 2024 1

Hi @guenp . i would like to work on this issue.
is this still open ?

from qdk-python.

guenp avatar guenp commented on May 18, 2024 1

@AnudeepGunukula Thanks so much, yes the issue is still open so please feel free to give it a stab.

from qdk-python.

guenp avatar guenp commented on May 18, 2024 1

@AnudeepGunukula, that's right, we already have the file so we don't need to add it; however, we do need to add a MANIFEST file to include the requirements.txt file as part of the packaged wheel and .tar.gz file. That file should go in the {root}/azure-quantum/ folder. You can find instructions on how to do that here: Python docs: Creating a Source Distribution

from qdk-python.

AnudeepGunukula avatar AnudeepGunukula commented on May 18, 2024 1

Hi @guenp . i had made a pr #140 which will close this issue.
kindly review it and let me know if any changes required.

from qdk-python.

vxfield avatar vxfield commented on May 18, 2024

@guenp, the setup.py reads the content of the requirements.txt file and pass it to the setuptools.setup call.

So I don't think we need to add requirements.txt to the package, do we?

from qdk-python.

AnudeepGunukula avatar AnudeepGunukula commented on May 18, 2024

Kindly let me know is this issue got resolved with pr #81
because still the error remains same when i tried to install like you
image

and when i manually added requirements.txt and archieved back and tried to install .
then it worked
image

from qdk-python.

AnudeepGunukula avatar AnudeepGunukula commented on May 18, 2024

Hi @guenp , can you please specify the path where to add the requirements.txt in the project.
because i was seeing, already azure-quantum folder contains requirements.txt file.
only the pypy package doesn't having it in root folder.

from qdk-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.