I am trying to install the RAM Concept API but receive the following error when I run setup.bat
Building wheels for collected packages: ram-concept Building wheel for ram-concept (setup.py) ... error error: subprocess-exited-with-error
Building wheels for collected packages: ram-concept
Building wheel for ram-concept (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [5 lines of output] running bdist_wheel running build running build_py creating build error: could not create 'build': Access is denied [end of output]
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_py
creating build
error: could not create 'build': Access is denied
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for ram-concept Running setup.py clean for ram-conceptFailed to build ram-conceptInstalling collected packages: ram-concept Running setup.py install for ram-concept ... error error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ram-concept
Running setup.py clean for ram-concept
Failed to build ram-concept
Installing collected packages: ram-concept
Running setup.py install for ram-concept ... error
× Running setup.py install for ram-concept did not run successfully. │ exit code: 1 ╰─> [7 lines of output] running install C:\Users\UKEXS041\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build error: could not create 'build': Access is denied [end of output]
× Running setup.py install for ram-concept did not run successfully.
╰─> [7 lines of output]
running install
C:\Users\UKEXS041\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
note: This error originates from a subprocess, and is likely not a problem with pip.error: legacy-install-failure
error: legacy-install-failure
× Encountered error while trying to install package.╰─> ram-concept
× Encountered error while trying to install package.
╰─> ram-concept
note: This is an issue with the package mentioned above, not pip.hint: See above for output from the failure.
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Any help would be greatly appreciated
Kind regards
Eddy
We are reviewing this and will post more information on this issue soon.
Thanks Karl, I was thinking it could be related to computer permissions rather be than a Bentley issue but someone else in my office has previously installed the API on their machine. I was getting a different error previously until I updated pip and ran pip install wheel.
Thank you for the additional information. One of our developers also thought this could be permissions related.
Can you please investigate the following for us?
1) If you do not have admin rights, have an admin login to the machine, try to install the API, and see if the same error occurs.
2) Let us know if any python version was installed on the machine before you attempted to install the RAM Concept API.
Hello, Eddy. Just checking in to see if you had a chance to investigate the two points in my previous post and, if you had, what the results were.
Hi Karl,
Tried with admin rights, ended up that python couldn't be opened with the admin, apparently even if we installed python for the admin account on my machine it will mean that an admin would need for me to be logged in when I want to run the API. Ended up getting referred to another tech person who is yet to come back to me.
I have python 3.10 installed.
If possible, edit the properties of the folder at the path below and give full control to all users. This should resolve the problem.
C:\Program Files\Bentley\Engineering\RAM Concept CONNECT Edition\RAM Concept CONNECT Edition V8\Python
Thanks Karl I will try this but the IT team seemed pretty adamant that it isn't possible to give me any admin rights
If it helps, we see that granting non-admin users "Write" access permissions only to the Python folder listed in the previous post will resolve the problem.
Answer Verified By: Eddy Sullivan
Without the elevated user permissions mentioned above, can you please run the main.py script in the folder below and let us know if a similar error occurs or if the script runs successfully?
C:\Program Files\Bentley\Engineering\RAM Concept CONNECT Edition\RAM Concept CONNECT Edition V8\Python\examples\walkthrough
Below is the error I get from running main.py
PS C:\Program Files\Bentley\Engineering\RAM Concept CONNECT Edition\RAM Concept CONNECT Edition V8\python\examples\walkthrough> & C:/Users/UKEXS041/AppData/Local/Programs/Python/Python310/python.exe "c:/Program Files/Bentley/Engineering/RAM Concept CONNECT Edition/RAM Concept CONNECT Edition V8/python/examples/walkthrough/main.py" Traceback (most recent call last): File "c:\Program Files\Bentley\Engineering\RAM Concept CONNECT Edition\RAM Concept CONNECT Edition V8\python\examples\walkthrough\main.py", line 22, in <module> from ram_concept.concept import Concept ModuleNotFoundError: No module named 'ram_concept' PS C:\Program Files\Bentley\Engineering\RAM Concept CONNECT Edition\RAM Concept CONNECT Edition V8\python\examples\walkthrough>
I will pass your suggestions on to IT when they get back to me.
Thanks for the help!