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

Update python3 #2

Open
2 tasks
jasonb5 opened this issue Nov 3, 2020 · 4 comments
Open
2 tasks

Update python3 #2

jasonb5 opened this issue Nov 3, 2020 · 4 comments

Comments

@jasonb5
Copy link
Contributor

jasonb5 commented Nov 3, 2020

Code was never updated for python 3.

  • Update code from python 2 to 3
  • Build new conda package
@jasonb5 jasonb5 mentioned this issue Nov 3, 2020
1 task
@arulalant
Copy link
Contributor

Hai,

conda install -c cdat xmgrace

After installing xmgrace inside cdat8.2.1 via conda, it gives following error.

Python 3.8.6 | packaged by conda-forge | (default, Dec 26 2020, 04:50:20)
[Clang 11.0.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import xmgrace
x=xmgrace.init()
Traceback (most recent call last):
File "", line 1, in
File "/Users/arulalan/miniconda3/envs/cdat8.2.1/lib/python3.8/site-packages/xmgrace/xmgrace.py", line 2678, in init
self._start_pipe(xmgrace_args)
File "/Users/arulalan/miniconda3/envs/cdat8.2.1/lib/python3.8/site-packages/xmgrace/xmgrace.py", line 2765, in _start_pipe
self.pipe = os.fdopen(fd_w, 'w', 0)
File "/Users/arulalan/miniconda3/envs/cdat8.2.1/lib/python3.8/os.py", line 1023, in fdopen
return io.open(fd, *args, **kwargs)
ValueError: can't have unbuffered text I/O
Descriptor 25 not open for reading

How should I overcome out of this error ?

Thanks.

@arulalant
Copy link
Contributor

arulalant commented Jan 1, 2021

I am getting the same error for python 3.7 as well. @jasonb5

@jasonb5
Copy link
Contributor Author

jasonb5 commented Jan 8, 2021

@arulalant I'll look into this error.

@arulalant
Copy link
Contributor

Hai,
I installed xmgrace via conda inside cdat8.2.1 (today) as shown below and got the following error while invoking it.
This is for kind information. Thanks.

$ conda install -c conda-forge -c cdat xmgrace
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: /Users/arulalan/miniconda3/envs/cdat8.2.1

added / updated specs:
- xmgrace

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
xmgrace-8.1.0              |0_h1234567_ge4fc737          28 KB  cdat
------------------------------------------------------------
                                       Total:          28 KB

The following NEW packages will be INSTALLED:

xmgrace cdat/noarch::xmgrace-8.1.0-0_h1234567_ge4fc737
Proceed ([y]/n)? y
Downloading and Extracting Packages
xmgrace-8.1.0 | 28 KB | ######################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(cdat8.2.1) Arulalans-MacBook-Pro:~ arulalan$ python
Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:57:50)
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import xmgrace
x=xmgrace.init()
Traceback (most recent call last):
File "", line 1, in
File "/Users/arulalan/miniconda3/envs/cdat8.2.1/lib/python3.7/site-packages/xmgrace/xmgrace.py", line 2678, in init
self._start_pipe(xmgrace_args)
File "/Users/arulalan/miniconda3/envs/cdat8.2.1/lib/python3.7/site-packages/xmgrace/xmgrace.py", line 2765, in _start_pipe
self.pipe = os.fdopen(fd_w, 'w', 0)
File "/Users/arulalan/miniconda3/envs/cdat8.2.1/lib/python3.7/os.py", line 1029, in fdopen
return io.open(fd, *args, **kwargs)
ValueError: can't have unbuffered text I/O
Descriptor 22 not open for reading

I hope it will be resolved in the next update/upgrade of cdat.
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants