Code Monkey home page Code Monkey logo

Comments (8)

oskay avatar oskay commented on July 17, 2024 2

We're pushing a minor update (v 3.9.5) to cover this (along with a few other bug fixes).

Here's the package ahead of formal release:
python -m pip install https://cdn.evilmadscientist.com/dl/ad/public/395/AxiDraw_API_395.zip

from axidraw.

dr-emp avatar dr-emp commented on July 17, 2024 1

Some tips for when you start looking into it @oskay:

If you add
requires = ["setuptools >= 40.6.0, <69.0.0"]
instead of
requires = ["setuptools >= 40.6.0"]

in cli/pyproject.toml (line 48), I think the issue should be resolved for the current package setup with setup.py for dynamic dependencies (this solution forces "setuptools" to be less than the breaking "setuptools" version I mentioned above, which ignore dynamic dependencies in setup.py). I have tested this by doing:

wget https://cdn.evilmadscientist.com/dl/ad/public/AxiDraw_API.zip

and then adding

requires = ["setuptools >= 40.6.0, <69.0.0"]

inside the downloaded cli/pyrpject.toml, and can verify that we get a successful install (upon doing "pip install .").

I can both do:

from pyaxidraw import axidraw
and
python3 -m axicli

successfully.

from axidraw.

oskay avatar oskay commented on July 17, 2024

Thanks; we'll take a look.

from axidraw.

xanderjl avatar xanderjl commented on July 17, 2024

Came to report the same issue. While not pulling in the module for a custom script, calling the axicli command fails.
zsh: command not found: axicli. When I try to call it with python3 -m axicli, I get a similar output:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/xander/.pyenv/versions/3.12.0/lib/python3.12/site-packages/axicli/__main__.py", line 1, in <module>
    from .axidraw_cli import axidraw_CLI
  File "/home/xander/.pyenv/versions/3.12.0/lib/python3.12/site-packages/axicli/axidraw_cli.py", line 66, in <module>
    from pyaxidraw.axidraw_options import common_options
  File "/home/xander/.pyenv/versions/3.12.0/lib/python3.12/site-packages/pyaxidraw/__init__.py", line 53, in <module>
    main()
  File "/home/xander/.pyenv/versions/3.12.0/lib/python3.12/site-packages/pyaxidraw/__init__.py", line 40, in main
    raise ie
  File "/home/xander/.pyenv/versions/3.12.0/lib/python3.12/site-packages/pyaxidraw/__init__.py", line 34, in main
    sys.modules[__name__].__dict__[name] = alias_submodule(supermodule_name, name)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xander/.pyenv/versions/3.12.0/lib/python3.12/site-packages/pyaxidraw/__init__.py", line 49, in alias_submodule
    __import__(full_name)
ModuleNotFoundError: No module named 'axidrawinternal'

Using python 3.12.0 via pyenv.

from axidraw.

oskay avatar oskay commented on July 17, 2024

I'm wrapping up a different project but hope to get a chance to look at this in the coming week. One person reports that they were able to get it to install by first using pip install prebuilt_dependencies/*, in the unzipped download.

from axidraw.

xanderjl avatar xanderjl commented on July 17, 2024

Oh interesting! I'll give that a shot. Thanks @oskay

from axidraw.

xanderjl avatar xanderjl commented on July 17, 2024

I'm wrapping up a different project but hope to get a chance to look at this in the coming week. One person reports that they were able to get it to install by first using pip install prebuilt_dependencies/*, in the unzipped download.

Just wanted to report that this method worked.

  • cd into API dir
  • pip install prebuilt_dependencies/*
  • pip install .
  • I opted to add alias axicli="python -m axicli" to my .zshrc file on my rpi4. zsh complained that the axicli command was not found otherwise.

from axidraw.

dr-emp avatar dr-emp commented on July 17, 2024

Great, thank you!

from axidraw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.