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

Fixing pip installation #16

Merged
merged 1 commit into from
Apr 4, 2016
Merged

Fixing pip installation #16

merged 1 commit into from
Apr 4, 2016

Conversation

fmalina
Copy link
Contributor

@fmalina fmalina commented Apr 1, 2016

Updating the manifest didn't solve the installation problem.
This solution is not DRY, but better be safe as I can't easily test this myself.

More information:
http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool

Error in question:

$.. pip3 install django-openinghours
Collecting django-openinghours
Using cached django-openinghours-0.1.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/4m/q0mv284n1_qgm7ctvkrmgn4c0000gp/T/pip-build-osj2dtv8/django-openinghours/setup.py", line 18, in
install_requires=open('requirements.txt').read().split(),
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

Updating the manifest didn't solve the installation problem.
This solution is not DRY, but better be safe as I can't easily test this myself.

More information:
http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool

Error in question:

$.. pip3 install django-openinghours
Collecting django-openinghours
  Using cached django-openinghours-0.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/4m/q0mv284n1_qgm7ctvkrmgn4c0000gp/T/pip-build-osj2dtv8/django-openinghours/setup.py", line 18, in <module>
        install_requires=open('requirements.txt').read().split(),
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.1%) to 53.635% when pulling 2efb0f2 on fmalina:patch-4 into 683f822 on arteria:master.

@jvamvas
Copy link
Contributor

jvamvas commented Apr 4, 2016

@fmalina I agree that in this case the DRY violation can be justified. Thank you!

@jvamvas jvamvas merged commit 3fd3347 into arteria:master Apr 4, 2016
@fmalina
Copy link
Contributor Author

fmalina commented May 3, 2016

Can you push this fix to PyPI please?

pip install is still failing.


@etc2 ~: pip3 install django-openinghours
Downloading/unpacking django-openinghours
  Downloading django-openinghours-0.1.1.tar.gz
  Running setup.py (path:/tmp/pip_build_f/django-openinghours/setup.py) egg_info for package django-openinghours
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_f/django-openinghours/setup.py", line 18, in <module>
        install_requires=open('requirements.txt').read().split(),
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_f/django-openinghours/setup.py", line 18, in <module>

    install_requires=open('requirements.txt').read().split(),

FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_f/django-openinghours
Storing debug log for failure in /tmp/tmpsbsyyj2z

Thank you.

@jvamvas
Copy link
Contributor

jvamvas commented May 3, 2016

@fmalina I have now released 0.1.2.

@kingsofteng
Copy link

I am still getting this issue. Could it possible to help me to resolve this issue?

@camflan
Copy link

camflan commented Aug 3, 2018

@kingsofteng I was successful just now,

Successfully installed django-compat-1.0.15 django-openinghours-0.1.5 django-threadlocals-0.8

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

Successfully merging this pull request may close these issues.

None yet

5 participants