Jarvis icon indicating copy to clipboard operation
Jarvis copied to clipboard

Installation failed: this should not have happened

Open edricantoine opened this issue 3 years ago • 11 comments

When I cloned the repository and ran the command python installer from the terminal, I recieve this error message:

Installation failed with unexpected error - This should not have happened. Please check logs at "/var/folders/yl/1y_2z49d7ks9xn5dscy_t9800000gn/T/tmpcu5fq7oc". If you open a bug report, please include this file.

I have tried both python installer and python3 installer, but get the same message each time. I am on Mac OS, if that helps any. Any support would be appreciated. Thanks!

edricantoine avatar Feb 13 '22 20:02 edricantoine

Can you upload this file:

Please check logs at "/var/folders/yl/1y_2z49d7ks9xn5dscy_t9800000gn/T/tmpcu5fq7oc". If you open a bug report, please include this file.

pnhofmann avatar Feb 20 '22 18:02 pnhofmann

I am not sure where to find this file, as I can't seem to find the yl folder in the project directory.

edricantoine avatar Feb 20 '22 18:02 edricantoine

Also, when I try to run source setup.h, I get a much lengthier error message, but I think this is the most important part of it:

ERROR: Can not execute setup.py since setuptools is not available in the build environment.\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: metadata-generation-failed\n\n\xd7 Encountered error while generating package metadata.\n\u2570\u2500> See above for output.\n\nnote: This is an issue with the package mentioned above, not pip.\nhint: See above for details.\n', 1891, 1892, 'ordinal not in range(128)')

edricantoine avatar Feb 20 '22 18:02 edricantoine

Could someone get back to me on this issue? I would like to contribute to this project but need to get the application running on my end first. Thank you!

edricantoine avatar Feb 27 '22 03:02 edricantoine

Sorry, it's a bit complicated for me since I don't have a Mac. But Okay; it says it is missing setuptools for some reason. Can you try:

cd JARVIS_FOLDER
source env/bin/activate
python3 -m ensurepip --default-pip
python3 -m pip install --upgrade pip setuptools wheel
# and if above command works:
pip3 install -U -r installer/requirements.txt

(So basically switch to Jarvis virtualenv and do things descriped here: https://packaging.python.org/en/latest/tutorials/installing-packages/#requirements-for-installing-packages)

pnhofmann avatar Feb 28 '22 11:02 pnhofmann

Hello, I followed your given instructions. Once I entered the virtual environment, the ensurepip and pip install commands both worked, and I double-checked to make sure that setuptools was installed, but the last command still did not work. This is the error message I recieved: Screen Shot 2022-02-28 at 9 39 55 AM Both python installer and python3 installer still display the same error messages as before.

Thank you for your help!

edricantoine avatar Feb 28 '22 17:02 edricantoine

I'm having (probably) the same error, I don't know what else to attach other than the file it said to open and a picture of the error. image tmpk2cb0gla.txt

AngelCode-dev avatar Mar 04 '22 03:03 AngelCode-dev

Okay, funny - the error is different, but the problem appears to be in pathlib, too.

https://pypi.org/project/pathlib/

I just noticed two things:

  • In Python 3.4, pathlib is now part of the standard library.
  • Attention: this backport module isn’t maintained anymore. If you want to report issues or contribute patches, please consider the pathlib2 project instead.

So basically:

Edit installer/requirements.txt

Replace line

pathlib

with

pathlib2; python_version < '3.4'

And check if it works ;).

pnhofmann avatar Mar 04 '22 11:03 pnhofmann

Worked perfectly! Thanks for the fix!

edricantoine avatar Mar 04 '22 17:03 edricantoine

This worked for me as well. I've noted it's fixed on the master branch - but it hasn't been on the dev branch yet...

shadow7412 avatar Mar 20 '22 11:03 shadow7412