Arches installation

72 views
Skip to first unread message

Elishai Cohen

unread,
Jan 15, 2020, 1:15:38 PM1/15/20
to Arches Project
Hi all,

My name is Elishai Cohen, I just joined the Israel Antiquities Authority team.

I'm using a cloud virtual machine, operation system - ubuntu 18.04 and I'm trying to download Arches.

I used the sh file for software dependencies.
while I'm trying to install Arches I'm getting the next error message:

"
Collecting arches
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /tmp/Projects/ENV/bin/python /tmp/Projects/ENV/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpenPZ7I
       cwd: /tmp/pip-install-g7Ovpw/arches
  Complete output (22 lines):
  Traceback (most recent call last):
    File "/tmp/Projects/ENV/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/tmp/Projects/ENV/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/Projects/ENV/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/Projects/ENV/local/lib/python2.7/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/Projects/ENV/local/lib/python2.7/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires
      self.run_setup()
    File "/tmp/Projects/ENV/local/lib/python2.7/site-packages/setuptools/build_meta.py", line 237, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/tmp/Projects/ENV/local/lib/python2.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 18, in <module>
      version = __import__("arches").__version__
    File "/tmp/pip-install-g7Ovpw/arches/arches/__init__.py", line 2, in <module>
      from arches.setup import get_version
    File "/tmp/pip-install-g7Ovpw/arches/arches/setup.py", line 5, in <module>
      import urllib.request, urllib.error, urllib.parse
  ImportError: No module named request
  ----------------------------------------
ERROR: Command errored out with exit status 1: /tmp/Projects/ENV/bin/python /tmp/Projects/ENV/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpenPZ7I Check the logs for full command output."

I installed requet/requets module.

I appreciate it if you could advise me.

Best regards,
Elishai Cohen

Rob Gaston

unread,
Jan 15, 2020, 1:20:21 PM1/15/20
to Elishai Cohen, Arches Project
Hi Elishai,

It appears from the output that you posted that you are trying to install Arches 5 on Python 2.7.


I hope that helps!
- Rob

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archesprojec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/bf7193ac-6088-498c-8b33-3aac880c397d%40googlegroups.com.

Elishai Cohen

unread,
Jan 15, 2020, 2:53:43 PM1/15/20
to Rob Gaston, Arches Project
Hi Rob,

Thanks for your answer.
I installed a new version of python and change python priority as expected.

I'm not sure why but Arches installation still uses Python 2.7 version.


Best,
Elishai

Rob Gaston

unread,
Jan 15, 2020, 3:02:29 PM1/15/20
to Elishai Cohen, Arches Project
Hi Elishai,

I’m no Windows expert, but it sounds like “pip” on your path still points to your old python 2.7 install. I’m unsure what "change python priority as expected” means, but Arches will simply use whichever binary you specify (ie whichever binary you use to run the command).

I’m not sure how to fix your path on Windows (perhaps a Windows user can chime in here), but (if you know where python 3 is installed) you could also just use your python 3 binary directly instead of modifying your path.

- Rob


Elishai Cohen

unread,
Jan 15, 2020, 3:14:29 PM1/15/20
to Rob Gaston, Arches Project
Hi Rob,

I'm using a hosted cloud server (with ubuntu 18.04)


  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /usr/bin/python3.7   2         auto mode
  1            /usr/bin/python3.6   1         manual mode
* 2            /usr/bin/python3.7   2         manual mode


Best regards,
Elishai Cohen

Rob Gaston

unread,
Jan 15, 2020, 3:19:19 PM1/15/20
to Elishai Cohen, Arches Project
Hi Elishai,

Sorry, I got mixed up with another thread.  I’m assuming the issue is not with “python" on your path, but with “pip”.

If “python” in fact points to your python3 binary, then you can install using the python binary directly (instead of “pip”) by running:

python -m pip install arches

I know in some cases, python 3 is given it’s own alias “python3”, which might also be worth a try...

- Rob

Survey Wessex

unread,
Jan 19, 2020, 1:13:47 PM1/19/20
to arches...@googlegroups.com
 Hi Elishai,

I am in the same situation as you using an AWS cloud server running ubuntu 18.04.
I can second Rob. Try using python3  and pip3 (instead of python and pip).
I did that and it worked flawlessly.

Jens
 
Reply all
Reply to author
Forward
0 new messages