生成的.egg放在PyStand-py38-pyqt5文件下了,也添加了路径,删除python的script文件,报错如何更改?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- build-system
Research direction
Start with the provided setup.py and the PyStand-py38-pyqt5 deployment directory, then reproduce the traceback showing that main cannot be imported. Check how the generated script-0.1-py3.8.egg is discovered and how the source files are laid out. Done means the packaged application launches without ModuleNotFoundError.
Written by the indexing model from the issue text.
Description
源文件拷贝到script文件中没有问题。生成egg文件有问题了。
setup.py脚本
from setuptools import setup, find_packages
setup(
name="script",
version="0.1",
packages=find_packages()
)
生成的文件名为script-0.1-py3.8.egg,拷贝到PyStand-py38-pyqt5中,显示
D:\aaa\PyStand-py38-pyqt5>Traceback (most recent call last):
File "<string>", line 29, in <module>
File "<string>", line 5, in <module>
ModuleNotFoundError: No module named 'main'
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from skywind3000/PyStand
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
skywind3000/PyStand#111 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
skywind3000/PyStand#109 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
skywind3000/PyStand#105 · 3 reactions ·
-
文档拉胯 Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
skywind3000/PyStand#104 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
skywind3000/PyStand#102 · 5 comments ·
All issues in skywind3000/PyStand
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·