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

Error when installing dependency dukpy on macOS #96

Closed
mikaelhaji opened this issue Apr 24, 2021 · 13 comments
Closed

Error when installing dependency dukpy on macOS #96

mikaelhaji opened this issue Apr 24, 2021 · 13 comments
Labels
bug Something isn't working

Comments

@mikaelhaji
Copy link

  • MacBook Pro 1 inch 2019 - Big Sur
  • OpenBCI Cyton and Ultra Cortex 4

I was planning on testing out the P300 and SSVEP Stimuli. However, when setting up by Anaconda Environment, I kept on getting an error on "dukpy lib." I tried to pip install dukpy but it still doesn't work. I also tried binder but got another error -- from my understanding it hasn't been updated in a while anyway.

Any Help Would Be Greatly Appreciated!

📷 Screenshot

Screen Shot 2021-04-24 at 1 00 01 AM

@mikaelhaji mikaelhaji added the bug Something isn't working label Apr 24, 2021
@JohnGriffiths
Copy link
Collaborator

Hi Mikael.

Let's try to get to the bottom of this.

What do you get when you do pip install dukpy ?

@mikaelhaji
Copy link
Author

mikaelhaji commented Apr 24, 2021 via email

@mikaelhaji
Copy link
Author

mikaelhaji commented Apr 24, 2021 via email

@JohnGriffiths
Copy link
Collaborator

sorry - were you intending to attach a second screenshot there?

or are you saying you get the same error when you try to pip install dukpy ?

@mikaelhaji
Copy link
Author

mikaelhaji commented Apr 25, 2021 via email

@mikaelhaji
Copy link
Author

mikaelhaji commented Apr 26, 2021 via email

@ErikBjare
Copy link
Collaborator

ErikBjare commented Apr 26, 2021

You need to provide full log output for us to be able to help you.

