Comments (12)
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.
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.
Out of curiosity: Could you solve the issue and install scopus
?
from pybliometrics.
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.
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.
from pybliometrics.
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.
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.
Is pbr compliant with Python 3?
from pybliometrics.
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.
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.
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.
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)
- Easy way to set up "portable" behavior HOT 5
- Errors in citescoreyearinfolist HOT 1
- ScopusSearch by DOI produces different results if space added HOT 2
- LitStudy - Scopus400 Error: Exceeds the maximum number allowed for the service level HOT 2
- CitationOverview's cc property unexpected Error. HOT 6
- What is the Scopus search link? HOT 3
- __str__ not always working HOT 1
- 'No Edges Given' on Network Analysis
- 'ENTITLED' view is not supported HOT 2
- Improper 404 error HOT 2
- Implement init() function to replace execution of code on import HOT 2
- Fix tests HOT 3
- Move creating folder from `get_folder()` to `init()` HOT 2
- Check valid views with new `VIEWS` constant
- Scopus401Error: The requestor is not authorized to access the requested view or fields of the resource HOT 1
- CitationOverview's cc property unexpected Error. HOT 7
- Lookup quota reset time after depletion? HOT 4
- AffiliationSearch: parent affiliation id is always "0" HOT 1
- AttributeError with AbstractRetrieval(..., view="REF").references
- AbstractRetrieval(..., view="REF") sometimes breaks when there are no references
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybliometrics.