Does Poetry install --no-dev need Rust to be installed? - python

I'm installing Poetry in a container in my Raspberry pi 3b+ (Lite buster February 2020). I use the image arm32v7/python:3.7-slim-buster.
Here is the Dockerfile:
FROM arm32v7/python:3.7-slim-buster
RUN apt-get update
RUN apt-get install libssl-dev -y
RUN apt-get install libffi-dev
RUN apt-get install build-essential -y
RUN pip install poetry
RUN pip install --upgrade pip
COPY ./pyproject.toml /app/
WORKDIR /app/
RUN poetry install --no-dev
COPY ./rpiserver /app/rpiserver
RUN poetry install --no-dev
ENTRYPOINT poetry
When docker runs the step with poetry install --no-dev it installs many packages including orjson (2.6.3) which requires "Rust nightly toolchain". So it fails!
Here is the error message:
Writing lock file
Package operations: 33 installs, 0 updates, 0 removals
- Installing six (1.14.0)
- Installing promise (2.3)
- Installing rx (1.6.1)
- Installing graphql-core (2.3.1)
- Installing aniso8601 (7.0.0)
- Installing certifi (2019.11.28)
- Installing chardet (3.0.4)
- Installing click (7.1.1)
- Installing dnspython (1.16.0)
- Installing graphql-relay (2.0.1)
- Installing h11 (0.9.0)
- Installing httptools (0.1.1)
- Installing idna (2.9)
- Installing markupsafe (1.1.1)
- Installing urllib3 (1.25.8)
- Installing uvloop (0.14.0)
- Installing websockets (8.1)
- Installing aiofiles (0.4.0)
- Installing async-exit-stack (1.0.1)
- Installing async-generator (1.10)
- Installing email-validator (1.0.5)
- Installing graphene (2.1.8)
- Installing itsdangerous (1.1.0)
- Installing jinja2 (2.11.1)
- Installing orjson (2.6.3)
[EnvCommandError]
Command ['/root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/bin/pip', 'install', '--no-deps', 'orjson==2.6.3'] errored with the following return code 1, and output:
Collecting orjson==2.6.3
Downloading https://files.pythonhosted.org/packages/8e/7c/e9a6f52e344c480be42fddeb1a0593283ecc1c06293ef210af4521a5b6f5/orjson-2.6.3.tar.gz (526kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/bin/python /root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-wsqo2pr0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.7.9,<0.8'
cwd: None
Complete output (60 lines):
Collecting maturin<0.8,>=0.7.9
Downloading https://files.pythonhosted.org/packages/a1/ab/531984f5c304e56b47da35df5ea3ed8d862d114551720a434ebb34ce44db/maturin-0.7.9.tar.gz (80kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting toml~=0.10.0 (from maturin<0.8,>=0.7.9)
Downloading https://files.pythonhosted.org/packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
Building wheels for collected packages: maturin
Building wheel for maturin (PEP 517): started
Building wheel for maturin (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/bin/python /root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp2f8vk9ny
cwd: /tmp/pip-install-aos7ep0k/maturin
Complete output (36 lines):
running bdist_wheel
running build
installing to build/bdist.linux-armv7l/wheel
running install
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
main()
File "/root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 141, in build_wheel
metadata_directory)
File "/tmp/pip-build-env-txy57zgb/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 209, in build_wheel
wheel_directory, config_settings)
File "/tmp/pip-build-env-txy57zgb/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 194, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-txy57zgb/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 97, in <module>
zip_safe=False,
File "/tmp/pip-build-env-txy57zgb/overlay/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-txy57zgb/overlay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 228, in run
self.run_command('install')
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 54, in run
"cargo not found in PATH. Please install rust "
RuntimeError: cargo not found in PATH. Please install rust (https://www.rust-lang.org/tools/install) and try again
----------------------------------------
ERROR: Failed building wheel for maturin
Running setup.py clean for maturin
Failed to build maturin
ERROR: Could not build wheels for maturin which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
----------------------------------------
ERROR: Command errored out with exit status 1: /root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/bin/python /root/.cache/pypoetry/virtualenvs/rpiserver-9TtSrW0h-py3.7/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-wsqo2pr0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.7.9,<0.8' Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Service 'server' failed to build: The command '/bin/sh -c poetry install --no-dev' returned a non-zero code: 1
I didn't find any Poetry documentation that was saying to install Rust (because orjson needs maturin, which needs cargo, which needs Rust? Right?).
In order to solve this issue, I decided to install cargo and maturin in my image by editing the Dockerfile.
However I got a new issue.
Here is my Dockerfile:
FROM arm32v7/python:3.7-slim-buster
RUN apt-get update
RUN apt-get install libssl-dev -y
RUN apt-get install libffi-dev
RUN apt-get install build-essential -y
RUN pip install poetry
RUN pip install --upgrade pip
COPY ./pyproject.toml /app/
WORKDIR /app/
RUN apt-get install cargo -y
RUN pip install maturin
RUN poetry install --no-dev
COPY ./rpiserver /app/rpiserver
RUN poetry install --no-dev
ENTRYPOINT poetry
Here is the error message:
Building wheels for collected packages: maturin
Building wheel for maturin (PEP 517): started
Building wheel for maturin (PEP 517): still running...
Building wheel for maturin (PEP 517): still running...
Building wheel for maturin (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp6vyv1zmu
cwd: /tmp/pip-install-cqvpc5wg/maturin
Complete output (369 lines):
running bdist_wheel
running build
installing to build/bdist.linux-armv7l/wheel
running install
Updating crates.io index
Downloading crates ...
Downloaded serde_json v1.0.50
Downloaded sha2 v0.8.1
Downloaded shlex v0.1.1
Downloaded failure v0.1.7
Downloaded walkdir v2.3.1
Downloaded tempfile v3.1.0
Downloaded cargo_metadata v0.9.1
Downloaded bytesize v1.0.0
Downloaded digest v0.8.1
Downloaded toml v0.5.6
Downloaded zip v0.5.5
Downloaded structopt v0.3.12
Downloaded serde v1.0.105
Downloaded flate2 v1.0.14
Downloaded base64 v0.12.0
Downloaded regex v1.3.6
Downloaded reqwest v0.10.4
Downloaded tar v0.4.26
Downloaded rpassword v4.0.5
Downloaded cbindgen v0.13.2
Downloaded platform-info v0.0.1
Downloaded platforms v0.2.1
Downloaded goblin v0.2.1
Downloaded pretty_env_logger v0.4.0
Downloaded serde_derive v1.0.105
Downloaded crc32fast v1.2.0
Downloaded ryu v1.0.3
Downloaded bytes v0.5.4
Downloaded proc-macro2 v1.0.10
Downloaded cfg-if v0.1.10
Downloaded generic-array v0.12.3
Downloaded rand v0.7.3
Downloaded time v0.1.42
Downloaded futures-util v0.3.4
Downloaded pin-project-lite v0.1.4
Downloaded mime v0.3.16
Downloaded url v2.1.1
Downloaded serde_urlencoded v0.6.1
Downloaded lazy_static v1.4.0
Downloaded mime_guess v2.0.3
Downloaded http-body v0.3.1
Downloaded failure_derive v0.1.7
Downloaded same-file v1.0.6
Downloaded thread_local v1.0.1
Downloaded opaque-debug v0.2.3
Downloaded block-buffer v0.7.3
Downloaded percent-encoding v2.1.0
Downloaded semver v0.9.0
Downloaded remove_dir_all v0.5.2
Downloaded futures-core v0.3.4
Downloaded bzip2 v0.3.3
Downloaded base64 v0.11.0
Downloaded structopt-derive v0.4.5
Downloaded xattr v0.2.2
Downloaded filetime v0.2.9
Downloaded miniz_oxide v0.3.6
Downloaded log v0.4.8
Downloaded quote v1.0.3
Downloaded itoa v0.4.5
Downloaded podio v0.1.6
Downloaded memchr v2.3.3
Downloaded aho-corasick v0.7.10
Downloaded clap v2.33.0
Downloaded fake-simd v0.1.2
Downloaded tokio-rustls v0.13.0
Downloaded hyper-rustls v0.20.0
Downloaded http v0.2.1
Downloaded backtrace v0.3.46
Downloaded tokio v0.2.15
Downloaded hyper v0.13.4
Downloaded webpki-roots v0.18.0
Downloaded syn v1.0.17
Downloaded regex-syntax v0.6.17
Downloaded rustls v0.17.0
Downloaded libc v0.2.68
Downloaded env_logger v0.7.1
Downloaded adler32 v1.0.4
Downloaded getrandom v0.1.14
Downloaded rand_core v0.5.1
Downloaded fnv v1.0.6
Downloaded rand_chacha v0.2.2
Downloaded typenum v1.11.2
Downloaded slab v0.4.2
Downloaded webpki v0.21.2
Downloaded iovec v0.1.4
Downloaded want v0.3.0
Downloaded proc-macro-nested v0.1.4
Downloaded ct-logs v0.6.0
Downloaded futures-channel v0.3.4
Downloaded httparse v1.3.4
Downloaded textwrap v0.11.0
Downloaded bitflags v1.2.1
Downloaded rustc-demangle v0.1.16
Downloaded unicode-width v0.1.7
Downloaded ansi_term v0.11.0
Downloaded net2 v0.2.33
Downloaded pin-project v0.4.8
Downloaded dtoa v0.4.5
Downloaded atty v0.2.14
Downloaded vec_map v0.8.1
Downloaded pin-utils v0.1.0-alpha.4
Downloaded strsim v0.8.0
Downloaded futures-macro v0.3.4
Downloaded proc-macro-hack v0.5.15
Downloaded futures-io v0.3.4
Downloaded unicase v2.6.0
Downloaded tower-service v0.3.0
Downloaded num_cpus v1.12.0
Downloaded scroll v0.10.1
Downloaded semver-parser v0.7.0
Downloaded byteorder v1.3.4
Downloaded synstructure v0.12.3
Downloaded proc-macro-error v0.4.12
Downloaded futures-task v0.3.4
Downloaded unicode-xid v0.2.0
Downloaded byte-tools v0.3.1
Downloaded matches v0.1.8
Downloaded mio v0.6.21
Downloaded heck v0.3.1
Downloaded block-padding v0.1.5
Downloaded plain v0.2.3
Downloaded rustls-native-certs v0.3.0
Downloaded h2 v0.2.4
Downloaded idna v0.2.0
Downloaded bzip2-sys v0.1.8+1.0.8
Downloaded encoding_rs v0.8.22
Downloaded termcolor v1.1.0
Downloaded humantime v1.3.0
Downloaded sct v0.6.0
Downloaded openssl-probe v0.1.2
Downloaded tokio-util v0.3.1
Downloaded try-lock v0.2.2
Downloaded ppv-lite86 v0.2.6
Downloaded version_check v0.9.1
Downloaded unicode-bidi v0.3.4
Downloaded futures-sink v0.3.4
Downloaded pin-project-internal v0.4.8
Downloaded proc-macro-error-attr v0.4.12
Downloaded scroll_derive v0.10.1
Downloaded indexmap v1.3.2
Downloaded untrusted v0.7.0
Downloaded unicode-segmentation v1.6.0
Downloaded unicode-normalization v0.1.12
Downloaded winapi v0.3.8
Downloaded backtrace-sys v0.1.35
Downloaded quick-error v1.2.3
Downloaded syn-mid v0.5.0
Downloaded autocfg v1.0.0
Downloaded cc v1.0.50
Downloaded smallvec v1.2.0
Downloaded ring v0.16.12
Downloaded spin v0.5.2
Compiling libc v0.2.68
Compiling proc-macro2 v1.0.10
Compiling log v0.4.8
Compiling unicode-xid v0.2.0
Compiling memchr v2.3.3
Compiling syn v1.0.17
Compiling cc v1.0.50
Compiling cfg-if v0.1.10
Compiling autocfg v1.0.0
Compiling slab v0.4.2
Compiling proc-macro-nested v0.1.4
Compiling version_check v0.9.1
Compiling getrandom v0.1.14
Compiling spin v0.5.2
Compiling bytes v0.5.4
error[E0432]: unresolved import `std::io::IoSlice`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_impl.rs:4:5
|
4 | use std::io::IoSlice;
| ^^^^^^^^^^^^^^^^ no `IoSlice` in `io`
error[E0432]: unresolved import `std::io::IoSlice`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/ext/chain.rs:7:15
|
7 | use std::io::{IoSlice};
| ^^^^^^^ no `IoSlice` in `io`
error[E0433]: failed to resolve: could not find `IoSliceMut` in `io`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1075:29
|
1075 | IoSliceMut(std::io::IoSliceMut::new(buf))
| ^^^^^^^^^^ could not find `IoSliceMut` in `io`
error[E0433]: failed to resolve: could not find `IoSliceMut` in `io`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1082:29
|
1082 | IoSliceMut(std::io::IoSliceMut::new(unsafe {
| ^^^^^^^^^^ could not find `IoSliceMut` in `io`
error[E0412]: cannot find type `IoSliceMut` in module `std::io`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1061:36
|
1061 | pub struct IoSliceMut<'a>(std::io::IoSliceMut<'a>);
| ^^^^^^^^^^ not found in `std::io`
help: possible candidate is found in another module, you can import it into scope
|
1 | use crate::buf::buf_mut::IoSliceMut;
|
error[E0658]: naming constants with `_` is unstable (see issue #54912)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/bytes.rs:911:1
|
911 | const _: [(); 0 - mem::align_of::<Shared>() % 2] = []; // Assert that the alignment of `Shared` is divisible by 2.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'alloc': this library is unlikely to be stabilized in its current form or name (see issue #27783)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/lib.rs:76:1
|
76 | extern crate alloc;
| ^^^^^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1:29
|
1 | use core::{cmp, mem::{self, MaybeUninit}, ptr, usize};
| ^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1080:24
|
1080 | impl<'a> From<&'a mut [MaybeUninit<u8>]> for IoSliceMut<'a> {
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:165:38
|
165 | fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>];
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:970:38
|
970 | fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1003:38
|
1003 | fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1013:45
|
1013 | let ptr = self.as_mut_ptr() as *mut MaybeUninit<u8>;
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1081:27
|
1081 | fn from(buf: &'a mut [MaybeUninit<u8>]) -> IoSliceMut<'a> {
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:1085:39
|
1085 | mem::transmute::<&'a mut [MaybeUninit<u8>], &'a mut [u8]>(buf)
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:880:38
|
880 | fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^
...
956 | deref_forward_bufmut!();
| ------------------------ in this macro invocation
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/buf_mut.rs:880:38
|
880 | fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^
...
960 | deref_forward_bufmut!();
| ------------------------ in this macro invocation
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/ext/chain.rs:4:5
|
4 | use core::mem::MaybeUninit;
| ^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/ext/chain.rs:189:38
|
189 | fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/ext/limit.rs:3:17
|
3 | use core::{cmp, mem::MaybeUninit};
| ^^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/buf/ext/limit.rs:66:38
|
66 | fn bytes_mut(&mut self) -> &mut [MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/bytes_mut.rs:909:47
|
909 | fn maybe_uninit_bytes(&mut self) -> &mut [mem::MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/bytes_mut.rs:914:51
|
914 | slice::from_raw_parts_mut(ptr as *mut mem::MaybeUninit<u8>, len)
| ^^^^^^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/bytes_mut.rs:977:38
|
977 | fn bytes_mut(&mut self) -> &mut [mem::MaybeUninit<u8>] {
| ^^^^^^^^^^^^^^^^^^^^
Compiling lazy_static v1.4.0
error: aborting due to 24 previous errors
Some errors occurred: E0412, E0432, E0433, E0658.
For more information about an error, try `rustc --explain E0412`.
error: Could not compile `bytes`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 182, in build_wheel
metadata_directory)
File "/tmp/pip-build-env-fmh7uvxq/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 209, in build_wheel
wheel_directory, config_settings)
File "/tmp/pip-build-env-fmh7uvxq/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 194, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-fmh7uvxq/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 97, in <module>
zip_safe=False,
File "/tmp/pip-build-env-fmh7uvxq/overlay/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-fmh7uvxq/overlay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 228, in run
self.run_command('install')
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 58, in run
["cargo", "rustc", "--bin", "maturin", "--", "-C", "link-arg=-s"]
File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cargo', 'rustc', '--bin', 'maturin', '--', '-C', 'link-arg=-s']' returned non-zero exit status 101.
----------------------------------------
ERROR: Failed building wheel for maturin
Failed to build maturin
ERROR: Could not build wheels for maturin which use PEP 517 and cannot be installed directly
ERROR: Service 'server' failed to build: The command '/bin/sh -c pip install maturin' returned a non-zero code: 1
Why do I need Rust in this situation?

Poetry doesn't depend on Rust.
But you are depending on orjson, which is implemented, at least partly, in Rust. As a result, installing it from source¹ requires a Rust toolchain and the maturin build tool.
Add pip install maturin back to your Dockerfile as it was before or, better yet, add it to your project's dependencies.
You will also need to install cargo. A multi-stage build might be the best solution, but the simplest is probably to install packages into the existing image, e.g. via something like
RUN apt-get install cargo
in your Dockerfile.
¹Binary wheels might be available for some platforms, in which case the Rust tooling presumably wouldn't be required, but since pip is trying to build from source I suspect no compatible wheels are available for ARM.

Related

Cmake problems after upgrading to MacOS 13.0

As mentioned on the title, CMake seems to be broken after upgrading to MacOS 13.0.
Trying to install something that requires Cmakes takes unusually long then the following pop-up shows up.
“CMake” is damaged and can’t be opened. You should move it to the Trash.
This file was downloaded on an unknown date. # this txt is grey and smaller font
Pop-up Options
1. Move to Trash 2. Cancel
Steps to reproduce Err
Cloned EasyOCR
1.1 git clone ...
Made Python venv
2.0. cd EasyOCR/
2.1. python3 -m venv venv
2.2. source venv/bin/activate
2.3. venv info
python --version && pip --version
# output
Python 3.10.6
pip 22.3 from ... # path to venv dir
pip install -r requirements.txt
# requirements.txt content
torch
torchvision>=0.5
opencv-python-headless<=4.5.4.60
scipy
numpy
Pillow
scikit-image
python-bidi
PyYAML
Shapely
pyclipper
ninja
After a while, the aforementioned pop-up, shows up. Clicking on either option will result in the following error.
Building wheels for collected packages: opencv-python-headless
Building wheel for opencv-python-headless (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for opencv-python-headless (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
File "/private/var/folders/5h/36chnb_s3b5fpqmqgt_7cz_m0000gn/T/pip-build-env-ea_5u80v/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 613, in setup
cmkr = cmaker.CMaker(cmake_executable)
File "/private/var/folders/5h/36chnb_s3b5fpqmqgt_7cz_m0000gn/T/pip-build-env-ea_5u80v/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 141, in __init__
self.cmake_version = get_cmake_version(self.cmake_executable)
File "/private/var/folders/5h/36chnb_s3b5fpqmqgt_7cz_m0000gn/T/pip-build-env-ea_5u80v/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 95, in get_cmake_version
raise SKBuildError(
Traceback (most recent call last):
Problem with the CMake installation, aborting build. CMake executable is cmake
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for opencv-python-headless
Failed to build opencv-python-headless
ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.toml-based projects
Any thoughts on how to fix or get around this? This is the first time I see this pop up.
The pip package is broken on macOS 13 prior to CMake 3.24.2 due to improper code signing. You should upgrade CMake in your virtual environment by running:
$ python -m pip install -U pip setuptools wheel
$ python -m pip install -U 'cmake>=3.24.2'
As CMake is extremely backwards compatible, it should be safe. You can also add cmake>=3.24.2 to your requirements.txt.

Dockerfile on Raspberry Pi 3B+

I'm trying to create a docker image on Raspberry Pi 3B+, which i couldn't managed for days. Before creating Docker image, i implemented the code with virtualenv beforehand, which is working fine and requirements.txt is simplified as possible.
Dockerfile ->
FROM alpine:3.14
WORKDIR /code
RUN apk update
RUN apk add python3
RUN apk add py3-pip
RUN pip install wheel
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade Pillow
# copy the requirements inside docker image
COPY ./requirements.txt /code/requirements.txt
# install dependencies inside docker image
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# copy the necessary files in the working directory inside docker image
COPY ./ /code
# RUN the code
CMD ["python3", "camera.py"]
requirements.txt ->
numpy==1.22.3
picamera==1.13
Pillow==9.1.0
requests==2.27.1
When i try to build the image by running
sudo docker build -t camera .
I get the following long error
Building wheels for collected packages: Pillow Building wheel for
Pillow (setup.py): started Building wheel for Pillow (setup.py):
finished with status 'error' error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [177 lines of output]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-
7613obru/pillow_a212af14addc481892cfcd3648121cf3/setup.py",
line 1009, in <module>
raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Pillow
Running setup.py clean for Pillow Failed to build Pillow Installing
collected packages: Pillow Running setup.py install for Pillow:
started Running setup.py install for Pillow: finished with status
'error' error: subprocess-exited-with-error
× Running setup.py install for Pillow did not run successfully. │ exit code: 1 ╰─> [179 lines of output]
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.9
creating build/lib.linux-armv7l-3.9/PIL
copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-3.9/PIL
copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-3.9/PIL
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
line 804, in build_extensions
raise RequiredDependencyException(f)
__main__.RequiredDependencyException: zlib
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-
7613obru/pillow_a212af14addc481892cfcd3648121cf3/setup.py",
line 1009, in <module>
raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> Pillow
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I've deleted some repetitive lines of error since it was extremely long
It seems i have development libraries missing, i added the following lines and the error was solved
RUN apk add build-base python3-dev py-pip jpeg-dev zlib-dev py3-wheel py3-setuptools
ENV LIBRARY_PATH=/lib:/usr/lib

ERROR: Could not build wheels for pendulum which use PEP 517 and cannot be installed directly

Please help. Tried most of the solutions I could find online, and as the last resort, posting it on stackoverflow.
The error I get while trying to install the Pendulum package is as below:
C:\WINDOWS\system32>pip install pendulum Collecting pendulum Using cached pendulum-2.1.0.tar.gz (80 kB) Installing build dependencies ... done Getting requirements to build wheel ... done
Preparing wheel metadata ... done Collecting pytzdata>=2018.3 Using cached pytzdata-2019.3-py2.py3-none-any.whl (489 kB) Requirement already satisfied: python-dateutil<3.0,>=2.6 in c:\python\python38-32\lib\site-packages (from pendulum) (2.8.1) Requirement already satisfied: six>=1.5 in c:\users\cuser\appdata\roaming\python\python38\site-packages (from python-dateutil<3.0,>=2.6->pendulum) (1.14.0) Building wheels for collected packages: pendulum Building wheel for pendulum (PEP 517) ... error ERROR: Command errored out with exit status 1: command: 'c:\python\python38-32\python.exe' 'c:\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\cuser\AppData\Local\Temp\tmpkbrn91g9'
cwd: C:\Users\cuser\AppData\Local\Temp\pip-install-q2vfs50o\pendulum Complete output (24 lines): Traceback (most recent call last):
File "setup.py", line 2, in <module>
from setuptools import setup ModuleNotFoundError: No module named 'setuptools' Traceback (most recent call last):
File "c:\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 257, in <module>
main()
File "c:\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 181, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\cuser\AppData\Local\Temp\pip-build-env-nvwxlarh\overlay\Lib\site-packages\poetry\core\masonry\api.py", line 57, in build_wheel
return unicode(WheelBuilder.make_in(poetry, Path(wheel_directory)))
File "C:\Users\cuser\AppData\Local\Temp\pip-build-env-nvwxlarh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 56, in make_in
wb.build()
File "C:\Users\cuser\AppData\Local\Temp\pip-build-env-nvwxlarh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 82, in build
self._build(zip_file)
File "C:\Users\cuser\AppData\Local\Temp\pip-build-env-nvwxlarh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 102, in _build
self._run_build_command(setup)
File "C:\Users\cuser\AppData\Local\Temp\pip-build-env-nvwxlarh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 130, in _run_build_command
subprocess.check_call(
File "c:\python\python38-32\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['c:\\python\\python38-32\\python.exe', 'setup.py', 'build', '-b', 'build']' returned non-zero exit status 1.
---------------------------------------- ERROR: Failed building wheel for pendulum Failed to build pendulum ERROR: Could not build wheels for pendulum which use PEP 517 and cannot be installed directly
The current python version and package versions are as below:
Python 3.8.2
Package Version
----------------- -------
astroid 2.3.3
colorama 0.4.3
cx-Oracle 7.3.0
ez-setup 0.9
isort 4.3.21
lazy-object-proxy 1.4.3
mccabe 0.6.1
numpy 1.18.2
pandas 1.0.3
pip 20.0.2
pylint 2.4.4
python-dateutil 2.8.1
pytz 2019.3
setuptools 46.1.3
six 1.14.0
SQLAlchemy 1.3.15
wheel 0.34.2
wrapt 1.11.2
OS version:
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.17763 N/A Build 17763
This appears to be the result of two mistakes in how Pendulum is configured.
The first mistake is that the Windows wheels have the wrong name. See https://github.com/sdispater/pendulum/issues/456.
Therefore Pip is trying to fall back to building from source. I'm not sure what exactly is wrong here, but something is misconfigured in Pendulum such that the installation does not work with modern versions of Pip. See https://github.com/sdispater/pendulum/issues/454.
There are two workaround solutions:
Downgrade Pip to version 18.1. This worked for me personally.
Install Poetry into your project environment and then install Pendulum with the --no-build-isolation option, as described by #Wes here: https://github.com/sdispater/pendulum/issues/454#issuecomment-605519477
I would prefer to temporarily downgrade Pip until this is fixed, rather than make a mess of my project environment. So I went with the first option. You should choose whatever makes more sense for your workflow, until this problem is fixed.
For now, you can try this:
pip install pendulum==2.0.5
Downgrade to pip version 18.1 then install pendulum
pip install pip==18.1 && pip install pendulum

Installing scikits.samplerate fails

I'd like to use "scikits.samplerate", but installation fails.
I'm using Windows10 (64 Bits) for Python 3.51 with Anaconda.
Firstly, I followed this instruction:
https://scikits.appspot.com/samplerate
>pip install scikits.samplerate Collecting scikits.samplerate Using cached scikits.samplerate-0.3.3.tar.gz
Complete output from command python setup.py egg_info:
SamplerateInfo:
libraries samplerate not found in c:\users\username\anaconda3\lib
libraries samplerate not found in C:\
libraries samplerate not found in c:\users\username\anaconda3\libs
Traceback (most recent call last):
File "scikits\samplerate\setup.py", line 15, in configuration
sf_config = sf_info.get_info(2)
File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\system_info.py", line 568, in get_info
raise self.notfounderror(self.notfounderror.__doc__)
numpy.distutils.system_info.NotFoundError: Some third-party program or library is not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\username\AppData\Local\Temp\pip-build-9sjnkaf5\scikits.samplerate\setup.py", line 74, in <module>
classifiers = CLASSIFIERS,
File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\username\AppData\Local\Temp\pip-build-9sjnkaf5\scikits.samplerate\setup.py", line 59, in configuration
config.add_subpackage(DISTNAME)
File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\misc_util.py", line 1002, in add_subpackage
caller_level = 2)
File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\misc_util.py", line 971, in get_subpackage
caller_level = caller_level + 1)
File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\misc_util.py", line 908, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scikits\samplerate\setup.py", line 20, in configuration
[samplerate].""")
numpy.distutils.system_info.NotFoundError: SRC (http://www.mega-nerd.com/SRC/) library not found. Directories to search
for the libraries can be specified in the site.cfg file, in section
[samplerate].
---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\username\AppData\Local\Temp\pip-build-9sjnkaf5\scikits.samplerate\
... Next, I followed this instruction:
https://anaconda.org/hcc/scikits.samplerate
>conda install -c hcc scikits.samplerate=0.3.3 Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: ...... Solving package specifications: . Error: Package missing in current win-64 channels:
- scikits.samplerate 0.3.3*
You can search for this package on anaconda.org with
anaconda search -t conda scikits.samplerate 0.3.3*
... so, I serached:
[Anaconda3] C:\Users\username>anaconda search -t conda scikits↲ Using Anaconda Cloud api site https://api.anaconda.org↲ Run 'anaconda show <USER/PACKAGE>' to get more details:↲ Packages:↲
Name | Version | Package Types | Platforms↲
------------------------- | ------ | --------------- | ---------------↲
HCC/scikits.samplerate | 0.3.3 | conda | linux-64↲
: A python module for high quality audio resampling↲
anaconda/scikits-image | 0.7.1 | conda | linux-64, win-32, win-64, linux-32, osx-64↲
davidbgonzalez/scikits.talkbox | 0.2.5 | conda | linux-64↲
desilinguist/scikits-bootstrap | 0.3.1 | conda | linux-64, osx-64↲
krisvanneste/scikits.timeseries | 0.91.3 | conda | win-64↲
lukepfister/scikits.cuda | master_2016.2 | conda | linux-64↲
: Python interface to GPU-powered libraries↲
menpo/scikits.sparse | 0.2 | conda | linux-64, osx-64↲
miguelalexanderdiaz/scikits.cuda | 0.5.0b1 | conda | linux-64↲
: Python interface to GPU-powered libraries↲
poppy-project/scikits.samplerate | 0.3.3 | conda | linux-armv7l↲
: Simple Hamming Marker Detection using OpenCV↲
rgrout/scikits.bootstrap | 0.3.2 | conda | linux-64, osx-64↲
: Bootstrap confidence interval estimation routines for SciPy.↲ Found 10 packages↲ ↲ [Anaconda3] C:\Users\username>anaconda show poppy-project/scikits.samplerate↲ Using Anaconda Cloud api site https://api.anaconda.org↲ Name: scikits.samplerate↲ Summary: Simple Hamming Marker Detection using OpenCV↲ Access: public↲ Package Types: conda↲ Versions:↲ + 0.3.3↲ ↲ To install this package with conda run:↲
conda install --channel https://conda.anaconda.org/poppy-project scikits.samplerate↲ ↲ [Anaconda3] C:\Users\username>conda install
--channel https://conda.anaconda.org/poppy-project scikits.samplerate↲ Using Anaconda Cloud api site https://api.anaconda.org↲ Fetching package metadata: ......↲ Solving package specifications: .↲ Error: Package missing in current win-64 channels:↲
- scikits.samplerate↲ ↲ You can search for this package on anaconda.org with↲ ↲
anaconda search -t conda scikits.samplerate↲
... I have done what I was told, but still it fails.
Does anyone have a solution?
Is this really installable?
I am not sure if this would work, but glad if it does. Have you tried to edit the site.cfg file and try the installation again.This is what line 20 error in your question says as well.
The user here has done it on Ubuntu, maybe a similar approach works for Windows as well.
http://msnoise.org/doc/installation.html
You first need to install the SRC library:
sudo apt-get install libsamplerate0 libsamplerate0-dev
This python package will probably be the most tricky to install. If you are lucky, you can just
pip install scikits.samplerate
On my Ubuntu 12.04, this results in an error because the SRC library path is not found. The reason is that the setup searches SRC in /usr/lib and not in /usr/lib/x86_64-linux-gnu where the library is actually present. To install, you need to download the archive from pypi and edit some configuration file:
wget https://pypi.python.org/packages/source/s/scikits.samplerate/scikits.samplerate-0.3.3.tar.gz#md5=96c8d8ba3aa95a9db15994f78792efb4
tar -xvf scikits.samplerate-0.3.3.tar.gz
cd scikits.samplerate-0.3.3
then edit the site.cfg example file and insert the following lines:
[samplerate]
library_dirs=/usr/lib/x86_64-linux-gnu
include_dirs=/usr/include
To know where the SRC library is on you machine:
sudo dpkg -L libsamplerate0
sudo dpkg -L libsamplerate0-dev
then, build and install:
python setup.py build
python setup.py install
Firstly, notice I used UNIX system, not Windows.
I had same/similar error:
...numpy.distutils.system_info.NotFoundError: SRC
(http://www.mega-nerd.com/SRC/) library not found. Directories to
search
for the libraries can be specified in the site.cfg file, in section...
I followed link given in it, found download site:
http://www.mega-nerd.com/SRC/download.html
downloaded sources,
compiled and installed them
then just installed scikits.samplerate using pip
In Windows it might be more difficult (i haven't tried it!), but on the site there is a link to instructions for Windows: http://www.mega-nerd.com/SRC/win32.html
For Centos7 when I had that error I did:
yum install libsamplerate-devel libsamplerate
For Windows I am using Miniconda2 and in order to get librosa to work installed ffmpeg using this command:
conda install -c conda-forge ffmpeg

How to install vtk with gl2ps enabled using conda

I am using anaconda, and I've built vtk with conda using
conda install vtk
The default build of vtk is without gl2ps, and I want to know how can I build (or rather rebuild) vtk with gl2ps enabled using conda.
I am actually tring to execture this example code:
from mayavi import mlab
mlab.test_plot3d()
mlab.savefig(temp.eps)
but get the error
Saving as a vector PS/EPS/PDF/TeX file using GL2PS is either not supported by your version of VTK or you have not configured VTK to work with GL2PS -- read the documentation for the vtkGL2PSExporter class.
Thank You
EDIT
I downloaded the coda-recipes
git clone https://github.com/conda/conda-recipes.git
and even if I do not edit the files to include gl2ps
BUILD START: vtk-5.10.1-py27_1
Fetching package metadata: ......
Solving package specifications: .
The following packages will be downloaded:
package | build
---------------------------|-----------------
setuptools-13.0.2 | py27_0 435 KB
The following NEW packages will be INSTALLED:
cmake: 3.0.1-0
openssl: 1.0.1k-0
pip: 6.0.8-py27_0
python: 2.7.9-1
readline: 6.2-2
setuptools: 13.0.2-py27_0
sqlite: 3.8.4.1-0
system: 5.8-1
tk: 8.5.15-0
zlib: 1.2.8-0
Fetching packages ...
setuptools-13. 100% |######################################################################################################################################################################################| Time: 0:00:00 463.16 kB/s
Extracting packages ...
[ COMPLETE ] |########################################################################################################################################################################################################| 100%
Linking packages ...
[ COMPLETE ] |########################################################################################################################################################################################################| 100%
Source cache directory is: /home/users/user/anaconda/conda-bld/src_cache
Downloading source to cache: vtk-5.10.1.tar.gz
An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub issue tracker at:
https://github.com/conda/conda-build/issues
Include the output of the command 'conda info' in your report.
Traceback (most recent call last):
File "/home/users/user/anaconda/bin/conda-build", line 5, in <module>
sys.exit(main())
File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 110, in main
args_func(args, p)
File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 308, in args_func
args.func(args, p)
File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 268, in execute
build.build(m, verbose=not args.quiet, post=post)
File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/build.py", line 304, in build
source.provide(m.path, m.get_section('source'))
File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/source.py", line 221, in provide
unpack(meta)
File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/source.py", line 60, in unpack
src_path = download_to_cache(meta)
File "/home/users/user/anaconda/lib/python2.7/site-packages/conda_build/source.py", line 48, in download_to_cache
download(meta['url'], path)
KeyError: 'url'
The recipe used to build vtk is here. You should modify it to include that package and build with with conda build vtk/.

Categories