반응형

undefined method `deprecator' for ActiveSupport:Module (NoMethodError)
Did you mean?  deprecate_constant

 

[문제]

- m1 pro

 

React Native 개발을 위해 cocoapods 을 설치 후 cocoapods version 확일은 하는 도중에 확인한 에러 메세지 입니다.

 

코드 순서

> sudo gem install cocoapods

> pod --version

erroor!

 

[해결]

해결을 하기 위해서 찾아보니 activesupport current version 의 문제였습니다. downgrading 작업을 진행하면 더이상 에러가 발생하지 않습니다.

 

해결 코드

> sudo gem uninstall activesupport

> sudo gem install activesupport --verion 7.08

 

반응형
반응형

반응형

Spring-docs + WebSecurityConfig

Spring-docs를 사용할려고 추가하고 나서 실행해보니 Failed to load remote configuration.이 발생했습니다.

 

해결

WebSecurityConfig에 WebSecurityCustomizer에서 설정을 해주면 됩니다.

@Bean
public WebSecurityCustomizer ignoringCustomizer() {
	return (web) -> web.ignoring().antMatchers("/swagger-ui/**", "/v3/api-docs/**");
}
반응형

'SpringBoot' 카테고리의 다른 글

스프링 표준 코딩 작성 방법  (0) 2023.07.05
[error]Sequence "MEMBER_SEQ" not found; SQL statement:  (0) 2023.06.04
반응형
반응형

문제

현재 Mac pro1에 vscode에서 javac를 통해 컴파일하고 나서 실행할려고 했는데 컴파일에서 cannot find symbol error가 발생했습니다. 원인은 package 때문에 발생했습니다.

 

해결

package를 제거해주거나 위치 설정을 잡아 줍니다.

반응형

'Java' 카테고리의 다른 글

Java 7 functions  (0) 2023.06.18
JDK, JRE, JVM이란?  (0) 2023.06.15
[ERROR]Illegal modifier for the interface field Observer.name; only public, static & final are permitted  (0) 2023.05.29
AOP이란?  (0) 2023.05.11
반응형

 

문제

postman에서 get 방식 호출하는데 

Cloud Agent Error: Can not send requests to reserved address. Make sure address is publicly accessible or select a different agent.

발생했습니다. 

이유는 postman에서 호출하는건 localhost가 아니라서 인거 같습니다.

 

해결

Desktop을 다운 받고 실행하니 해결되었습니다.

반응형

'IT' 카테고리의 다른 글

Build, Deploy, Complie  (0) 2023.06.13
WEB-INF와 META-INF 차이  (0) 2023.06.13
REST란?  (0) 2023.05.11
SOAP이란?  (0) 2023.05.11
[git]There isn’t anything to compare  (0) 2023.05.08
반응형
반응형

문제

먼저 GitHub에서 repository 생성하고 나면 자동으로 main branch가 생성이 됩니다.

이후, 터미널에서 git init하면 master branch로 시작되어 commit 이후 push하게 되면 GitHub에서 master branch 내용을 main branch로 넘기는 과정에서 error가 발생하게 됩니다.

 

해결

아래 내용을 순서대로 진행하면 됩니다.

> git checkout master

> git branch main master -f

> git checkout main

> git push origin main -f
반응형

'IT' 카테고리의 다른 글

REST란?  (0) 2023.05.11
SOAP이란?  (0) 2023.05.11
Jupyter Notebook not trusted  (0) 2023.05.06
'list' object is not callable  (0) 2023.04.23
fatal: 관계 없는 커밋 내역의 병합을 거부합니다  (0) 2023.04.20
반응형

반응형

 

문제

현재 mac m1 pro 사용중에 from tensorflow.keras.models import Sequential 호출해서 사용하는데

Failed to get CPU frequency: 0 Hz error가 발생했습니다.

 

 

해결

원인은 GPU를 사용하다 m1 pro에는 gpu 설정하는게 달라 발생하는 에러인거 같습니다.

그래서 tf.config.set_visible_devices() 사용해서 CPU만 사용하도록 수정했습니다.

tf.config.set_visible_devices([], 'GPU')

저는 이렇게 설정하니 에러가 해결되었습니다.

https://infoinhere.tistory.com/60

 

tf.config.set_visible_devices()

tf.config.set_visible_devices()이란? tf.config.set_visible_devices( devices, device_type=None ) device는 실제 GPU 장비의 이름이 들어가고, device_type에는 CPU 또는 GPU를 넣습니다. 만약 CPU만 사용할려면 device에 빈 리스트

infoinhere.tistory.com

 

반응형

'머신러닝 & 딥러닝' 카테고리의 다른 글

SVM  (0) 2023.05.14
Feature space  (0) 2023.05.14
tf.config.set_visible_devices()  (0) 2023.05.06
[library] seaborn  (0) 2023.04.28
AUC란?  (0) 2023.04.26
반응형
반응형

Jupyter Notebook not trusted

 

상황

Jupyter Notebook에서 파일을 열었을 때 Not trusted error가 발생하는 상황입니다.

 

해결

jupyter notebook을 열 때 jupyter trust로 열면 해결된다고 하는데.. 해결되지 않았습니다.

다른 방법으로는 아웃풋을 다 삭제 후 다시 노트북을 여는건데 아웃풋을 삭제하지 않고 열 수 있는게 좋을꺼 같아 시도해보지 않았습니다.

 

 

반응형

'IT' 카테고리의 다른 글

SOAP이란?  (0) 2023.05.11
[git]There isn’t anything to compare  (0) 2023.05.08
'list' object is not callable  (0) 2023.04.23
fatal: 관계 없는 커밋 내역의 병합을 거부합니다  (0) 2023.04.20
fatal: couldn't find remote ref master  (0) 2023.04.20
반응형
반응형

문제

glob()을 통해 파일을 가져올려고 하는데 TypeError: path should be path-like or io.BytesIO, not <class 'list'> 발생했습니다.

 

코드

sign = list(test_path.glob(f'{i}/*'))

 

예상 원인

뒤에 따라오는 from tensorflow.keras.preprocessing.image import load_img 에서 에러가 발생하고 있었습니다.

 

해결

load_img() 함수에 list를 넣어서 발생한거 같아 수정했더니 에러가 발생하지 않았습니다.

 

* load_img()

tf.keras.utils.load_img(
    path,
    grayscale=False,
    color_mode='rgb',
    target_size=None,
    interpolation='nearest',
    keep_aspect_ratio=False
)
반응형

+ Recent posts