Comments (4)
Notes to self after fixing this. Or if anyone else wants to make a PR off this, feel free!
(is this library still maintained by anyone?)
-
splitunc is deprecated. need to use
splitdrive
instead. source:
https://github.com/aaronryank/-/blob/master/workspace/MSYS2_64/usr/lib/python3.4/ntpath.py -
Also need to change
pd.DataFrame.from_items
topd.DataFrame.from_dict
from paratext.
I am having the same error:
AttributeError: module 'ntpath' has no attribute 'splitunc'
I am running this on Ubuntu
from paratext.
I'm also getting the same error. I'm using MacOS 10.14.3
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/restifo/PycharmProjects/bulk-rnaseq/util.py", line 5, in <module>
df = paratext.load_csv_to_pandas("./data/TcgaTargetGtex_RSEM_Hugo_norm_count", num_threads=7)
File "/Users/restifo/anaconda3/envs/bulk-rnaseq/lib/python3.7/site-packages/paratext/core.py", line 403, in load_csv_to_pandas
return pandas.DataFrame.from_items(expanded)
File "/Users/restifo/anaconda3/envs/bulk-rnaseq/lib/python3.7/site-packages/pandas/core/frame.py", line 1782, in from_items
keys, values = lzip(*items)
File "/Users/restifo/anaconda3/envs/bulk-rnaseq/lib/python3.7/site-packages/paratext/core.py", line 355, in load_csv_to_expanded_columns
for name, col, semantics, levels in load_raw_csv(filename, *args, **kwargs):
File "/Users/restifo/anaconda3/envs/bulk-rnaseq/lib/python3.7/site-packages/paratext/core.py", line 298, in load_raw_csv
loader = internal_create_csv_loader(filename, *args, **kwargs)
File "/Users/restifo/anaconda3/envs/bulk-rnaseq/lib/python3.7/site-packages/paratext/core.py", line 188, in internal_create_csv_loader
loader.load(_make_posix_filename(filename), params)
File "/Users/restifo/anaconda3/envs/bulk-rnaseq/lib/python3.7/site-packages/paratext/core.py", line 120, in _make_posix_filename
if ntpath.splitdrive(fn_or_uri)[0] or ntpath.splitunc(fn_or_uri)[0]:
AttributeError: module 'ntpath' has no attribute 'splitunc'
Python version:
> print(sys.version)
3.7.3 | packaged by conda-forge | (default, Mar 27 2019, 15:43:19)
[Clang 4.0.1 (tags/RELEASE_401/final)]
from paratext.
I'm having the same error with the same setup as @a-re . I'm also having the error when using load_csv_to_dict
from paratext.
Related Issues (20)
- Build fails on Windows 7 with Anaconda HOT 3
- Add support for reading large files in chunks HOT 1
- C++ rowbase stream processing?
- Unexpected content conversion for a hex string data HOT 3
- add support for .gz files HOT 1
- add support for opening multiple files HOT 1
- Paratext <-> Apache Arrow bridge HOT 1
- perf problems HOT 3
- can i access data by row HOT 3
- how to install paratext for python3? HOT 1
- Support for tab-delimited files? HOT 1
- Reading from stdin should use single thread or report an error HOT 1
- Feature request : Add support for conda HOT 1
- Feature request: Add `sep` argument for separator HOT 1
- Import fails on OSX 10.12.5 using Anaconda HOT 8
- C++11 compiler warning with clang on OS X
- Unable to read csv
- how to use it in c or c++?
- Tested on AWS Lambda - EFS ?
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 paratext.