Giter Site home page Giter Site logo

Comments (12)

Michael-E-Rose avatar Michael-E-Rose commented on May 23, 2024

Hi! Seems like a similar problem to #41. If are on a mac, can you try the solution proposed here?
If not, are you able to install other packages?

from pybliometrics.

sacrophyte avatar sacrophyte commented on May 23, 2024

Macs use c:\ ?? :) I am not on a Mac, this is Windows 7. I have not tried to install any other packages via pip, yet. Let me hunt one down....

from pybliometrics.

Michael-E-Rose avatar Michael-E-Rose commented on May 23, 2024

Out of curiosity: Could you solve the issue and install scopus?

from pybliometrics.

sacrophyte avatar sacrophyte commented on May 23, 2024

I am now trying on a different computer, but with the same symptoms. pip install clock works just fine; pip install scopus gives me errors (see attached utf-8 text file)

pip_install_scopus_unicode_error.txt

from pybliometrics.

sacrophyte avatar sacrophyte commented on May 23, 2024

Here is something else that I find odd. cp1252.py is not in this github repository, but yet I have it on my computer now; when I run pip install scopus, does it not install from this repository?

I have a little knowledge of character sets, and I know 1252 is specific to Windows, so that makes sense. I think the error refers to this line:
'\ufffe' # 0x81 -> UNDEFINED

But I have no idea why.

cp1252_py.txt

from pybliometrics.

Michael-E-Rose avatar Michael-E-Rose commented on May 23, 2024

That's really a riddle to me - tomorrow I have the opportunity to test on a Windows machine.

It looks like it complains about setup.cfg, but I really can't spot a non-ASCII character that might cause the error.

And no, pip install scopus installs from PyPI, the Python Project Inventory. It's a stable version. If you install from the GitHub repo without further specifications it installs the current development version, which might be unstable.

from pybliometrics.

sacrophyte avatar sacrophyte commented on May 23, 2024

I think setup.cfg might be calling cp1252.py, which is why I was curious where cp1252.py comes from. It is not listed in this repository, but somehow I have it on my PC in the scopus folder.

from pybliometrics.

sacrophyte avatar sacrophyte commented on May 23, 2024

Is pbr compliant with Python 3?

from pybliometrics.

Michael-E-Rose avatar Michael-E-Rose commented on May 23, 2024

I can replicate the error on a Windows machine. I am looking for a solution now. It is not because of pbr, which I could successfully install.

from pybliometrics.

Michael-E-Rose avatar Michael-E-Rose commented on May 23, 2024

The error was introduced after 0.2.1. So you can install scopus0.2.1 with pip install scopus=0.2.1.

But I would like to ask to help me hunt down the bug because I cannot on my Windows machine. The way to do this is to install commits between
0.2.1 and 0.3 - the one commit that breaks contains the bug. These commits are

  • 48aa46af4276187972e74605ba73e40e2ab8cea8
  • 2d9712f8895fc14f9c4bd785e08f883a9b3b45b0
  • `143805b8a01006a97a90b2b02437851cc68426ce
  • e27facc4c8a789a71b59d22bb6cbc6fc7225242a
  • 8c67b3ff5737d8c7600a22e038d20b66c09d5625
  • 18dd5a8f2221c33bc24eb41d71c9e05f8b0029e4
  • d04a15e240defe4968f3aef239ab35ad27dc272e
  • 2d6d360573e4860a20449533f141559b9b0323b1
  • 74f96b5f96ec0ce05a66db830014a840649f6a97

To install a specific commit, use pip install git+git://github.com/scopus-api/scopus.git@COMMIT. I expect the last one to break and the others to work. This would indicate that switching to pbr for project management introduced the bug.

Thanks in advance!

from pybliometrics.

sacrophyte avatar sacrophyte commented on May 23, 2024

Michael,

Well, that was definitely interesting. :) And you hit the nail on the head - all the commits work except the last one (see attached utf8 text file).
scopus_bug_hunting.txt

from pybliometrics.

Michael-E-Rose avatar Michael-E-Rose commented on May 23, 2024

I found the problem. It was in README.org which is the "description-file" mentioned in your traceback. It is being parsed by pbr while installing. In the usage examples, the name of one co-author is Áshildur which can't translate in encoding cp1252.

I removed the examples from the README in bd558c7 - it is in the examples in the docs anyways.

You should now be able to install the current version (0.4.4) via pip install scopus --upgrade. Many thanks for reporting this annoying issue!

from pybliometrics.

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.