Closed Synthaze closed 3 years ago
Thanks for reporting the issue. I could reproduce the error with pip<20.3. Updating pip to version >=20.3 fixed the error for me, as pip then picks up the wheel files from PyPI (available for py3.7 and py3.8) and not the source dist (which results in incompatibilities with PEP 517). If this should not solve the issue for you, you may consider installing FRETraj with conda
conda install fretraj -c rna-fretools -c conda-forge
as also outlined here.
Thanks for your answer. With pip 21.1.2, traceback below:
Building wheel for fretraj (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /home/synthase/.local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpajherh1w
cwd: /tmp/pip-install-fgap1fvl/fretraj_e8c415353b254ed7aacf08c9cdfeb0e8
Complete output (25 lines):
A setup.py file already exists. Using it.
Traceback (most recent call last):
File "/tmp/pip-install-fgap1fvl/fretraj_e8c415353b254ed7aacf08c9cdfeb0e8/setup.py", line 2, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Traceback (most recent call last):
File "/home/synthase/.local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/home/synthase/.local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/synthase/.local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 205, in build_wheel
metadata_directory)
File "/tmp/pip-build-env-iw3zw9rz/overlay/lib/python3.7/site-packages/poetry/core/masonry/api.py", line 69, in build_wheel
return WheelBuilder.make_in(poetry, Path(wheel_directory))
File "/tmp/pip-build-env-iw3zw9rz/overlay/lib/python3.7/site-packages/poetry/core/masonry/builders/wheel.py", line 77, in make_in
wb.build()
File "/tmp/pip-build-env-iw3zw9rz/overlay/lib/python3.7/site-packages/poetry/core/masonry/builders/wheel.py", line 108, in build
self._build(zip_file)
File "/tmp/pip-build-env-iw3zw9rz/overlay/lib/python3.7/site-packages/poetry/core/masonry/builders/wheel.py", line 141, in _build
self._run_build_command(setup)
File "/tmp/pip-build-env-iw3zw9rz/overlay/lib/python3.7/site-packages/poetry/core/masonry/builders/wheel.py", line 185, in _run_build_command
str(self._path / "build"),
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '/tmp/pip-install-fgap1fvl/fretraj_e8c415353b254ed7aacf08c9cdfeb0e8/setup.py', 'build', '-b', '/tmp/pip-install-fgap1fvl/fretraj_e8c415353b254ed7aacf08c9cdfeb0e8/build']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for fretraj
Failed to build fretraj
ERROR: Could not build wheels for fretraj which use PEP 517 and cannot be installed directly
In the meantime, I tried the poetry install which went smoothly but nothing happened when running fretraj --path
as stated in your docs (I am not a poetry user at all however, I may have missed something trivial here). Upon successful install, redoing a poetry install does not rise any flag:
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: fretraj (0.2.1)
Then fretraj --path
bash: fretraj: command not found
Well, friendly saying that conda is the last thing I want to be running on my Linux, I still installed and configured it (conda 4.9.2) and I ran the command you indicated. Unfortunately, it is neither working. Traceback below:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Was FRETraj installed into a fresh conda environment as there were some conflicts? Below is an environment which includes FRETraj and all dependencies and should be readily recreated with
conda env create -f environment.yml
Installing from source with Poetry seems to have worked. Is the module found after reinitiating the shell?
For the poetry install. After reinitiating the shell, poetry show
yield all dependencies installed for fretraj, but not fretraj
itself:
alabaster 0.7.12 A configurable sidebar-enabled Sphinx theme
argon2-cffi 20.1.0 The secure Argon2 password hashing algorithm.
astunparse 1.6.2 An AST unparser for Python
async-generator 1.10 Async generators and context managers for Python 3.5+
attrs 20.3.0 Classes Without Boilerplate
babel 2.9.0 Internationalization utilities
backcall 0.2.0 Specifications for callback functions passed in to an API
beautifulsoup4 4.9.3 Screen-scraping library
bleach 3.3.0 An easy safelist-based HTML-sanitizing tool.
certifi 2020.12.5 Python package for providing Mozilla's CA Bundle.
cffi 1.14.5 Foreign Function Interface for Python calling C code.
chardet 4.0.0 Universal encoding detector for Python 2 and 3
click 7.1.2 Composable command line interface toolkit
colorama 0.4.4 Cross-platform colored terminal text.
coverage 5.5 Code coverage measurement for Python
cycler 0.10.0 Composable style cycles
decorator 4.4.2 Decorators for Humans
defusedxml 0.7.1 XML bomb protection for Python stdlib modules
docutils 0.16 Docutils -- Python Documentation Utilities
entrypoints 0.3 Discover and load entry points from installed packages.
gitdb 4.0.5 Git Object Database
gitpython 3.1.14 Python Git Library
idna 2.10 Internationalized Domain Names in Applications (IDNA)
imagesize 1.2.0 Getting image size from png/jpeg/jpeg2000/gif file
importlib-metadata 3.7.2 Read metadata from Python packages
iniconfig 1.1.1 iniconfig: brain-dead simple config-ini parsing
ipykernel 5.5.0 IPython Kernel for Jupyter
ipython 7.21.0 IPython: Productive Interactive Computing
ipython-genutils 0.2.0 Vestigial utilities from IPython
ipywidgets 7.6.3 IPython HTML widgets for Jupyter
jedi 0.18.0 An autocompletion tool for Python that can be used for text editors.
jinja2 2.11.3 A very fast and expressive template engine.
jsonschema 3.2.0 An implementation of JSON Schema validation for Python
jupyter-book 0.10.1 Jupyter Book: Create an online book with Jupyter Notebooks
jupyter-cache 0.4.2 A defined interface for working with a cache of jupyter notebooks.
jupyter-client 6.1.11 Jupyter protocol implementation and client libraries
jupyter-core 4.7.1 Jupyter core package. A base package on which Jupyter projects rely.
jupyter-sphinx 0.3.1 Jupyter Sphinx Extensions
jupyterlab-widgets 1.0.0 A JupyterLab extension.
jupytext 1.10.3 Jupyter notebooks as Markdown documents, Julia, Python or R scripts
kiwisolver 1.3.1 A fast implementation of the Cassowary constraint solver
latexcodec 2.0.1 A lexer and codec to work with LaTeX code in Python.
linkify-it-py 1.0.1 Links recognition library with FULL unicode support.
llvmlite 0.33.0 lightweight wrapper around basic LLVM functionality
markdown-it-py 0.6.2 Python port of markdown-it. Markdown parsing, done right!
markupsafe 1.1.1 Safely add untrusted strings to HTML/XML markup.
matplotlib 3.3.4 Python plotting package
mdit-py-plugins 0.2.5 Collection of plugins for markdown-it-py
mdtraj 1.9.5 MDTraj: A modern, open library for the analysis of molecular dynamics trajectories
mistune 0.8.4 The fastest markdown parser in pure Python
myst-nb 0.12.0 A Jupyter Notebook Sphinx reader built on top of the MyST markdown parser.
myst-parser 0.13.5 An extended commonmark compliant parser, with bridges to docutils & sphinx.
nbclient 0.5.3 A client library for executing notebooks. Formerly nbconvert's ExecutePreprocessor.
nbconvert 5.6.1 Converting Jupyter Notebooks
nbdime 2.1.0 Diff and merge of Jupyter Notebooks
nbformat 5.1.2 The Jupyter Notebook format
nest-asyncio 1.5.1 Patch asyncio to allow nested event loops
nested-lookup 0.2.22 Python functions for working with deeply nested documents (lists and dicts)
nglview 2.7.7 IPython widget to interactively view molecular structures and trajectories.
notebook 6.2.0 A web-based notebook environment for interactive computing
numba 0.50.1 compiling Python code using LLVM
numpy 1.19.5 NumPy is the fundamental package for array computing with Python.
packaging 20.9 Core utilities for Python packages
pandas 1.2.3 Powerful data structures for data analysis, time series, and statistics
pandocfilters 1.4.3 Utilities for writing pandoc filters in python
parso 0.8.1 A Python Parser
pexpect 4.8.0 Pexpect allows easy control of interactive console applications.
pickleshare 0.7.5 Tiny 'shelve'-like database with concurrency support
pillow 8.1.2 Python Imaging Library (Fork)
pluggy 0.13.1 plugin and hook calling mechanisms for python
prometheus-client 0.9.0 Python client for the Prometheus monitoring system.
prompt-toolkit 3.0.16 Library for building powerful interactive command lines in Python
ptyprocess 0.7.0 Run a subprocess in a pseudo terminal
py 1.10.0 library with cross-python path, ini-parsing, io, code, log facilities
pybind11 2.6.2 Seamless operability between C++11 and Python
pybtex 0.24.0 A BibTeX-compatible bibliography processor in Python
pybtex-docutils 1.0.0 A docutils backend for pybtex.
pycparser 2.20 C parser in Python
pydata-sphinx-theme 0.4.3 Bootstrap-based Sphinx theme from the PyData community
pygments 2.8.1 Pygments is a syntax highlighting package written in Python.
pyparsing 2.4.7 Python parsing module
pyqt5 5.15.3 Python bindings for the Qt cross platform application toolkit
pyqt5-qt 5.15.2 The subset of a Qt installation needed by PyQt5.
pyqt5-sip 12.8.1 The sip module support for PyQt5
pyrsistent 0.17.3 Persistent/Functional/Immutable data structures
pytest 6.2.2 pytest: simple powerful testing with Python
pytest-cov 2.11.1 Pytest plugin for measuring coverage.
pytest-mock 3.5.1 Thin-wrapper around the mock package for easier use with pytest
python-dateutil 2.8.1 Extensions to the standard Python datetime module
pytz 2021.1 World timezone definitions, modern and historical
pyyaml 5.4.1 YAML parser and emitter for Python
pyzmq 22.0.3 Python bindings for 0MQ
requests 2.25.1 Python HTTP for Humans.
scipy 1.6.1 SciPy: Scientific Library for Python
seaborn 0.11.1 seaborn: statistical data visualization
send2trash 1.5.0 Send file to trash natively under Mac OS X, Windows and Linux.
six 1.15.0 Python 2 and 3 compatibility utilities
smmap 3.0.5 A pure Python implementation of a sliding window memory map manager
snowballstemmer 2.1.0 This package provides 29 stemmers for 28 languages generated from Snowball algorithms.
soupsieve 2.2 A modern CSS selector implementation for Beautiful Soup.
sphinx 3.5.2 Python documentation generator
sphinx-book-theme 0.0.40 Jupyter Book: Create an online book with Jupyter Notebooks
sphinx-comments 0.0.3 Add comments and annotation to your documentation.
sphinx-copybutton 0.3.1 Add a copy button to each of your code cells.
sphinx-panels 0.5.2 A sphinx extension for creating panels in a grid layout.
sphinx-thebe 0.0.8 Integrate interactive code blocks into your documentation with Thebe and Binder.
sphinx-togglebutton 0.2.3 Toggle page content and collapse admonitions in Sphinx.
sphinxcontrib-applehelp 1.0.2 sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books
sphinxcontrib-bibtex 2.1.4 Sphinx extension for BibTeX style citations.
sphinxcontrib-devhelp 1.0.2 sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.
sphinxcontrib-htmlhelp 1.0.3 sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files
sphinxcontrib-jsmath 1.0.1 A sphinx extension which renders display math in HTML via JavaScript
sphinxcontrib-qthelp 1.0.3 sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.
sphinxcontrib-serializinghtml 1.1.4 sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized" HTML files (json and pickle).
sqlalchemy 1.3.23 Database Abstraction Library
terminado 0.9.2 Tornado websocket backend for the Xterm.js Javascript terminal emulator library.
testpath 0.4.4 Test utilities for code working with files and commands
toml 0.10.2 Python Library for Tom's Obvious, Minimal Language
tornado 6.1 Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
tqdm 4.59.0 Fast, Extensible Progress Meter
traitlets 5.0.5 Traitlets Python configuration system
typing-extensions 3.7.4.3 Backported and Experimental Type Hints for Python 3.5+
uc-micro-py 1.0.1 Micro subset of unicode data files for linkify-it-py projects.
urllib3 1.26.3 HTTP library with thread-safe connection pooling, file post, and more.
wcwidth 0.2.5 Measures the displayed width of unicode strings in a terminal
webencodings 0.5.1 Character encoding aliases for legacy web content
widgetsnbextension 3.5.1 IPython HTML widgets for Jupyter
zipp 3.4.1 Backport of pathlib-compatible object wrapper for zip files
For conda, it was a fresh install and the conda install fretraj -c rna-fretools -c conda-forge
was executed inside a miniconda3
(base)
default/fresh environment.
I investigate the conda way and let you know asap.
Well thanks! Saving the content of environment.yml
in a directory, cd
to this directory and doing the following works:
conda env create -f environment.yml
conda activate fretraj
conda install fretraj -c rna-fretools -c conda-forge
Then:
fretraj --path
Yields:
Note: the LabelLib module is not installed.
ACV calculations will use a Python-only algorithm
package directory: /home/synthase/miniconda3/envs/fretraj/lib/python3.7/site-
packages/fretraj
Which is great.
Maybe think about adding this environment.yml
in the root dir of the package ;)
FRETraj is now available on conda-forge. Installing with conda install fretraj -c conda-forge
should solve the environment.
With python3.7.3, pip3.7 on GNU/Linux Debian 10
Full logs below:
If this problem comes from your side, please fix it quick! ;)
If you think this is coming from my side, please let me know and I'll investigate.
Thanks.