RAM Concept API Install

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

× 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-concept
Failed to build ram-concept
Installing collected packages: ram-concept
Running setup.py install for ram-concept ... error
error: subprocess-exited-with-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]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× 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.

Any help would be greatly appreciated

Kind regards

Eddy

Parents Reply Children
  • 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!

  • IT granted this today, looks to be sorted thank you!

    Building wheels for collected packages: ram-concept
      Building wheel for ram-concept (setup.py) ... done
      Created wheel for ram-concept: filename=ram_concept-8.3.0-py3-none-any.whl size=102532 sha256=cbae39f2c3dc3a3ef4a5028b4c44a6781680077adfd363a18b93f375f7fb77b4
      Stored in directory: C:\Users\UKEXS041\AppData\Local\Temp\pip-ephem-wheel-cache-gl0smzds\wheels\79\f3\ba\312176804ff03033c3101d0ade86f343b3d0e9246a987e845c
    Successfully built ram-concept
    Installing collected packages: ram-concept
    Successfully installed ram-concept-8.3.0

  • I had the same issue. This resolved it for me. Here's a picture of the options I had to edit in the properties dialog to get it to work.