16 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
54
views
Timed out error at upload to PyPi with pdm
When I try to upload a new version 0.8.2 of my python software with pdm to PyPi I get the error
[WriteTimeout]: The write operation timed out
while the upload works for another project with very ...
0
votes
2
answers
236
views
How to set up docker compose with django and pdm
I have a django project with pdm and docker compose and I set up the codebase volume to enable django hot reload and debugging in the container. Building with the compose config works fine but when I ...
1
vote
1
answer
398
views
Why pdm-build does not include the files I have specified in the includes?
I am using PDM for virtual environment package management.
Also, I am using the pdm build backend, which is problematic.
When I was originally packaging apps with setuptools, I was able to specify non-...
1
vote
0
answers
98
views
Trouble converting PDM audio from a Seeed Studio XIAO nRF52840 for speech transcription — only getting white noise
I'm currently working on an iOS app that uses Bluetooth to stream audio data from a Seeed Studio XIAO nRF52840 (Sense) board, which has a PDM microphone. The board is running the OMI Friend firmware, ...
0
votes
1
answer
355
views
How to run a FastAPI application on a multi-stage build using pdm as dependency manager?
I'm trying to run a FastAPI application using pdm and the following Dockerfile:
ARG PYTHON_BASE=3.10-slim
# Build stage
FROM python:$PYTHON_BASE as build
COPY pyproject.toml pdm.lock README.md ./
# ...
1
vote
0
answers
338
views
Solidworks PDM API in Python - UnLockFile
I hope to develop some Solidworks PDM tools using Python. Currently, I am testing the connection of PDM, checking in and checking out files.
Here's my code:
import pythoncom
import win32com.client
...
1
vote
1
answer
310
views
Call of Solidworks PDM API GetFileFromPath in a vbscript script
I'm writing a simple script to count the number of referenced files giving a file in a vault of Solidworks PDM.
I get a Type mismatch error in GetFileFromPath method which has the following ...
0
votes
1
answer
3k
views
Additional properties are not allowed ('tool' was unexpected)Even Better TOML
when I add a file pdm.toml for python 3 project,
[pypi]
verify_ssl = true
# https://github.com/pdm-project/pdm/discussions/2406
[tool.pdm.resolution]
respect-source-order = true
[[tool.pdm.source]]
...
1
vote
0
answers
875
views
how to make PyCharm use the pdm download package
I am using the pdm https://github.com/pdm-project/pdm to manage the python project dependencies, today I found the PyCharm seems did not use the pdm downloaded packages, seems use it's own downloaded ...
1
vote
0
answers
528
views
Define dependency in pyproject.toml depending on operating system
I am using pyproject.toml according to PEP 631 (i.e. NO poetry, I am using pdm). I need to specify a dependency version according to the operating system.
So far, I tried something like this:
[project]...
0
votes
1
answer
131
views
ModuleNotFoundError: No module named 'apscheduler' even through installed the apscheduler package
When I tried to start the application using this command:
root@visa-service-5fcc84fc6f-hfhxn:~/visa# python3.10 main_api.py
Traceback (most recent call last):
File "/root/visa/main_api.py",...
1
vote
1
answer
564
views
ModuleNotFoundError: No module named 'Crypto' even through installed pycryptodome
When I need to import Crypto in Python3.10 like this in macOS 13.4 with M1 chip:
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5
from Crypto.PublicKey import RSA
def print_hi(name):
...
0
votes
1
answer
141
views
Casting uint8_t* to int16_t8 in C
I am attempting to adapt an example from here which reads PDM microphone data and prints it to a computer using serial USB.
I want to bypass the filtering stage in the example so I can write my own ...
1
vote
1
answer
1k
views
Getting files using SolidWorks PDM API (Python)
I'm trying to write a script in python that automatically gets the latest versions of all Excel files in the "Documents" folder in my SolidWorks EPDM vault. Here is my code:
import pythoncom
...
2
votes
0
answers
2k
views
How to build python package with pdm and include external dependencies
I'm trying to build a wheel using the PDM tool, however when I build the package, external dependencies (eg semver) are not included. This means whoever uses my tool, will need to install these ...