VSCode 为每个项目创建一个 .hypothesis/unicode_data/13.0.0/charmap.json.gz 文件

huangapple go评论79阅读模式
英文:

VSCode creating a .hypothesis/unicode_data/13.0.0/charmap.json.gz file for every project

问题

我不确定是否因为我安装了一个新库而出现了这个问题,但现在每次我运行一个新项目时,VSCode都会创建一个".hypothesis/unicode_data/13.0.0/charmap.json.gz"文件,这很烦人,怎么停止它?

我尝试在Google上查找这个问题,但找不到太多信息。有篇帖子说可能与Pydantic有关,我已卸载,但问题仍然存在。以下是代码:

import numpy as np
import pandas as pd
import requests
from bs4 import BeautifulSoup

url = "https:example"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")

episode_data = []
for episode in soup.find_all('div', class_='info'):
    episode_number = episode.find('meta')['content']
    title = episode.find('a', itemprop='name').text
    airdate = episode.find('div', class_='airdate').text.strip()
    rating = episode.find('span', class_='ipl-rating-star__rating').text
    total_votes = episode.find('span', class_='ipl-rating-star__total-votes').text
    desc = episode.find('div', class_='item_description').text.strip()
    episode_data.append([episode_number, title, airdate, rating, total_votes, desc])

df = pd.DataFrame(episode_data, columns=['Episode', 'Title', 'Air Date', 'Rating', 'Votes', 'Description'])
英文:

I'm not sure if it's happening because I installed a new library that has that issue, but now every time I run a new project VSCode creates a ".hypothesis/unicode_data/13.0.0/charmap.json.gz" and it's annoying, how can stop it?

I tried looking up the issue on Google but couldn't find much information. There was a post saying it could be related to Pydantic, which I uninstalled, but the issue persists. Here's the code:

import numpy as np
import pandas as pd
import requests
from bs4 import BeautifulSoup
    
url = "https:example"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")

episode_data = []
for episode in soup.find_all('div', class_='info'):
    episode_number = episode.find('meta')['content']
    title = episode.find('a', itemprop='name').text
    airdate = episode.find('div', class_='airdate').text.strip()
    rating = episode.find('span', class_='ipl-rating-star__rating').text
    total_votes = episode.find('span', class_='ipl-rating-star__total-votes').text
    desc = episode.find('div', class_='item_description').text.strip()
    episode_data.append([episode_number, title, airdate, rating, total_votes, desc])

df = pd.DataFrame(episode_data, columns=['Episode', 'Title', 'Air Date', 'Rating', 'Votes', 'Description'])

答案1

得分: 1

我在github上发现了相同的问题

> 卸载pydantic可以阻止这种情况发生,重新安装pydantic会重现这个问题。

您可以尝试升级hypothesis来解决它:

python -m pip install -U hypothesis
英文:

I found a same issue on github.

> Uninstalling pydantic prevents it from happening, re-installing
> pydantic reproduces it.

You can try to upgrade hypothesis to solve it:

python -m pip install -U hypothesis

huangapple
  • 本文由 发表于 2023年6月30日 04:36:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76584458.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定