Preferably in text form and not as a screenshot (at least not a screenshot sent through your mail client, since that doesn't seem to be accepted by GitHub).

Seems you are not alone: https://github.com/amol-/dukpy/issues/36

But it should work fine, your system probably lacks some build-time dependency (Xcode tools?).

@mikaelhaji
Copy link
Author

mikaelhaji commented Apr 26, 2021 via email

@ErikBjare
Copy link
Collaborator

Email replies makes your comment impossible to format with Markdown and therefore excessively long. So here it is with Markdown:

WARNING: Value for scheme.headers does not match. Please report this to <
https://github.com/pypa/pip/issues/9617>

distutils:
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/UNKNOWN

sysconfig:
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8

WARNING: Additional context:

user = False

home = None

root = None

prefix = None

Collecting dukpy

  Using cached dukpy-0.2.3.tar.gz (1.9 MB)

Using legacy 'setup.py install' for dukpy, since package 'wheel' is not
installed.

Installing collected packages: dukpy

    Running setup.py install for dukpy ... error

    ERROR: Command errored out with exit status 1:

     command:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c
'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/9s/3hlz7cm91n7975n552pg6fh40000gn/T/pip-install-ulu9kzcd/dukpy_a71c397eaff2464696eb4d0fdd56caab/setup.py'"'"';
__file__='"'"'/private/var/folders/9s/3hlz7cm91n7975n552pg6fh40000gn/T/pip-install-ulu9kzcd/dukpy_a71c397eaff2464696eb4d0fdd56caab/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if
os.path.exists(__file__) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
/private/var/folders/9s/3hlz7cm91n7975n552pg6fh40000gn/T/pip-record-g3mqsqim/install-record.txt
--single-version-externally-managed --compile --install-headers
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/dukpy

         cwd:
/private/var/folders/9s/3hlz7cm91n7975n552pg6fh40000gn/T/pip-install-ulu9kzcd/dukpy_a71c397eaff2464696eb4d0fdd56caab/

    Complete output (145 lines):

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.9-x86_64-3.8

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/run.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/lessc.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/evaljs.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/babel.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/install.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/coffee.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/tsc.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/module_loader.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    copying dukpy/nodelike.py -> build/lib.macosx-10.9-x86_64-3.8/dukpy

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/webassets

    copying dukpy/webassets/jsxfilter.py ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/webassets

    copying dukpy/webassets/__init__.py ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/webassets

    copying dukpy/webassets/typescriptfilter.py ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/webassets

    copying dukpy/webassets/lessfilter.py ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/webassets

    copying dukpy/webassets/babelfilter.py ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/webassets

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jscore

    copying dukpy/jscore/punycode.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jscore

    copying dukpy/jscore/querystring.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jscore

    copying dukpy/jscore/path.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jscore

    copying dukpy/jscore/url.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jscore

    copying dukpy/jscore/fs.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jscore

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules

    copying dukpy/jsmodules/typescriptServices.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules

    copying dukpy/jsmodules/semver.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules

    copying dukpy/jsmodules/babel-6.26.0.min.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules

    copying dukpy/jsmodules/coffeescript.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/react

    copying dukpy/jsmodules/react/react.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/react

    copying dukpy/jsmodules/react/react-dom-server.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/react

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/logger.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/parse-tree.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/import-manager.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/render.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/index.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/transform-tree.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/source-map-output.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/contexts.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/parse.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/plugin-manager.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/utils.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/source-map-builder.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    copying dukpy/jsmodules/less/less/less-error.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/lessc-helper.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/url-file-manager.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/index.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/plugin-loader.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/image-size.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/file-manager.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/environment.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    copying dukpy/jsmodules/less/less-node/fs.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less-node

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/selector.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/extend.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/negative.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/ruleset-call.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/element.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/operation.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/detached-ruleset.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/ruleset.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/media.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/import.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/debug-info.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/combinator.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/index.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/unicode-descriptor.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/color.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/comment.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/anonymous.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/attribute.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/javascript.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/call.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/node.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/value.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/dimension.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/expression.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/rule.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/keyword.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/condition.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/js-eval-node.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/variable.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/url.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/directive.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/mixin-definition.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/assignment.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/paren.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/alpha.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/mixin-call.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/quoted.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    copying dukpy/jsmodules/less/less/tree/unit.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/tree

    creating
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying dukpy/jsmodules/less/less/visitors/to-css-visitor.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying dukpy/jsmodules/less/less/visitors/import-visitor.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying dukpy/jsmodules/less/less/visitors/index.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying dukpy/jsmodules/less/less/visitors/import-sequencer.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying
dukpy/jsmodules/less/less/visitors/set-tree-visibility-visitor.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying dukpy/jsmodules/less/less/visitors/extend-visitor.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying dukpy/jsmodules/less/less/visitors/visitor.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    copying dukpy/jsmodules/less/less/visitors/join-selector-visitor.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/visitors

    creating
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/plugins

    copying dukpy/jsmodules/less/less/plugins/function-importer.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/plugins

    creating
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/parser

    copying dukpy/jsmodules/less/less/parser/chunker.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/parser

    copying dukpy/jsmodules/less/less/parser/parser-input.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/parser

    copying dukpy/jsmodules/less/less/parser/parser.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/parser

    creating
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/environment

    copying dukpy/jsmodules/less/less/environment/abstract-file-manager.js
-> build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/environment

    copying dukpy/jsmodules/less/less/environment/environment-api.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/environment

    copying dukpy/jsmodules/less/less/environment/environment.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/environment

    copying dukpy/jsmodules/less/less/environment/file-manager-api.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/environment

    creating
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/number.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/math-helper.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/types.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/function-registry.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/data-uri.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/index.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/color.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/string.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/math.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/color-blending.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/svg.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/default.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    copying dukpy/jsmodules/less/less/functions/function-caller.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/functions

    creating build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/data

    copying dukpy/jsmodules/less/less/data/index.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/data

    copying dukpy/jsmodules/less/less/data/colors.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/data

    copying dukpy/jsmodules/less/less/data/unit-conversions.js ->
build/lib.macosx-10.9-x86_64-3.8/dukpy/jsmodules/less/less/data

    running build_ext

    building 'dukpy._dukpy' extension

    creating build/temp.macosx-10.9-x86_64-3.8

    creating build/temp.macosx-10.9-x86_64-3.8/src

    creating build/temp.macosx-10.9-x86_64-3.8/src/duktape

    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common
-dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g
-DDUK_OPT_DEEP_C_STACK=1 -DDUK_OPT_NONSTD_REGEXP_DOLLAR_ESCAPE=1
-DDUK_OPT_OCTAL_SUPPORT=1 -I./src/duktape
-I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c
src/duktape/duktape.c -o
build/temp.macosx-10.9-x86_64-3.8/src/duktape/duktape.o

    xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun

    error: command 'gcc' failed with exit status 1

----------------------------------------

ERROR: Command errored out with exit status 1:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c
'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/9s/3hlz7cm91n7975n552pg6fh40000gn/T/pip-install-ulu9kzcd/dukpy_a71c397eaff2464696eb4d0fdd56caab/setup.py'"'"';
__file__='"'"'/private/var/folders/9s/3hlz7cm91n7975n552pg6fh40000gn/T/pip-install-ulu9kzcd/dukpy_a71c397eaff2464696eb4d0fdd56caab/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if
os.path.exists(__file__) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
/private/var/folders/9s/3hlz7cm91n7975n552pg6fh40000gn/T/pip-record-g3mqsqim/install-record.txt
--single-version-externally-managed --compile --install-headers
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/dukpy
Check the logs for full command output.

As the logs indicate, you are missing xcrun (and probably more) from Xcode Developer Tools. This is a common dependency for building almost any software on macOS, and fails for this particular package because it doesn't provide binary wheels for macOS (as indicated in the issue I linked above).

Installing Xcode Developer Tools (or whatever it is called) should fix it.

@ErikBjare
Copy link
Collaborator

Closing since this is certainly due to missing Xcode dev tools. It'd be nice if they weren't needed, but it's up to the dukpy devs to fix it by publishing binary wheels.

@ErikBjare ErikBjare changed the title Error with Setting Anaconda Environment Error when installing dependency dukpy on macOS Apr 27, 2021
@pikawika
Copy link

pikawika commented Nov 3, 2021

I had a similar issue, mine was due to missing exports. See here. Running the install procedure of eeg-notebooks once more after doing these 2 exports worked.

@WeiShaoD
Copy link

Hello, everyone, I'm wondering if there is any update for this issue? since I also met the same problem. my MacBook is Pro M1 with system 13.0.

Thanks

@ErikBjare
Copy link
Collaborator

@WeiShaoD Did you install Xcode developer tools as suggested?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants