Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boxes without elements are considered assemblies #13

Open
Tyler-Ward opened this issue Oct 7, 2018 · 2 comments
Open

boxes without elements are considered assemblies #13

Tyler-Ward opened this issue Oct 7, 2018 · 2 comments

Comments

@Tyler-Ward
Copy link
Member

No description provided.

@PeterJCLaw
Copy link
Member

I can reproduce this on my Windows machine (Python 3.6, packages listed below), but I'm fairly sure that the linux laptop I've used in the past doesn't reproduce this.

Given that @Tyler-Ward is (from asking in person) also using Linux, it seems more likely that this is a package version thing than a platform thing.

Here's the output of pip list from a fresh virtualenv which reproduces the issue:

(bees) C:\Users\Peter>pip list
Package        Version
-------------- -------
beautifulsoup4 4.6.3
future         0.16.0
numpy          1.15.2
pip            10.0.1
pyparsing      2.2.2
PyYAML         3.13
setuptools     39.0.1
six            1.11.0
sr.tools       1.0.0
sympy          0.7.6.1
tabulate       0.8.2
xlwt-future    0.8.0

@PeterJCLaw
Copy link
Member

Hrm, on looking at the code I can't see why I wouldn't have been seeing this on my linux machine. The check of interest isn't something which would change with a dependency update:

        if hasattr(part.parent, "code"):
            if args.assy:
                parts.append(part.parent)
            else:
                print("Warning: Part {} is in an assembly.".format(code),
                      "To move the assembly, use the -a switch.",
                      file=sys.stderr)
                parts.append(part)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants