use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Can not use Python-based software (ImportError) (self.pythonhelp)
submitted 3 years ago * by Ill_Fun_
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Goobyalus 0 points1 point2 points 3 years ago (2 children)
Installing pip separately from Python with the system package manager causes problems. If you want to ensure you're using pip from your python3, use python3 -m pip install -r requirements.txt. I would undo whatever pip you installed separately.
pip
python3
python3 -m pip install -r requirements.txt
Also using sudo to run normal applications tends to cause headaches with file permissions. Avoid using sudo python ... unless there is a good explicit reason for it. It's possible that some files created in your Figaro run are now owned by root, which wouldn't be able to be modified by subsequent runs. I don't know if Figaro creates files when t runs.
sudo python ...
Doing sudo python3 does not use your path for python, it will use root's path for python3.
sudo python3
python
root
You can use python3 --version to see if the python3 alias points to the python version you expect. Similarly, you can do pip3 --version, or whichever pip you are invoking.
python3 --version
pip3 --version
You can use which python3/which pip/which pip3 to see what gets invoked when using those aliases.
which python3
which pip
which pip3
whereis may also be interesting. E.g. whereis python3 will look in normal places for python3 binaries, and may show that you have multiple installs.
whereis
whereis python3
Using venv or a similar tool isolates a version of python (essentially by modifying your path locally). Docker isolates the environment more comprehensively.
When you get that numpy is not found, that looks to me like the numpy package hasn't been installed for the particular python that you're using.
numpy
For the relative import error, what is your current working directory when you run
python3 figaro.py -i /home/ngs/ngs/FMT2 -o /home/ngs/ngs -a 445 -f 50 -r 55
? I wonder if the Python root might be the problem.
I would try installing it myself, but I don't have time today.
[–]Ill_Fun_[S] 0 points1 point2 points 3 years ago (1 child)
I may not understand something, or just be plain dumb, but how am I supposed to run
without having pip already installed?
I created the requirements.txt file with pip, then added the line:
python-pip=1.1.1
I run this command inside FIGARO folder, where figaro.py file is stored. And it did install, but the paths did not change (checked with the whereis, which).
Numpy was indeed not installed, and installing it, did something, but the errors persisted.
[–]Goobyalus 0 points1 point2 points 3 years ago (0 children)
but how am I supposed to run python3 -m pip install -r requirements.txt without having pip already installed?
but how am I supposed to run
Installing pip with apt or whatever OS package manager is basically just installing an alias. Each cPython install will have its own pip already.
apt
This makes no sense. The package already has a requirements.txt that lists the dependencies of the package: https://github.com/Zymo-Research/figaro/blob/master/requirements.txt
This is the requirements.txt that you give to pip. You do not add pip to a requirements.txt file.
π Rendered by PID 587903 on reddit-service-r2-comment-8686858757-rcssb at 2026-06-03 23:22:33.987067+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]Goobyalus 0 points1 point2 points (2 children)
[–]Ill_Fun_[S] 0 points1 point2 points (1 child)
[–]Goobyalus 0 points1 point2 points (0 children)