biolab / orange3

🍊 :bar_chart: :bulb: Orange: Interactive data analysis
https://orangedatamining.com
Other
4.85k stars 1.01k forks source link

Error when trying to install Associate #5386

Closed pepsng closed 3 years ago

pepsng commented 3 years ago

The image is pretty much self explanatory. Running on Windows 10, 64bit orange installer with no PATH association, also running Anaconda on the same laptop. First time I use Orange for an assignment and throws the error.

image

Any clues? already did a full conda/orange/python wipe and clean install.

pepsng commented 3 years ago

[New Update] Tried to install it via pip install Orange3-Associate in Anaconda Prompt, didn't work and asked for Microsoft Visual C++ 2014 or greater. Installed latest VC_redist, same error.

Building wheels for collected packages: bottleneck Building wheel for bottleneck (PEP 517) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\ppino\miniconda3\python.exe' 'C:\Users\ppino\miniconda3\lib\site-packages\pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\ppino\AppData\Local\Temp\tmptf2owgpm' cwd: C:\Users\ppino\AppData\Local\Temp\pip-install-3mnwlj94\bottleneck Complete output (51 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\bottleneck copying bottleneck_pytesttester.py -> build\lib.win-amd64-3.8\bottleneck copying bottleneck_version.py -> build\lib.win-amd64-3.8\bottleneck copying bottleneck__init.py -> build\lib.win-amd64-3.8\bottleneck creating build\lib.win-amd64-3.8\bottleneck\benchmark copying bottleneck\benchmark\autotimeit.py -> build\lib.win-amd64-3.8\bottleneck\benchmark copying bottleneck\benchmark\bench.py -> build\lib.win-amd64-3.8\bottleneck\benchmark copying bottleneck\benchmark\bench_detailed.py -> build\lib.win-amd64-3.8\bottleneck\benchmark copying bottleneck\benchmark__init__.py -> build\lib.win-amd64-3.8\bottleneck\benchmark creating build\lib.win-amd64-3.8\bottleneck\slow copying bottleneck\slow\move.py -> build\lib.win-amd64-3.8\bottleneck\slow copying bottleneck\slow\nonreduce.py -> build\lib.win-amd64-3.8\bottleneck\slow copying bottleneck\slow\nonreduce_axis.py -> build\lib.win-amd64-3.8\bottleneck\slow copying bottleneck\slow\reduce.py -> build\lib.win-amd64-3.8\bottleneck\slow copying bottleneck\slow\init.py -> build\lib.win-amd64-3.8\bottleneck\slow creating build\lib.win-amd64-3.8\bottleneck\src copying bottleneck\src\bn_config.py -> build\lib.win-amd64-3.8\bottleneck\src copying bottleneck\src\bn_template.py -> build\lib.win-amd64-3.8\bottleneck\src copying bottleneck\src\init.py -> build\lib.win-amd64-3.8\bottleneck\src creating build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\input_modification_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\list_input_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\memory_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\move_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\nonreduce_axis_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\nonreduce_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\reduce_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\scalar_input_test.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\util.py -> build\lib.win-amd64-3.8\bottleneck\tests copying bottleneck\tests\init__.py -> build\lib.win-amd64-3.8\bottleneck\tests UPDATING build\lib.win-amd64-3.8\bottleneck/_version.py set build\lib.win-amd64-3.8\bottleneck/_version.py to '1.3.2' running build_ext running config compiling '_configtest.c':

int attribute((optimize("O3"))) have_attribute_optimize_opt_3(void*);

int main(void) { return 0; }

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for bottleneck Failed to build bottleneck ERROR: Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly

I'm about to hit something D:<

ajdapretnar commented 3 years ago

I am slightly confused. You installed Orange with .exe and you have Anaconda pre-installed? (this could be one source of the problem) But also you have tried installing via Anaconda? Did you follow the instructions for installing Orange on Anaconda? And you tried to install with pip in that environment?

ales-erjavec commented 3 years ago

This is strange. In the dialog you have python -m pip install rules association Orange3-Associate==1.1.8. The rules association part should not be there in the command. The error comes from trying to install a non-existing association package. rules is a completely unrelated package. You might have been able to add the rules to the installation via Add-more button/dialog, but not association.

What steps exactly did you perform for installation?

ajdapretnar commented 3 years ago

@ales-erjavec Thanks for noticing this. We noticed the same issue in https://github.com/biolab/orange3-text/issues/633. Seems like Orange adds some arguments randomly in the add-on dialogue?

PrimozGodec commented 3 years ago

@ales-erjavec we have seen the same error already https://github.com/biolab/orange3-text/issues/633. In this case word, text was inserted in the command pip install text orange3-text. I and @ajdapretnar also taught that it might be due to using Add-more but I think it is not the case (since the person reporting the issue tried several different ways and always got the same behavior). I tried to reproduce the error but couldn't.

I think it is a hidden bug in Orange. Hope someone from the team can reproduce it.

ales-erjavec commented 3 years ago

[New Update] Tried to install it via pip install Orange3-Associate in Anaconda Prompt, didn't work and asked for...

If you manage Orange installation through the command line be sure to work in the correct environment (Orange is installed in a separate environment distinct from the anaconda base/root). There should be a Orange Command Prompt entry in the start menu. Run any commands in that.

pepsng commented 3 years ago

I had anaconda previously installed. Then downloaded and ran Orange.exe from the page, which installed miniconda. At this point, Orange ran well but couldn't install Associate, other add on Geo was running smoothly. Cleaned everything. Now I just installed anaconda again, and ran the conda clean --all ; conda clean --packages ; conda clean --tarballs

pepsng commented 3 years ago

This is strange. In the dialog you have python -m pip install rules association Orange3-Associate==1.1.8. The rules association part should not be there in the command. The error comes from trying to install a non-existing association package. rules is a completely unrelated package. You might have been able to add the rules to the installation via Add-more button/dialog, but not association.

What steps exactly did you perform for installation?

just ran the .exe file from the website. Nothing fancy.

ales-erjavec commented 3 years ago

@pepsng Can you open Options->Settings from the Orange's menu bar and in the Add-ons tab check that the Pip Install arguments: edit field is empty.

pepsng commented 3 years ago

@pepsng Can you open Options->Settings from the Orange's menu bar and in the Add-ons tab check that the Pip Install arguments: edit field is empty.

Now it won't even open :/ I think I'll learn to use Rstudio properly and reinstall Orange after formatting my SSD in a couple months. Thanks anyways guys!

pepsng commented 3 years ago

@pepsng Can you open Options->Settings from the Orange's menu bar and in the Add-ons tab check that the Pip Install arguments: edit field is empty.

This did the job. After reseting my whole python/conda programs, installed miniconda then the navigator from prompt, and everything works just fine now. Thanks a lot!