Giter Club home page Giter Club logo

Comments (11)

reyery avatar reyery commented on August 30, 2024

Hi @KFSchlager,

For the "+ Browse for databases path" button bug, we have fixed it for the GUI but you would have to manually update it on your end for now, without having to reinstall it.

You can extract the attached file and replace the app.asar file that is found in your CEA installation path:
e.g.

C:\Users\foobar\Documents\CityEnergyAnalyst\dashboard\resources\app.asar

app.asar.zip

Let me know if that works for you.

from cityenergyanalyst.

KFSchlager avatar KFSchlager commented on August 30, 2024

Hi @reyery
yes, that worked. Thank you very much!

from cityenergyanalyst.

KFSchlager avatar KFSchlager commented on August 30, 2024

Hi @reyery

the PermissionError still occurs, but the "+ Browse for databases path" button works now.

from cityenergyanalyst.

reyery avatar reyery commented on August 30, 2024

Hi @KFSchlager, would you mind sharing me the whole log of the script that produces the error? I am not able to reproduce it on my end.

from cityenergyanalyst.

reyery avatar reyery commented on August 30, 2024

I will close this issue for now. Let me know if it is still an issue.

from cityenergyanalyst.

moaapplepie avatar moaapplepie commented on August 30, 2024

Hej!
This is also an issue for me, and it does not work to replace the app.asar for me, when I try it then I can't open the CEA dashboard anymore. Only way to get back into the CEA is to re-install it, but face the same issue when I try to import any database.

This is the error:

Job Output for 1 - data-initializer
City Energy Analyst version 3.35.4
Running `cea data-initializer` with the following parameters:
- general:scenario = C:\Users\moma0061\Videos\reference-case-open\TEST0307\test1
  (default: {general:project}\{general:scenario-name})
Traceback (most recent call last):
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\setuptools\_distutils\file_util.py", line 33, in _copy_file_contents
    os.unlink(dst)
PermissionError: [WinError 32] Det går inte att komma åt filen eftersom den
används av en annan process: 'C:\\Users\\moma0061\\Videos\\reference-case-open\\TEST0307\\test1\\inputs\\technology\\archetypes\\CONSTRUCTION_STANDARD.xlsx'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\worker.py", line 146, in worker
    run_job(config, job, server)
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\worker.py", line 108, in run_job
    script(config=config, **parameters)
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\api.py", line 60, in __call__
    self._runner.__call__(*args, **kwargs)
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\api.py", line 38, in script_runner
    script_module.main(config)
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\datamanagement\data_initializer.py", line 70, in main
    data_initializer(locator=locator,
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\datamanagement\data_initializer.py", line 42, in data_initializer
    copy_tree(complete_databases_path, complete_output_directory)
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\setuptools\_distutils\dir_util.py", line 185, in copy_tree
    copy_file(
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\setuptools\_distutils\file_util.py", line 163, in copy_file
    _copy_file_contents(src, dst)
  File "C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\setuptools\_distutils\file_util.py", line 35, in _copy_file_contents
    raise DistutilsFileError(
distutils.errors.DistutilsFileError: could not delete 'C:\Users\moma0061\Videos\reference-case-open\TEST0307\test1\inputs\technology\archetypes\CONSTRUCTION_STANDARD.xlsx': Det går inte att komma åt filen eftersom den
används av en annan pro- data-initializer:databases-path = C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\databases\CH
  (default: )
- data-initializer:databases = ['archetypes', 'assemblies', 'components']
  (default: ['archetypes', 'assemblies', 'components'])
Running data-intializer with scenario = C:\Users\moma0061\Videos\reference-case-open\TEST0307\test1
Running data-intializer with databases located in = C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\databases\CH
Copying databases from C:\Users\moma0061\Videos\dependencies\micromamba\envs\cea\lib\site-packages\cea\databases\CH
Copying databases to C:\Users\moma0061\Videos\reference-case-open\TEST0307\test1\inputs\technology

from cityenergyanalyst.

ShiZhongming avatar ShiZhongming commented on August 30, 2024

Hi @moaapplepie

Thanks for raising this.
It looks like it is not a unique case now..

Currently, @reyery tried a few times to replicate the error and we still could not..We will dig into it.
During the installation process, did you select "install for everyone" or "install for me only"?

from cityenergyanalyst.

moaapplepie avatar moaapplepie commented on August 30, 2024

Hej @ShiZhongming and @reyery.

Thank you for your swift response, and help with this issue! I think I chose "install for me only" :)

from cityenergyanalyst.

KFSchlager avatar KFSchlager commented on August 30, 2024

Hi,
I think i chose "install for me only" too

from cityenergyanalyst.

KFSchlager avatar KFSchlager commented on August 30, 2024

My error log is the following:


City Energy Analyst version 3.35.4
Running cea data-initializer with the following parameters:

  • general:scenario = C:\Users\user\Downloads\08032024test\1test
    (default: {general:project}{general:scenario-name})
    Traceback (most recent call last):
    File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\setuptools_distutils\file_util.py", line 33, in _copy_file_contents
    os.unlink(dst)
    PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\Users\user\Downloads\08032024test\1test\inputs\technology\components\CONVERSION.xlsx'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\worker.py", line 146, in worker
run_job(config, job, server)
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\worker.py", line 108, in run_job
script(config=config, **parameters)
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\api.py", line 60, in call
self._runner.call(*args, **kwargs)
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\api.py", line 38, in script_runner
script_module.main(config)
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\datamanagement\data_initializer.py", line 70, in main
data_initializer(locator=locator,
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\datamanagement\data_initializer.py", line 48, in data_initializer
copy_tree(complete_databases_path, complete_output_directory)
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\setuptools_distutils\dir_util.py", line 185, in copy_tree
copy_file(
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\setuptools_distutils\file_util.py", line 163, in copy_file
_copy_file_contents(src, dst)
File "C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\setuptools_distutils\file_util.py", line 35, in _copy_file_contents
raise DistutilsFileError(
distutils.errors.DistutilsFileError: could not delete 'C:\Users\user\Downloads\08032024test\1test\inputs\technology\components\CONVERSION.xlsx': Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird

  • data-initializer:databases-path = C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\databases\CH
    (default: )
  • data-initializer:databases = ['archetypes', 'assemblies', 'components']
    (default: ['archetypes', 'assemblies', 'components'])
    Running data-intializer with scenario = C:\Users\user\Downloads\08032024test\1test
    Running data-intializer with databases located in = C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\databases\CH
    Copying databases from C:\Program Files\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\cea\databases\CH
    Copying databases to C:\Users\user\Downloads\08032024test\1test\inputs\technology

from cityenergyanalyst.

reyery avatar reyery commented on August 30, 2024

This should be resolved in the new version v3.35.5. Let me know if it is still an issue.

from cityenergyanalyst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.