Tell us what’s happening:
Describe your issue in detail here.
i get a long error from the packager in replit.
I have already tried installing numpy via the shell but without luck. What am I doing wrong?
The error message I’m getting:
"–> poetry lock --no-update
Resolving dependencies…
→ poetry install
Installing dependencies from lock filePackage operations: 1 install, 0 updates, 0 removals
• Installing numpy (1.18.5)
CalledProcessError
Command '[‘pip’, ‘install’, ‘–no-deps’, ‘some link]’ returned non-zero exit status 1.
at /nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/subprocess.py:526 in run
522│ # We don’t call process.wait() as .exit does that for us.
523│ raise
524│ retcode = process.poll()
525│ if check and retcode:
→ 526│ raise CalledProcessError(retcode, process.args,
527│ output=stdout, stderr=stderr)
528│ return CompletedProcess(process.args, retcode, stdout, stderr)
529│
530│The following error occurred when trying to handle this error:
EnvCommandError
Command [‘pip’, ‘install’, ‘–no-deps’, ‘Some link’] errored with the following return code 1
Output:
Collecting
some link
Downloading numpy-1.18.5.zip (5.4 MB)
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 ‘error’
ERROR: Command errored out with exit status 1:
command: /nix/store/lwzzgbnj41d657lpxczk6l5f7d5zcnj1-python3-3.10.11/bin/python3.10 /nix/store/s4cbcvnm0miclkjwj6g8fxcn8fgb78s1-python3.10-pip-21.2.dev0/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpudlwdirl
cwd: /tmp/pip-req-build-diyoll49
Complete output (54 lines):
Running from numpy source directory.
:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/tmp/pip-req-build-diyoll49/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
required_version = LooseVersion(‘0.29.14’)
/tmp/pip-req-build-diyoll49/tools/cythonize.py:77: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cython_version) < required_version:Error compiling Cython file: ------------------------------------------------------------ ... for i in range(1, RK_STATE_LEN): self.rng_state.key[i] = val[i] self.rng_state.pos = i self._bitgen.state = &self.rng_state self._bitgen.next_uint64 = &mt19937_uint64 ^ ------------------------------------------------------------ _mt19937.pyx:138:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to type 'uint64_t (void *) except? -1 nogil'. Processing numpy/random/_bounded_integers.pxd.in Processing numpy/random/_mt19937.pyx Traceback (most recent call last): File "/tmp/pip-req-build-diyoll49/tools/cythonize.py", line 238, in <module> main() File "/tmp/pip-req-build-diyoll49/tools/cythonize.py", line 234, in main find_process_files(root_dir) File "/tmp/pip-req-build-diyoll49/tools/cythonize.py", line 225, in find_process_files process(root_dir, fromfile, tofile, function, hash_db) File "/tmp/pip-req-build-diyoll49/tools/cythonize.py", line 191, in process processor_function(fromfile, tofile) File "/tmp/pip-req-build-diyoll49/tools/cythonize.py", line 80, in process_pyx subprocess.check_call( File "/nix/store/lwzzgbnj41d657lpxczk6l5f7d5zcnj1-python3-3.10.11/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/nix/store/lwzzgbnj41d657lpxczk6l5f7d5zcnj1-python3-3.10.11/bin/python3.10', '-m', 'cython', '-3', '--fast-fail', '-o', '_mt19937.c', '_mt19937.pyx']' returned non-zero exit status 1. Cythonizing sources Traceback (most recent call last): File "/nix/store/s4cbcvnm0miclkjwj6g8fxcn8fgb78s1-python3.10-pip-21.2.dev0/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module> main() File "/nix/store/s4cbcvnm0miclkjwj6g8fxcn8fgb78s1-python3.10-pip-21.2.dev0/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/nix/store/s4cbcvnm0miclkjwj6g8fxcn8fgb78s1-python3.10-pip-21.2.dev0/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 133, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) File "/tmp/pip-build-env-29stllvl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 396, in prepare_metadata_for_build_wheel self.run_setup() File "/tmp/pip-build-env-29stllvl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "/tmp/pip-build-env-29stllvl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup exec(code, locals()) File "<string>", line 488, in <module> File "<string>", line 469, in setup_package File "<string>", line 275, in generate_cython RuntimeError: Running cythonize failed! ----------------------------------------
WARNING: Discarding
Some link.
Command errored out with exit status 1: /nix/store/lwzzgbnj41d657lpxczk6l5f7d5zcnj1-python3-3.10.11/bin/python3.10 /nix/store/s4cbcvnm0miclkjwj6g8fxcn8fgb78s1-python3.10-pip-21.2.dev0/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpudlwdirl Check the logs for full command output.
ERROR: Command errored out with exit status 1: /nix/store/lwzzgbnj41d657lpxczk6l5f7d5zcnj1-python3-3.10.11/bin/python3.10 /nix/store/s4cbcvnm0miclkjwj6g8fxcn8fgb78s1-python3.10-pip-21.2.dev0/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpudlwdirl Check the logs for full command output.at /nix/store/6lfk2kyiijr9854nvfmxc28jz49vacrs-poetry-in-venv/env/lib/python3.10/site-packages/poetry/utils/env.py:1523 in run
1519│ output = “”
1520│ else:
1521│ output = subprocess.check_output(cmd, stderr=stderr, env=env, **kwargs)
1522│ except CalledProcessError as e:
→ 1523│ raise EnvCommandError(e, input=input)
1524│
1525│ return decode(output)
1526│
1527│ def execute(self, bin: str, *args: str, **kwargs: Any) → int:The following error occurred when trying to handle this error:
PoetryException
Failed to install
Some linkat /nix/store/6lfk2kyiijr9854nvfmxc28jz49vacrs-poetry-in-venv/env/lib/python3.10/site-packages/poetry/utils/pip.py:27 in pip_install_from_url
23│
24│ try:
25│ return environment.run_pip(*args)
26│ except EnvCommandError as e:
→ 27│ raise PoetryException(f"Failed to install {url}") from e
28│
29│ def pip_install(
30│ path: Path,
31│ environment: Env,exit status 1
Your code so far
have not written any code into the template
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Challenge Information:
Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator