yingji / repo_prova2

0 stars 0 forks source link

add readme #1

Open yingji opened 1 month ago

yingji commented 1 month ago

@scrooj add readme.md with some good code practices

scrooj[bot] commented 1 month ago

I am @scrooj Error details: Could not parse SQLAlchemy URL from string ''postgresql://jenres:e14dbea0-d62f-4481-9ed3-58f2a61e622e@localhost:5432/jenres''. Stacktrace: Traceback (most recent call last): File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\listen.py", line 43, in process_issue openai_api_key = secrets.get_secret("openai_api_key") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\secrets\secrets.py", line 121, in get_secret with get_db_session(self.database_url) as db_session: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\secrets\secrets_database.py", line 23, in get_db_session engine = create_engine(database_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 2, in create_engine File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\util\deprecations.py", line 281, in warned return fn(*args, **kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\engine\create.py", line 548, in create_engine u = _url.make_url(url) ^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\engine\url.py", line 838, in make_url return _parse_url(name_or_url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\engine\url.py", line 904, in _parse_url raise exc.ArgumentError( sqlalchemy.exc.ArgumentError: Could not parse SQLAlchemy URL from string ''postgresql://jenres:e14dbea0-d62f-4481-9ed3-58f2a61e622e@localhost:5432/jenres''

scrooj[bot] commented 1 month ago

I am @scrooj Error details: Cmd('git') failed due to: exit code(128) cmdline: git clone -v --branch=main -c credential.helper= -c credential.https://github.com.password=ghs_FRh1mg6ta87t0IAPXdSDPIB5aTmk8d1KM3VH -c user.email=jenres@res-it.com -c user.name=Jenres -- https://*****:*****@github.com/yingji/repo_prova2.git tmpdir stderr: 'fatal: destination path 'tmpdir' already exists and is not an empty directory. '. Stacktrace: Traceback (most recent call last): File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\listen.py", line 39, in process_issue git_repo_dir = git_platform_repo.clone(branch, tmpdir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\github_platform.py", line 386, in clone return GitUtils.clone_from_https( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\git_utils.py", line 30, in clone_from_https repo_dir = Repo.clone_from( ^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\repo\base.py", line 1525, in clone_from return cls._clone( ^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\repo\base.py", line 1396, in _clone finalize_process(proc, stderr=stderr) File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\util.py", line 504, in finalize_process proc.wait(kwargs) File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\cmd.py", line 834, in wait raise GitCommandError(remove_password_if_present(self.args), status, errstr) git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git clone -v --branch=main -c credential.helper= -c credential.https://github.com.password=ghs_FRh1mg6ta87t0IAPXdSDPIB5aTmk8d1KM3VH -c user.email=jenres@res-it.com -c user.name=Jenres -- https://**:@github.com/yingji/repo_prova2.git tmpdir stderr: 'fatal: destination path 'tmpdir' already exists and is not an empty directory. '

scrooj[bot] commented 1 month ago

I am @scrooj Error details: Cmd('git') failed due to: exit code(128) cmdline: git clone -v --branch=main -c credential.helper= -c credential.https://github.com.password=ghs_v3YdnyIWTkgZjKPPUQRpCxRF7feyXW0tcE0M -c user.email=jenres@res-it.com -c user.name=Jenres -- https://*****:*****@github.com/yingji/repo_prova2.git tmpdir stderr: 'fatal: destination path 'tmpdir' already exists and is not an empty directory. '. Stacktrace: Traceback (most recent call last): File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\listen.py", line 39, in process_issue git_repo_dir = git_platform_repo.clone(branch, tmpdir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\github_platform.py", line 386, in clone return GitUtils.clone_from_https( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\git_utils.py", line 30, in clone_from_https repo_dir = Repo.clone_from( ^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\repo\base.py", line 1525, in clone_from return cls._clone( ^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\repo\base.py", line 1396, in _clone finalize_process(proc, stderr=stderr) File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\util.py", line 504, in finalize_process proc.wait(kwargs) File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\git\cmd.py", line 834, in wait raise GitCommandError(remove_password_if_present(self.args), status, errstr) git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git clone -v --branch=main -c credential.helper= -c credential.https://github.com.password=ghs_v3YdnyIWTkgZjKPPUQRpCxRF7feyXW0tcE0M -c user.email=jenres@res-it.com -c user.name=Jenres -- https://**:@github.com/yingji/repo_prova2.git tmpdir stderr: 'fatal: destination path 'tmpdir' already exists and is not an empty directory. '

scrooj[bot] commented 1 month ago

I am @scrooj Error details: Could not parse SQLAlchemy URL from string ''postgresql://jenres:e14dbea0-d62f-4481-9ed3-58f2a61e622e@localhost:5432/jenres''. Stacktrace: Traceback (most recent call last): File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\platforms\listen.py", line 43, in process_issue openai_api_key = secrets.get_secret("openai_api_key") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\secrets\secrets.py", line 121, in get_secret with get_db_session(self.database_url) as db_session: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Documents\res-it\RITF\jenres\jenres\secrets\secrets_database.py", line 23, in get_db_session engine = create_engine(database_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 2, in create_engine File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\util\deprecations.py", line 281, in warned return fn(*args, **kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\engine\create.py", line 548, in create_engine u = _url.make_url(url) ^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\engine\url.py", line 838, in make_url return _parse_url(name_or_url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wuy\Anaconda3\envs\jenres\Lib\site-packages\sqlalchemy\engine\url.py", line 904, in _parse_url raise exc.ArgumentError( sqlalchemy.exc.ArgumentError: Could not parse SQLAlchemy URL from string ''postgresql://jenres:e14dbea0-d62f-4481-9ed3-58f2a61e622e@localhost:5432/jenres''