What does 'PYVERNODOTS' in Python C-extension modules mean? [closed] - python

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
When I want to compile Python C-extension modules on Linux, the file name of the compiled modules is for example <name-of-module>.cpython-#PYVERNODOTS#m-x86_64-linux-gnu.so. However this only happens, when I compile for Python 3.7, in Python 3.6 the file name is <name-of-module>.cpython-36m-x86_64-linux-gnu.so.
The problem is, that Python 3.7 is unable to import the module with PYVERNODOTS in the file name, so here are my questions:
What does PYVERNODOTS mean? How can I fix the import issue?
EDIT:
I tested this on Ubuntu with Python 3.7.4 from Anaconda. The complete setup script is hosted at https://github.com/biotite-dev/biotite/blob/master/setup.py.

This seems to be an issue with Python 3.7.4. Running the compilation under Python 3.7.3 fixed this problem.

Related

Can't download PyQt5 on mac [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 months ago.
Improve this question
enter image description herewhen running the code, an error occurs, but I installed PyQt5, but an error occurs in the terminal when installing extensions
reinstalled PyQt5 but nothing changed
If multiple python versions exist on your machine, you should make sure you are running your code using an interpreter environment with PyQt5 installed.
Ctrl+Shift+P
Python:Select Interpreter
Choose the correct interpreter.

My "python" command and "which python" point to different python versions [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I am using Anaconda and found the "python" command of all different environments point to one python /home/ya/anaconda3/bin/python which is python 3.8. My base environment uses python 3.8 and I installed an environment myenv with python 3.7. However, I found when I type python within myenv, it always use 3.8 instead of 3.7.
Unless you're using zsh (where it's a builtin), which can only check the PATH. It doesn't know anything about functions or aliases.
Use type python as a more accurate way to see what python will run when your shell is bash.

SyntaxError in PyCharm [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
Can someone help me fix this issue:
File "/Users/mac/PycharmProjects/NoteBot/main.py", line 5
PATH =
^
SyntaxError: invalid syntax
I think you are trying to run the PS5 bot using the inbuilt python that comes on your mac, i.e., probably Python2.7.
The issue is the author of the bot used a feature introduced in Python 3.5 called type hints.
So you need to change the version of Python that Pycharm is using to a version above 3.5 (google this). Or just run the script from the Terminal app using:
python3 /Users/mac/PycharmProjects/NoteBot/main.py
Note: You may need to install selenium etc. again here using pip3. Pycharm probably will handle this for you if you get it to point at a Python3 installation.
Furthermore, if you want to learn to program in Python yourself after you snag a PS5 you may want to look into pyenv.

Import code works when typed into Shell. but not when running py.script? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I'm having some problem understanding this.
The imported code works successfully when I run the command directly in shell, but it fails when I run the identical code in a .py file
I tried downgrading to 3.5 after getting the same error in 3.7
You've called your local script "goodreads", so Python tries to import that rather than the library. Name your script something else.

langdetect library import error in python 3.4.4 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I have imported 'langdetect' library in python 3.4.4. This is working successfully in python 3.4.4 shell but when I create a new .py file then it does't work successfully. It shows that ImportError: cannot import name 'detect'. How I solve this problem.
It looks like you have named your own file langdetect.py and then tried to import langdetect. This makes it try to import itself. Rename your file to something else, like testdetect.py.

Categories

Resources