小编Tim*_*rts的帖子

无法刷入 esp32。该端口不存在

我已经尝试刷新 esp-wroom-32 很长时间了,但我似乎无法得到它。idf.py 抛出此错误:

Serial port /dev/ttyUSB0
A fatal error occurred: Could not open /dev/ttyUSB0, the port doesn't exist
CMake Error at run_serial_tool.cmake:55 (message):
  /home/matvey/.espressif/python_env/idf5.1_py3.9_env/bin/python;;/home/matvey/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32
  failed
FAILED: CMakeFiles/flash /home/matvey/esp/esp-idf/examples/get-started/hello_world/build/CMakeFiles/flash
cd /home/matvey/esp/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH=/home/matvey/esp/esp-idf -D "SERIAL_TOOL=/home/matvey/.espressif/python_env /idf5.1_py3.9_env/bin/python;;/home/matvey/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32" -D "SERIAL_TOOL_ARGS=--before=default_reset; --after=hard_reset;write_flash;@flash_args" -D WORKING_DIRECTORY=/home/matvey/esp/esp-idf/examples/get-started/hello_world/build -P /home/matvey/esp/esp-idf/components/ esptool_py/run_serial_tool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /home/matvey/esp/esp-idf/examples/get-started/hello_world/build/log/idf_py_stderr_output_27303 and /home/matvey/esp/esp-idf/ examples/get-started/hello_world/build/log/idf_py_stdout_output_27303`
Run Code Online (Sandbox Code Playgroud)

我不知道可能是什么问题,我更改了 udev 设置,但也许它对我不起作用。

esp32

9
推荐指数
1
解决办法
3万
查看次数

PydanticImportError:“BaseSettings”已移至“pydantic-settings”包

我从 kaggle 下载了泰坦尼克号数据集。我正在通过安装 pandas_profiling 来实现 pandas 的分析

我们将不胜感激您的贡献!

import pandas as pd 
df = pd.read_csv('E:/pythonWorkspace/excelFiles/train.csv')
df.head()

from pandas_profiling import ProfileReport
prof = ProfileReport(df) #object created!
prof.to_file(output_file='output.html')
Run Code Online (Sandbox Code Playgroud)

错误 :

PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.0.2/migration/#basesettings-has-moved-to-pydantic-settings for more details.

For further information visit https://errors.pydantic.dev/2.0.2/u/import-error
Run Code Online (Sandbox Code Playgroud)

python pandas pandas-profiling

6
推荐指数
1
解决办法
9497
查看次数

在字符串中查找相同字母的索引

目前与

def order(word):
  for each in word:
    print str(word.index(each))+ ": "+each
Run Code Online (Sandbox Code Playgroud)

如果我运行order("Ranger"),代码会按照我的意愿工作,它给了我:

0: R
1: a
2: n
....and so on until "5: r"
Run Code Online (Sandbox Code Playgroud)

但是如果我输入任何带有重复字母的单词,例如“hall”或“silicon”,我会得到该单词第一次迭代的位置值,例如:

0: R
1: a
2: n
....and so on until "5: r"
Run Code Online (Sandbox Code Playgroud)

我怎样才能让函数返回以下内容?

order("Hall")
0: H
1: a
2: l
2: l
Run Code Online (Sandbox Code Playgroud)

python jython

0
推荐指数
1
解决办法
80
查看次数

导入错误:没有名为 abc 的模块 | 奥杜 10 | Python 2.7

我收到这个错误,

  File "/home/mayank/Workspace/Odoo/v10/odoo/odoo/http.py", line 1325, in __call__
    self.load_addons()
  File "/home/mayank/Workspace/Odoo/v10/odoo/odoo/http.py", line 1346, in load_addons
    m = __import__('odoo.addons.' + module)
  File "/home/mayank/Workspace/Odoo/v10/odoo/odoo/modules/module.py", line 81, in load_module
    execfile(modfile, new_mod.__dict__)
  File "/home/mayank/Workspace/Projects/v10/smecen/odoo_10_plugins/api_nodejs/__init__.py", line 6, in <module>
    import models
  File "/home/mayank/Workspace/Projects/v10/smecen/odoo_10_plugins/api_nodejs/models/__init__.py", line 14, in <module>
    import keycloak
  File "/home/mayank/.local/lib/python2.7/site-packages/keycloak/__init__.py", line 24, in <module>
    from .keycloak_admin import *
  File "/home/mayank/.local/lib/python2.7/site-packages/keycloak/keycloak_admin.py", line 33, in <module>
    from .keycloak_openid import KeycloakOpenID
  File "/home/mayank/.local/lib/python2.7/site-packages/keycloak/keycloak_openid.py", line 26, in <module>
    from jose import jwt
  File "/home/mayank/.local/lib/python2.7/site-packages/jose/jwt.py", line 3, in <module>
    from …
Run Code Online (Sandbox Code Playgroud)

python python-2.7 odoo odoo-10

-1
推荐指数
1
解决办法
1120
查看次数

标签 统计

python ×3

esp32 ×1

jython ×1

odoo ×1

odoo-10 ×1

pandas ×1

pandas-profiling ×1

python-2.7 ×1