question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python requirements cause a build error

See original GitHub issue

Environment:

  • CTFd Version/Commit: 324f885
  • Operating System: Ubuntu 16.04 x64
  • Web Browser and Version: N/A

What happened? When Build CTFd via docker-compose, pip installation goes wrong. pyICU does not installed properly (as error log at the end of this issue)

What did you expect to happen? Everything works perfectly

How to reproduce your issue Pull the repo from the github and do docker-compose up

A solution to fix this I’ve got a way to fix this. After my research, pyICU does have this kind of issue in 2018 (ovalhub/pyICU#70). pyICU is required to install in dataset library.(dataset -> normality -> pyICU) https://github.com/CTFd/CTFd/blob/324f8859a1ac3e3e7cdd7cd10df79b6d1da365b0/requirements.txt#L16 After adding pyicu==1.9.3 everything works fine

Any associated stack traces or error logs

Collecting pyicu>=1.9.3 (from normality>=0.5.1->dataset==1.1.0->-r requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/c2/15/0af20b540c828943b6ffea5677c86e908dcac108813b522adebb75c827c1/PyICU-2.2.tar.gz (211kB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-2i066i/pyicu/setup.py", line 53, in <module>
        ''')
    RuntimeError:
    Please set the ICU_VERSION environment variable to the version of
    ICU you have installed.


    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-2i066i/pyicu/
ERROR: Service 'ctfd' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ColdHeatcommented, Jan 3, 2019

Hi @racterub, thanks for reporting this I’ll take a look.

1reaction
racterubcommented, Jan 1, 2019

** Update ** Just install normality with version 0.6.1 will fix this problem. Version 0.6.1 does fit all the version requirements, and pyicu does not included in the installation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when installing from requirements.txt of web project with ...
Try running this in your bash before installing: export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments.
Read more >
Built-in Exceptions — Python 3.11.1 documentation
In Python, all exceptions must be instances of a class that derives from BaseException. In a try statement with an except clause that...
Read more >
Errors while running pip install -r requirements.txt - MongoDB
I am getting these kinds of error while running pip install -r ... This package requires Rust and Cargo to compile extensions.
Read more >
User Guide - pip documentation v22.3.1
Requirements files are used to hold the result from pip freeze for the purpose of achieving Repeatable Installs. In this case, your requirement...
Read more >
Build and install error messages - TensorFlow
38896424 31058, "No matching distribution found for tensorflow": Pip can't find a TensorFlow package compatible with your system. Check the system requirements ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found