Coder Social home page Coder Social logo

Comments (12)

rohitgarud avatar rohitgarud commented on June 25, 2024 3

Thank you for mentioning the steps.

@franzprante I think the issue is solved. Please check if you can install the latest version.

from asreview-notes-export.

rohitgarud avatar rohitgarud commented on June 25, 2024 1

Thank you @franzprante. Soon it will be part of the core functionality of ASReview. The PR is already merged, notes export functionality will be added in the next release.

from asreview-notes-export.

rohitgarud avatar rohitgarud commented on June 25, 2024

Hi, @franzprante Thank you for notifying me. I am not sure what is the reason behind this issue as I was able to install it using pip install asreview-notes-export in a newly created virtual environment, even though I didn't have asreview installed.. I will look into it and get back to you.. In the meantime, you can try installing directly from the GitHub repo using

pip install git+https://github.com/rohitgarud/asreview-notes-export.git

from asreview-notes-export.

rohitgarud avatar rohitgarud commented on June 25, 2024

One thing to note that this functionality will soon be part of asreview as I am working on it with the ASReview team, the PR is under review.. so this extension will not be required once the change is incorporated in the asreview core and asreview version is upgraded

from asreview-notes-export.

franzprante avatar franzprante commented on June 25, 2024

Thanks @rohitgarud ,

installing directly from GitHub unfortunatlely also did not work for me. Maybe the problem is in my setup then.

For now, I'll revert to using the Python API for exporting notes. But I look forward to the functionality being implemented in ASReview directly.

from asreview-notes-export.

rohitgarud avatar rohitgarud commented on June 25, 2024

@franzprante You can try upgrading pip using pip install --upgrade pip.. and what is your Python version, I did not explicitly test the compatibility with all the Python versions, and the extension was developed using Python 3.11.. that might be the source of the problem. As the error mentions 0.0.1 to 0.0.6 pip is aware of the extension just couldn't find a version compatible with your Python version

from asreview-notes-export.

franzprante avatar franzprante commented on June 25, 2024

Thanks,

pip install --upgrade pip did not solve the problem, but the error message from the failure of pip install git+https://github.com/rohitgarud/asreview-notes-export.git became clearer:

...

Building wheels for collected packages: asreview-notes-export
  Building wheel for asreview-notes-export (setup.py) ... error
  **error**: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/asreviewcontrib
      creating build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/_version.py -> build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/__init__.py -> build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/entrypoint.py -> build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/notes_export.py -> build/lib/asreviewcontrib/notes_export
      UPDATING build/lib/asreviewcontrib\notes_export\_version.py
      **error**: [Errno 2] No such file or directory: 'build/lib/asreviewcontrib\\notes_export\\_version.py'
      [end of output]
  
  **note**: This error originates from a subprocess, and is likely not a problem with pip.
  **ERROR**: Failed building wheel for asreview-notes-export
  Running setup.py clean for asreview-notes-export
Failed to build asreview-notes-export
Installing collected packages: asreview-notes-export
  Running setup.py install for asreview-notes-export ... error
  **error**: subprocess-exited-with-error
  
  × Running setup.py install for asreview-notes-export did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      running install
      /Users/franzprante/opt/miniconda3/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/asreviewcontrib
      creating build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/_version.py -> build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/__init__.py -> build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/entrypoint.py -> build/lib/asreviewcontrib/notes_export
      copying asreviewcontrib/notes_export/notes_export.py -> build/lib/asreviewcontrib/notes_export
      UPDATING build/lib/asreviewcontrib\notes_export\_version.py
      **error**: [Errno 2] No such file or directory: 'build/lib/asreviewcontrib\\notes_export\\_version.py'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
**error**: legacy-install-failure

× Encountered error while trying to install package.
╰─> asreview-notes-export

**note**: This is an issue with the package mentioned above, not pip.
**hint**: See above for output from the failure.

(pip install asreview-notes-exportgave the same error as mentioned at the top of this issue.)

from asreview-notes-export.

rohitgarud avatar rohitgarud commented on June 25, 2024

@franzprante Try cloning the repository using git clone and then installing using pip install .

Possible solution from SO
pip install Cmake

from asreview-notes-export.

deelobo avatar deelobo commented on June 25, 2024

Hello @rohitgarud I'm also having the same issue. I've tried all the steps above in a new virtual environment and got the same error message - see below. Do you know when the asreview version with the export-notes functionality will be released?


Building wheels for collected packages: asreview-notes-export
Building wheel for asreview-notes-export (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/asreviewcontrib
creating build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/_version.py -> build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/init.py -> build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/entrypoint.py -> build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/notes_export.py -> build/lib/asreviewcontrib/notes_export
UPDATING build/lib/asreviewcontrib\notes_export_version.py
error: [Errno 2] No such file or directory: 'build/lib/asreviewcontrib\notes_export\_version.py'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for asreview-notes-export
Running setup.py clean for asreview-notes-export
Failed to build asreview-notes-export
Installing collected packages: asreview-notes-export
Running setup.py install for asreview-notes-export ... error
error: subprocess-exited-with-error

× Running setup.py install for asreview-notes-export did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running install
/Users/user/miniconda3/envs/asreview/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib
creating build/lib/asreviewcontrib
creating build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/_version.py -> build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/init.py -> build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/entrypoint.py -> build/lib/asreviewcontrib/notes_export
copying asreviewcontrib/notes_export/notes_export.py -> build/lib/asreviewcontrib/notes_export
UPDATING build/lib/asreviewcontrib\notes_export_version.py
error: [Errno 2] No such file or directory: 'build/lib/asreviewcontrib\notes_export\_version.py'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> asreview-notes-export

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

from asreview-notes-export.

rohitgarud avatar rohitgarud commented on June 25, 2024

Thank you for letting me know @deelobo. May I ask if are you using Windows or Mac? So that I can pinpoint the issue being related to Mac users only. I think build/lib/asreviewcontrib\notes_export\_version.py is creating issues because of the backslash and forward slash mixup.

I have updated the code and Pypi version to 0.0.7. Please upgrade using pip install --upgrade asreview-notes-export. Please let me know if this solves the issue because I am unable to recreate the above error on my Windows PC and other users were able to use the extension (maybe Windows users).

from asreview-notes-export.

deelobo avatar deelobo commented on June 25, 2024

Thanks for your prompt reply, @rohitgarud
Yay, it worked! I'm a Mac user. Thanks a bunch.

Here are the steps I took:

  1. Updated everything - python, conda, PyPi
  2. Created a new conda environment
  3. Installed asreview
  4. Ran asreview to check if the installation worked
  5. Installed asreview-notes-export using: pip install --upgrade asreview-notes-export
  6. Voilá!

from asreview-notes-export.

franzprante avatar franzprante commented on June 25, 2024

Just tried it, it works! Thanks a lot! I am closing this.

from asreview-notes-export.

Related Issues (5)

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.