ssc-oscar / oscar.py

Python interface for OSCAR data
GNU General Public License v3.0
4 stars 10 forks source link

Problems with import oscar #55

Closed zifeiyu87 closed 2 months ago

zifeiyu87 commented 1 year ago

I connected da4, da4 has pre installed oscar v2.2.1, but I am unable to import oscar in Python 3. The error message is as follows:

image

I have tried v2.2.1, v2.2.0, v2.1.0, and I have also run the command in Tutorial: "easy_ Install -- user clickhouse driver". I also tried to build and install oscar as per the installation instructions in Oscar. py, using "python3 setup.py build_ext && python3 setup.py install --user" But none of these works, I still cannot import Oscar correctly.

user2589 commented 1 year ago

The package was not updated in a while, and it looks like some mappings are now stored under different paths or using a different name convention. I'll try to look into this the upcoming weekend

audrism commented 9 months ago

should work now, please try

cloudsreal commented 3 months ago

I connected da4 and installed oscar v2.2.1.

Screenshot 2024-07-12 at 14 32 11

But i met the same problem when using python3. How can I address this?

Screenshot 2024-07-12 at 14 32 53
mahtab-nejati commented 2 months ago

I connected da4 and installed oscar v2.2.1. Screenshot 2024-07-12 at 14 32 11 But i met the same problem when using python3. How can I address this? Screenshot 2024-07-12 at 14 32 53

I'm running into the same issue...

audrism commented 2 months ago

can you share your usernames (unix usernams on da servers): i'd like to check what is going on

audrism commented 2 months ago

I started using two-character versions but it is not compatible

Specifically V3 version is current but having /da5_fast/c2pFullV3.0.tch breaks oscar.

@hrz6976 can you take look on how to accommodate this: I cant seem to find the right place in the code to do it.

hrz6976 commented 2 months ago

@audrism Okay I'll look into it. Besides, do you think it is viable to change the versioning scheme (e.g. time-based like V2407)? Otherwise we will use up all the letters very soon.

@mahtab-nejati I'd recommend python-woc for new projects: it's fast, python-native, and supports V3 mappings.

audrism commented 2 months ago

The package has been updated.

please do

git pull

in your oscar.py, then build and install

python3 setup.py build_ext
python3 setup.py install --user

Pleas let me know if you still experience issues