skywind3000 / skywind3000/PyStand

生成的.egg放在PyStand-py38-pyqt5文件下了,也添加了路径,删除python的script文件,报错如何更改?

Open
#5 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
146
PR merge metrics
No merged PRs in 30d

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'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.